-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
matrix-synapse[823]: docker: Error response from daemon: path /matrix/synapse/storage is mounted on / but it is not a shared or slave mount. #703
Comments
This turned out to be because the whole thing was installed within an LXC container. The solution was to remount I guess we can close this now. If you can provide more details about how you're solving this, it would probably be helpful to people who will find this thread in the future. |
This isn't helpful. I'd like to make sure the solution gets documented here for people like me. Do you remember what you did? |
I'm just summarizing what someone else told me he did. I haven't had this problem, but it's usually related to running our services within an LXC container, from what I've seen. You'd need something like |
I found that you would need to use My apologies to anyone hoping for a good solution. I can tell you I tried both a privileged and unprivileged container with nesting and nfs enabled and it made no difference. You could potentially look into disabling AppArmor for this container and see if that helps you make any progress. |
I have fixed is in my lxc container with this command
I used this command on every startup my lxc container and restart docker services. lxc container are more leighter than a vm. Maybe with this solution we can make some fix? |
@RedJohn14 can we make this a crontab on reboot? |
Hey shreyasajj, yes I have configure this in the cronjob. Thank you! |
I think better option here is to edit 'matrix-synapse.service' systemd unit and add 'ExecStartPre'.
Works flawlessly but looks still awfully instead of using something before running the container. |
Adding an systemd drop-in file is more persistent
create a file override.conf with the following content
After creating the file: |
Hello,
I can start the matrix-synapse container. all other containers are running without problem. In syslog I found this:
matrix-synapse[823]: docker: Error response from daemon: path /matrix/synapse/storage is mounted on / but it is not a shared or slave mount.
And ansible said:
"ansible_loop_var": "item", "changed": false, "item": "matrix-synapse", "msg": "matrix-synapse was not detected to be running. It's possible that there's a configuration problem or another service on your server interferes with it (uses the same ports, etc.). Try running
systemctl status matrix-synapse
andjournalctl -fu matrix-synapse
on the server to investigate."}Any ideas?
The text was updated successfully, but these errors were encountered: