CircleCI CLI can't find config file


#1

Hello there,

So looking to validate the config.yml file using the cli downloaded from
https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci

link taken from your docs, adding it to my docker container using
RUN curl -o /usr/local/bin/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci && chmod +x /usr/local/bin/circleci

Running the circleci config validate or circleci config validate -c .circleci/config.yml returns an error circle.yml: no such file or directory as show in the following copied from stdout

$ pwd
/home/sauce/application
$ ls .circleci 
config.yml  images
$ circleci config validate

Error: open circle.yml: no such file or directory
$ circleci config validate -c .circleci/config.yml 

Error: open circle.yml: no such file or directory

It seems it looks for the circleci 1.0 config file.

Regards,
Xavier


#2

I’m also running into this same issue


#3

Me too. MacOS 10.13.5. Fresh install of docker via homebrew. Fresh circleci cli from your S3 bucket. Docker machine is running on xhyve. I have had old versions of everything installed in the past, but tried to clear out everything before reinstalling.

This is a repo I’m trying to convert from circleci v1 to v2.

circleci version: 0.0.5894-01cdb92
Build Agent version: 0.0.5895-01cdb92
built: 2018-05-29T20:07:10+0000

Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:31:53 2017
OS/Arch: darwin/amd64

Server:
Version: 18.05.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.10.1
Git commit: f150324
Built: Wed May 9 22:20:42 2018
OS/Arch: linux/amd64
Experimental: false

CircleCI, please acknowledge this issue and let us know what else we can tell you about our environments.


#4

The utility supports both config names at this time:

$ circleci config validate

circle.yml is valid
$ mv circle.yml .circleci/config.yml
$ circleci config validate

.circleci/config.yml is valid
$ circleci config validate -c .circleci/config.fooo

Error: open .circleci/config.fooo: no such file or directory
$ circleci version

circleci version: 0.0.5894-01cdb92
Build Agent version: 0.0.5895-01cdb92
built: 2018-05-29T20:07:10+0000

$ docker version
Client:
 Version:      18.03.1-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   9ee9f40
 Built:        Thu Apr 26 07:13:02 2018
 OS/Arch:      darwin/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.03.1-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   9ee9f40
  Built:        Thu Apr 26 07:22:38 2018
  OS/Arch:      linux/amd64
  Experimental: true

I am presently running macOS Sierra 10.12.6.


#5

I think this error occurs when the utility can’t find the specified file. The error message is certainly incorrect.

When I initially started the docker machine it asked for root privileges (“NFS share folder must be root. Please insert root password.”, whatever sense you might make of that). But it was running in a non-interactive session, so whatever it needed didn’t happen.

I restarted my computer and the docker machine, typing in my password this time, and things seem to be working.


#6

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.