Thanks for the quick reply!
Hi. Iām trying to update (itās been a while), and itās having a problem with the CouchDB -> Redis migration:
INFO Migrating datastore from CouchDB to Redisā¦
INFO Starting a temporary CouchDB container on port 5984ā¦
WARNING: The requested imageās platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
3dcba6ba5bd4f8a577ad56f8cc5c7e5e5605be021a36d485464919c6e7ea21c1
Connecting http://localhost:5984, attempt 1/60
Connecting http://localhost:5984, attempt 2/60
Connecting http://localhost:5984, attempt 3/60
Connecting http://localhost:5984, attempt 4/60
ā¦
Connecting http://localhost:5984, attempt 59/60
Connecting http://localhost:5984, attempt 60/60
Retry attempts exhausted
Command ā/usr/bin/python3 -m brewblox_ctl http wait http://localhost:5984ā returned non-zero exit status 1.
Command ā/usr/bin/python3 /home/pi/.local/bin/brewblox-ctl update --update-ctl-done --pruneā returned non-zero exit status 1.
Any suggestions? Thanks!
What is the result url from this command?
docker logs couchdb-migrate | nc termbin.com 9999
We replaced CouchDB because (among other things) it semi-frequently failed to start, so it could be something that is resolved with a retry.
output:
**************************************************** WARNING: CouchDB is running in Admin Party mode. This will allow anyone with access to the CouchDB port to access your database. In Docker's default configuration, this is effectively any other container on the same system. Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password" to set it in "docker run". ****************************************************
Iāve tried running update a few times, and the CouchDB migration has failed each time.
At this point itās probably easiest if you export your couchdb files, and Iāll convert them to something you can easily import.
tar -zcf couchdb.tar.gz couchdb
You can use filezilla to get the tar.gz file from your Pi.
database.json (16.1 KB)
Copy this to your Pi, and then run:
brewblox-ctl env set BREWBLOX_CFG_VERSION 0.6.0
docker-compose up -d redis history traefik
brewblox-ctl http post http://localhost/history/datastore/mset -f database.json
brewblox-ctl update
Thanks. The update finished this time, but I seem to have lost my configuration. The brewblox ui is available, but there are no dashboards, and no services - my spark doesnāt show up.
What was the output from the http post command?
Ok, so the import went through. If you force refresh the UI, and still not see your config, could you please run brewblox-ctl log
?
Force-refresh did it. Sorry I didnāt think of that myself.
Thanks very much for all your help!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.