following the database migration instructions for postgresql 14, the first attempt at the sync command failed with the following:
$ zulip_volume_sync() { docker run -it --rm -v "/opt/docker/zulip/$1:/src" -v "$(basename "$(pwd)")_${2:$1}":/dst ubuntu:20.04 sh -c 'cd /src; cp -a . /dst' ; }
zulip_volume_sync postgresql postgresql-10
zulip_volume_sync zulip
zulip_volume_sync rabbitmq
zulip_volume_sync redis
cp: error writing '/dst/./uploads/avatars/exports/2/gXltqQhHF0mqSr2hYlWq4vbD/zulip-export-nnsk2yvf.tar.gz': Read-only file system
cp: preserving times for '/dst/./uploads/avatars/exports/2/gXltqQhHF0mqSr2hYlWq4vbD': Read-only file system
cp: preserving times for '/dst/./uploads/avatars/exports/2': Read-only file system
cp: preserving times for '/dst/./uploads/avatars/exports': Read-only file system
cp: preserving times for '/dst/./uploads/avatars': Read-only file system
cp: cannot create directory '/dst/./uploads/files': Read-only file system
cp: preserving times for '/dst/./uploads': Read-only file system
cp: cannot create regular file '/dst/./zulip-secrets.conf': Read-only file system
cp: preserving times for '/dst/.': Read-only file system
Broadcast message from systemd-journald@ubuntu-server (Thu 2024-02-22 15:26:37 UTC):
systemd[3946050]: Caught <BUS>, core dump failed (child 3946051, code=killed, status=7/BUS).
Broadcast message from systemd-journald@ubuntu-server (Thu 2024-02-22 15:26:37 UTC):
systemd[3946050]: Freezing execution.
ERRO[0154] Error waiting for container: container 99705a557a9d4f578c21c1b4c0385548884cddb59ea4733887baaedc76156c3a: driver "overlay2" failed to remove root filesystem: unlinkat /var/lib/docker/overlay2/4f7b9e6593a011d4e498dbc038277c2e907bbb79a816a16bab75b302b3740a07: read-only file system
docker: Error response from daemon: mkdir /var/lib/docker/overlay2/044efdd17142b9e732a0daeebd366bc050cf6b51de769d8c19051eb19edbd175-init: read-only file system.
Assuming a permissions error, I attempted to run with sudo. The command appeared to be hanging, and after ^C the entire filesystem appeared to be read-only
following the database migration instructions for postgresql 14, the first attempt at the sync command failed with the following:
Assuming a permissions error, I attempted to run with sudo. The command appeared to be hanging, and after ^C the entire filesystem appeared to be read-only
I am unsure whether something on my end may have caused this issue, but a warning in the documentation may be ideal prior to running this command