Postmaster.pid - no space on device

I am running MAAS with maas-test-db still. My bad. It is running as a snap inside a VM. It fails to start due to
could not write lock file “postmaster.pid”: No space left on device

  1. can anyone tell me where this file is supposed to be? I’ve touched files all over the place and it never fails
  2. where is the location of this file defined?
  3. I may be missing postgresql.snap.conf. If it should exist, could someone post it or mail it to me?

Thanks

I think Postgres is trying to write a file but it fails because there is no more space available. So you can’t find such file, it does not exist.

but as far as I can tell, none of the filesystems are full or readonly. I can create files everywhere and anywhere, so I don’t think any filesystems are actually full.

Di you have the full stacktrace?

This loops 5 times after every restart.

Jan 15 19:51:27 ubuntu systemd[1]: Started Service for snap application maas-test-db.postgres.
Jan 15 19:51:27 ubuntu maas-test-db.postgres[2460]: 2025-01-15 19:51:27.469 GMT [2460] LOG:  skipping missing configuration file "/var/snap/maas-test-db/common/postgres/data/postgresql.snap.conf"
Jan 15 19:51:27 ubuntu maas-test-db.postgres[2460]: 2025-01-15 19:51:27.470 GMT [2460] LOG:  skipping missing configuration file "/var/snap/maas-test-db/common/postgres/data/postgresql.snap.conf"
Jan 15 19:51:27 ubuntu maas-test-db.postgres[2460]: 2025-01-15 19:51:27.470 UTC [2460] FATAL:  could not write lock file "postmaster.pid": No space left on device
Jan 15 19:51:27 ubuntu systemd[1]: snap.maas-test-db.postgres.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 19:51:27 ubuntu systemd[1]: snap.maas-test-db.postgres.service: Failed with result 'exit-code'.
Jan 15 19:51:27 ubuntu systemd[1]: snap.maas-test-db.postgres.service: Scheduled restart job, restart counter is at 4.
Jan 15 19:51:27 ubuntu systemd[1]: Stopped Service for snap application maas-test-db.postgres.
Jan 15 19:51:27 ubuntu systemd[1]: snap.maas-test-db.postgres.service: Start request repeated too quickly.
Jan 15 19:51:27 ubuntu systemd[1]: snap.maas-test-db.postgres.service: Failed with result 'exit-code'.
Jan 15 19:51:27 ubuntu systemd[1]: Failed to start Service for snap application maas-test-db.postgres.

I just did

snap refresh maas-test-db  --channel=3.2/stable

thinking that that might restore any missing files.

I’m an idiot. /var/snap was full. I just didn’t see it because the other snap filesystems always show as 100%