-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local execute - fails to read config file #212
Comments
The error message is a bit misleading, but it is checking for Maybe try adding some From your config example |
Thanks for the quick reply! The generated project does contain the files I expect (I've been ssh'ed in there for a while + I just added a I can link to the failing build on CircleCI if that helps. |
I can only see two explanations:
|
Oh, I just reread your post and I realize I missed the obvious. This won't work because |
Aaaaah, ok so I guess I'll have to find something else then. :( Just for curiosity's sake, does that explain the error I'm seeing? It sounds like the error happens before the CLI even tries to run a docker command, right? |
@n6g7 The error message is misleading; in the current version, it's always shown for various kinds of reasons. @dnephin I'm also trying to get the build working circumventing the new cli and directly calling the picard cli from a Docker container. However, I'm confused that there is no docker on the image and a Docker config and environment variables don't seem to be respected. Then again, the image seems to need the docker socket. Is this cli closed source? |
Yes it does, the file system that it's looking at does not have that file because it's a bind mount to the VM host that does not have any files at that path.
There are two programs.
|
I am facing a similar issue trying to run a generated config yml using In my test, I generate a
But I get an error:
Is there a workaround for this? |
@anishkny A workaround for running a CircleCI config generated inside of a CircleCI job is to commit that config and push it to Github/Bitbucket to trigger a new build. This is far from ideal, so we are considering ways to execute a new config without a commit and push. |
Closing due to inactivity. Please re-open if this is something you are still working on. |
I'm running into the same issue, it doesn't even work for the demo repo.
|
experiencing this issue after installing ➜ circleci-demo-go git:(master) circleci local execute --job build
Docker image digest: sha256:02289762fd0a295b971e4bc6bdb2ea4326a66748cae89352b5404c4ca286aaf9
Error: failed to start event processor: failed to compute task config: failed to read config file: read /tmp/local_build_config.yml: is a directory this could be connected with limitations of snap packages to the SOLUTION TO FIX THE ISSUE Remove snap packages (docker and snap)
I used the command from the quick installation instructions without sudo and saved the
then I moved the binary Installing docker as by askubuntu instructions (options 2), adding myself to the docker group and now the command works without problems
|
@dnephin thanks for a thorough answer. It makes sense that |
For MacOS, this worked: #391 (comment) |
@fabriziobertoglio1987 I can't run the quick installation command without sudo. When I try to run it I get this error:
|
@zmunro run those steps one by one in your terminal, you will be able to read and troubleshoot the error. |
@fabriziobertoglio1987 Thanks, I just run the script and its working now. |
Trying to get CircleCI working locally
Works for below errors-
|
Context
I'm working on a CircleCI config generator (amongst other things) so I want to test that:
circleci config validate
)circleci local execute --job myjob
)From within CircleCI, so essentially I'm running those CircleCI commands in CircleCI. Very meta but it sounds like it should work.
First command (config validation) works fine.
Problem
I get the following error when running
circleci local execute --job myjob
(within a CircleCI job):It's confusing because I'm using
.circleci/config.yml
and not usingcircle.yml
.The same command runs fine locally.
Running version
0.1.4211+14dfd68
What I tried
--config
argument ❌chmod 777 .circleci/config.yml
❌Here's the smallest generator config file I've been able to reproduce teh bug with: https://gist.github.com/n6g7/f11008ee351b3dfd9c56f6c23b5ce7d6, I don't think the generated config file matters but can share it too if necessary.
Any idea where this could be coming from?
The text was updated successfully, but these errors were encountered: