Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

psql: FATAL: could not open file "base/11951/11717": Read-only file system

Tags:

postgresql

I'm trying to access the postgreSQL database from CLI. When I login as postgres and enter command

I'm getting error

psql: FATAL:  could not open file "base/11951/11717": Read-only file system

I'm new to this. Any pointers on where to look at would be a great help. TIA

like image 676
Tej91 Avatar asked Sep 02 '25 02:09

Tej91


1 Answers

Seems like the VM where the database was hosted went to Read-only mode for an unknown issue.

$ fsck 

command helped to repair linux filesystems and was able to access psql db.

like image 193
Tej91 Avatar answered Sep 05 '25 20:09

Tej91