-
Notifications
You must be signed in to change notification settings - Fork 249
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
Older install of IN4 via Docker Compose is stuck on 4.5.18 and can't be upgraded to 4.5.19 #194
Comments
To help you I need the errors you face. How to get the errors you can see on the Debuggung and FAQ in the wiki. Can you also paste your full docker-compose.yml please I am pretty sure we get you to the latest 4.x version - after that, we can discuss about moving to 5. |
Here is my current (100% working) docker-compose, before I've made any changes to it:
I changed both references to
When I look at the current (updated) docker-compose file from this wiki, it shows the "cron" container uses /bin/sh as an entrypoint instead of bash - maybe I just need to change that in my docker-compose file? Running When I run
Perhaps an issue with file permissions? The volumes are docker named volumes so I don't manage the permissions myself. If I go to Thank you so much for the help. EDIT: I spun up a fresh IN4 instance on my machine and checked the |
I've been looking through some of the closed issues on this repository and I found one that seems almost identical to mine: #173 I will update the entrypoint in my As for the file permissions issue, this wiki entry confirms that I need to reset my permissions to 1000:82. But how do I do that on a docker named volume? Do I just do this?
I've always read that you shouldn't mess with docker named volumes from the host, but you should mount them in a container and work with them that way. I'm not sure how I would go about doing this, though. |
Hey @andrewhaji sorry for the waiting. Cron Due to the usage of alpine as base image there is no bash existend anymore. So yes, the cron script needs to target Volumes & perms I think you can log into the container, e. g. Don't do this |
Thanks for the reply! I tried to do what you suggested -- running
Any thoughts? Thank you. |
Yes, you can also use the web or cron container. Both have the |
Okay, so I took a snapshot of my VM just in case I totally broke something, and I tried running (from my host):
Then did I don't know if there will be any negative side-effects to having changed the permissions from the host rather than from inside the container, but for now everything seems to be working. Many thanks for helping me figure this out! Do you think it would be useful to add a page on the wiki regarding this? I feel like there must be a lot of people in a similar situation - having to migrate from the older non-alpine docker builds to the alpine builds. |
Oops, sorry, didn't see this until now. Thanks for this suggestion. |
I will add a wiki page for that. Might be good starting point. Information about cronjobs can be found here. Feel free to close the issue. |
Thanks again for your help, and thank you for your continued work on this fantastic piece of software. |
In case anyone stumbles upon this issue, I've encountered this same problem when upgrading my IN4 setup from 4.5.22 to 4.5.26 (or higher). It looks like the permissions now have to be set to |
Hi all,
I've been running IN4, self-hosted, via Docker, for months now. Works great. I followed the (older) install instructions from this wiki precisely. Had a bit of trouble when the invoiceninja:latest branch jumped up to 5.0, but I managed to get back to 4.x by updating the docker-compose file to show invoiceninja:4.5.18.
Now, I see 4.5.19 is available, but only in an alpine variety. I tried updating my docker-compose file to refer to invoiceninja:alpine-4 instead of invoiceninja:4.5.18, but when I try to bring it up the cron container crashes instantly and the app container restarts continuously.
I've noticed that the dockerfiles and sample docker-compose files on this repository have been completely rewritten in the last few months. Is there any way to transition my older docker-compose install to the current one, allowing me to move up to 4.5.19 (and eventually migrate to 5.0)?
Many thanks for the help.
The text was updated successfully, but these errors were encountered: