actual: [Bug]: Error while updating docker Image 2023.12.0
Verified issue does not already exist?
- I have searched and found no existing issue
What happened?
While updating docker image with latest tag 2023.12.0, the container is not able to start properly and crash.
What error did you receive?
Node.js v18.19.0
Checking if there are any migrations to run for direction "up"...
file:///app/src/migrations.js:21
throw err;
^
[Error: EACCES: permission denied, open '.migrate'] {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '.migrate'
}
Where are you hosting Actual?
Docker
What browsers are you seeing the problem on?
No response
Operating System
Other
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 2
- Comments: 29 (7 by maintainers)
Links to this issue
Commits related to this issue
- update mapping of pvc per https://github.com/actualbudget/actual/issues/2011 — committed to carpenike/k8s-gitops by carpenike 7 months ago
Can confirm it’s working as expected.
I have tested the container and it does indeed now go to the /data path, which is writable and works as one would expect it to.
https://github.com/users/bjw-s/packages/container/actual-server/154582722?tag=pr-289 (based on the
edge-ubuntu
Dockerfile)I’ve created https://github.com/actualbudget/actual-server/pull/289 that will have the server store the migrations file in the dataDir instead of the application root
Hi everyone. That guide from Marius Hosting has been updated. My recommended process, if you are still having issues, would be to:
That should get passed the issue of missing the .migration file and not having proper permissions.
That would depend on the software you use to manage your Docker. Personally I’d recommend Dockge or Portainer. Then you need to create 2 containers 1. actualbudget-old and 2. actualbudget with the latest version.
Personally I prefer Dockge it’s got a very simple UI and you can also add convert “docker run”. It looked like this for me:
Then as mentioned by the guide before just export the data and import it to the latest version. After that you can delete the actualbudget-old container.