Skip to content
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

sudo zulip_volume_sync() causes SIGBUS error and read-only filesystem #430

Open
bigbeefus opened this issue Feb 22, 2024 · 0 comments
Open

Comments

@bigbeefus
Copy link

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

$ sudo 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

^C%                                                                                                                                                                

$ docker compose stop zulip

SIGBUS: bus error
PC=0x5583730a32f5 m=5 sigcode=2

goroutine 0 [idle]:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant