-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
harbor_adminserver always restarting,can't open web #2208
Comments
/etc/adminserver/config/config.json always these exception. |
Run commands: |
@ywk253100 ,I run these commands, still harbor_adminserver restarting, i check the log: |
@ywk253100 the /etc/adminserver/config/config.json and /etc/adminserver/key , what command is created? |
The file /data/secretkey is generated by prepare script and is mounted into adminserver container as /etc/adminserver/key. So you should make sure the /data/secretkey is generated successfully after running prepare script. |
@ywk253100 Thanks,it's ok. I modify the path of secretkey storage in harbor.cfg,as follow: And I think that the harbor code should have an error ,can't auto read the the parameter of secretkey_path in initing of using “./prepare”. |
Yes, there is already an issue #2134 to track this. |
To summarize: as for now secretkey_path in harbor.cfg should never be changed or if you have to change it you should remember to adjust paths in docker-compose.yml manually because they are hardcoded. |
adminserver[14789]: 2017-05-04T03:09:55Z [INFO] initializing system configurations...
adminserver[14789]: 2017-05-04T03:09:55Z [INFO] the path of json configuration storage: /etc/adminserver/config/config.json
adminserver[14789]: 2017-05-04T03:09:55Z [DEBUG] [driver_json.go:46]: path of configuration file: /etc/adminserver/config/config.json
adminserver[14789]: 2017-05-04T03:09:55Z [INFO] the path of key used by key provider: /etc/adminserver/key
adminserver[14789]: 2017-05-04T03:09:55Z [INFO] configurations read from storage driver are null, will load them from environment variables
adminserver[14789]: 2017-05-04T03:09:55Z [FATAL] [main.go:46]: failed to initialize the system: read /etc/adminserver/key: is a directory
The text was updated successfully, but these errors were encountered: