Closed leolivier closed 11 months ago
Other issues I found when trying to run budibase on my Raspberry PI:
Sorry @melohagan this is wrong. docker compose is the right command now since more than one year as it has been natively integrated inside docker. See for instance https://docs.docker.com/compose/features-uses/
Sorry @melohagan this is wrong. docker compose is the right command now since more than one year as it has been natively integrated inside docker. See for instance https://docs.docker.com/compose/features-uses/
Yep thanks! I understand the issue now, sorry about that 👍
Thanks @melohagan Did you also take into account the 2 other sub issues mentioned in the second comment ?
Hey @leolivier
The second one is more in the documentation: it's wrong to say that you must set couchbase platform to linux/amd64 on ARM platforms (maybe, it's needed from AMD platforms but I don't think so as couchbase provides a multiplatform image and the right platform is selected automatically by docker at pull time)
I think the docs are correct because the platform indicates that a linux/amd64 emulation should be run.
The OFFLINE_MODE causing errors on start up seems to be a separate bug. As far as I could see, you should be able to omit this variable and not have to set it to 'yes'/1.
@mike12345567 Would you be able to confirm these points?
No, the doc is wrong, it says if you have an ARM platform, you must put linux/amd64 Look at https://docs.budibase.com/docs/docker-compose (and also in the docker compose video)
If you have an ARM-based CPU, you will have to update your docker-compose.yaml. Update the couchdb-service part of your compose config with:
couchdb-service:
platform: linux/amd64
...
@melohagan The docs will need updated - as of the recent update to use our ARM compatible image budibase/couchdb
it is no longer required to set the AMD64 emulation mode as there is a native image that can be used.
As for the OFFLINE_MODE
- it should not need to be set for the system to startup unless you are in an offline environment.
EDIT: I have updated the docs to remove the statement on ARM compat.
thanks @mike12345567 Not only that setting AMD emulation is not needed but the image won't start with a "wrong architecture" error. Concerning OFFLINE_MODE, I had an error at startup and I'm not the only one, there is a discussion on github about that, see https://github.com/Budibase/budibase/discussions/12241. I'm running on a basic RPi, so not offline or whatever, but it won't start if OFFLINE_MODE is not set to something (I just tried yes but maybe no would also have solved the issue, I think it's more a syntax error when the string is empty)
Hi @leolivier - I have just attempted to startup the docker compose stack on my RPi (5) with the latest docker/docker compose version and did not run into any trouble leaving the OFFLINE_MODE
unset other than a warning message, but it shouldn't cause any problems.
I've gotten rid of the warning message as it was meaningless in this PR: https://github.com/Budibase/budibase/pull/12712 - if you update your docker-compose.yml once this is merged you shouldn't see the warning message either.
Hi @mike12345567
I confirm: I added the change in my docker-compose.yaml file (replacing twice OFFLINE_MODE: {OFFLINE_MODE}
by OFFLINE_MODE: {OFFLINE_MODE:-}
and restarted the services with docker compose up -d
and it worked w/o any warning
Checklist
Hosting
Describe the bug When running the command:
I get
After investigation, the issue is on the docker-compose.yaml command line where
should be replaced by
because the redis password can contain special characters
To Reproduce Steps to reproduce the behavior:
docker compose up
Expected behavior No error
Desktop (please complete the following information):