Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

[BUG] /assets/startup.sh line 41 - 44 #462

Closed
sibelle-labs opened this issue Feb 3, 2023 · 3 comments
Closed

[BUG] /assets/startup.sh line 41 - 44 #462

sibelle-labs opened this issue Feb 3, 2023 · 3 comments

Comments

@sibelle-labs
Copy link

/startup.sh: line 41: [: : integer expression expected
/startup.sh: line 44: assets/monolog.yaml: No such file or directory

To Reproduce
at start

  • OS: [Red Hat Enterprise Linux release 9.1 (Plow)]
  • Docker version: [Docker version 23.0.0, build e92dd87]
  • Docker compose version: [Docker version 23.0.0, build e92dd87]

Command used to run the container
docker run --rm --name kimai-latest
-e DATABASE_URL=mysql://kimai:kimai@${HOSTNAME}:3399/kimai
-e TRUSTED_HOSTS=nginx,localhost,127.0.0.1,${HOSTNAME},172.30.128.95
-e USER_ID=33
-e GROUP_ID=33
-v kimai-latest_data:/opt/kimai/var
-v /opt/kimai/config/packages/local.yaml:/opt/kimai/config/packages/local.yaml
-ti
-p 8001:8001
kimai/kimai2:apache

Docker compose file (with passwords redacted)
Hmmmm do I have to have a file or do I need a file ?
I'm new to Docker`

can that also be the reason why I can't find any prod.log, etc. under /var/log?
Thanks in advance,

@sibelle-labs
Copy link
Author

After some small research ...
/startup.sh: line 44 & 51
shouldn't instead "assets/monolog.yaml /opt/kimai/config/packages/monolog.yaml" ->
"cp /assets/monolog.yaml /opt/kimai/config/packages/monolog.yaml" ?

/startup.sh: line 41: [: : a integer expected but at this point, $KIMAI is empty ...

@tobybatch
Copy link
Owner

Yeah, you are right. I'll push a fix for that. Thanks

@HWiese1980
Copy link

Has this been fixed on the main branch? I'm still seeing this error in a freshly built docker image.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants