I’m currently running Nextcloud AIO v4.6.2 and keep getting this error in my log. Is it normal?
“2023-03-27 22:51:18.684 EDT [3512] ERROR: could not resize shared memory segment “/PostgreSQL.1774270334” to 33554432 bytes: No space left on device”
A quick search on stackoverflow shows that this is likely caused by the 64MB default shared memory limit for docker containers. However, since the docker containers are controlled by the aio, the suggestion solutions in stackoverflow doesn’t apply.
Edit:
I currently mitigated this problem by changing the docker default shared memory size following this stackoverflow post, i.e.
- Stop all containers and AIO
- Edit
/etc/docker/daemon.json
to{"default-shm-size" : "512M"}
- Reload docker deamon:
systemctl restart docker
- Remove old databse container:
docker container rm nextcloud-aio-database
- Restart AIO and containers
- Verify shared memory size:
docker inspect nextcloud-aio-database | grep -i shm