Skip to content
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

Cannot run in docker #17

Closed
Ra5CZ opened this issue May 11, 2021 · 7 comments
Closed

Cannot run in docker #17

Ra5CZ opened this issue May 11, 2021 · 7 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@Ra5CZ
Copy link

Ra5CZ commented May 11, 2021

Hi,
I'm trying run gokapi in docker on Synology NAS and neither after maybe tens attempts i'm don't have any success.
Can you help me with settings please?
I'm runnig many other containers but with this....i don't know.

My container minimal settings:
{ "cap_add" : null, "cap_drop" : null, "cmd" : "/app/gokapi", "cpu_priority" : 50, "devices" : null, "enable_publish_all_ports" : false, "enable_restart_policy" : false, "enabled" : true, "env_variables" : [ { "key" : "PATH", "value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" }, { "key" : "GOKAPI_PASSWORD", "value" : "xxxxxxxxxxxxxxxxxx" }, { "key" : "GOKAPI_USERNAME", "value" : "myName" } ], "exporting" : false, "id" : "2379bc3ac01d530858f539bc131313d61cf54dbe0ea20b90694e015ad338875f", "image" : "f0rc3/gokapi:latest", "is_ddsm" : false, "is_package" : false, "links" : [], "memory_limit" : 0, "name" : "f0rc3-gokapi1", "network" : [ { "driver" : "bridge", "name" : "bridge" } ], "network_mode" : "bridge", "port_bindings" : [ { "container_port" : 53842, "host_port" : 0, "type" : "tcp" } ], "privileged" : false, "shortcut" : { "enable_shortcut" : false }, "use_host_network" : false, "volume_bindings" : [] }

Result:
gokapi

Sorry for my bad eglish.

@Forceu
Copy link
Owner

Forceu commented May 11, 2021

Thanks for the bug report. Are any errors written to the console in the Gokapi container? And did you run the setup on first startup?

@Ra5CZ
Copy link
Author

Ra5CZ commented May 11, 2021

All settings attributes are in ENV variables. In example upwards is only GOKAPI_USERNAME and GOKAPI_PASSWORD but I tried almost all settings include GOKAPI_CONFIG_FILE, GOKAPI_DATA_DIR, GOKAPI_SALT_ADMIN etc.

So no...no setup. I thought that settings in ENV variables is enough.

Here is log:
image

RAM usage is interesting too:
image

@Forceu
Copy link
Owner

Forceu commented May 11, 2021

Can you post the whole output? If there are some sensitive values, you can black them out.

@Ra5CZ
Copy link
Author

Ra5CZ commented May 11, 2021

`f0rc3-gokapi1
date,stream,content
2021-05-11 10:14:28,stdout,Password: *******************

2021-05-11 10:14:28,stdout,Username: petr

2021-05-11 10:14:28,stdout,"First start, creating new admin account
"
2021-05-11 10:14:28,stdout,Gokapi v1.2.0 starting

2021-05-11 10:14:28,stdout,                                      

2021-05-11 10:14:28,stdout, ██████   ██████  ██  ██ ██  ██ ██  ██ 

2021-05-11 10:14:28,stdout,██  ██ ██  ██ ██  ██  ██   ██ ██      ██ 

2021-05-11 10:14:28,stdout,██  ███ ██  ██ █████   ███████ ██████  ██ 

2021-05-11 10:14:28,stdout,██       ██    ██ ██  ██  ██   ██ ██   ██ ██ 

2021-05-11 10:14:28,stdout,██████  ██████  ██  ██  █████  ██████  ██ 

2021-05-11 10:14:28,stdout,

2021-05-11 10:13:50,stdout,Password needs to be at least 6 characters long

2021-05-11 10:13:50,stdout,

2021-05-11 10:13:50,stdout,Password: *******************

2021-05-11 10:13:50,stdout,Username: petr

2021-05-11 10:13:50,stdout,"First start, creating new admin account
"
2021-05-11 10:13:50,stdout,Gokapi v1.2.0 starting

2021-05-11 10:13:50,stdout,                                      

2021-05-11 10:13:50,stdout, ██████   ██████  ██  ██ ██  ██ ██  ██ 

2021-05-11 10:13:50,stdout,██  ██ ██  ██ ██  ██  ██   ██ ██      ██ 

2021-05-11 10:13:50,stdout,██  ███ ██  ██ █████   ███████ ██████  ██ 

2021-05-11 10:13:50,stdout,██       ██    ██ ██  ██  ██   ██ ██   ██ ██ 

2021-05-11 10:13:50,stdout,██████  ██████  ██  ██  █████  ██████  ██ 

2021-05-11 10:13:50,stdout,`

That's all.
Firstime I had short password, so I changed it and run again.

@Forceu
Copy link
Owner

Forceu commented May 11, 2021

Hm weird. Can you confirm that you have the following env variables set?

  • GOKAPI_USERNAME (eg. admin)
  • GOKAPI_PASSWORD (eg. 123456)
  • GOKAPI_PORT (eg. 53842)
  • GOKAPI_EXTERNAL_URL (eg. http://localhost:53842)
  • GOKAPI_REDIRECT_URL (eg. https://github.com/Forceu/Gokapi/)

@Ra5CZ
Copy link
Author

Ra5CZ commented May 11, 2021

With run setup is everything fine.
image

With your advice it works without run setup...nice.

Thank you very much...for your advice and for your work on Gokapi too.

Sorry for my bad english again :)

@Ra5CZ Ra5CZ closed this as completed May 11, 2021
@Forceu
Copy link
Owner

Forceu commented May 11, 2021

Great to hear it is working now! I will probably update the Readme in that regard as well

@Forceu Forceu added documentation Improvements or additions to documentation question Further information is requested labels May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants