简体   繁体   中英

Unable to connect to PostgreSQL 13, could not open file« global/1262 » : Invalid argument

when i try to access to db with spring boot application a have this error :

org.postgresql.util.PSQLException: FATAL: n'a pas pu ouvrir le fichier « global/1260 » : Invalid argument (pgjdbc: autodetected server-encoding to be ISO-8859-1, if the message is not readable, please check database logs and/or host, port, dbname, user, password, pg_hba.conf) at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:613) ~[postgresql-42.2.18.jar:42.2.18] at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:161) ~[postgresql-42.2.18.jar:42.2.18] at

I try to connect with psql and the same error exist :

psql: erreur : FATAL: n'a pas pu ouvrir le fichier « global/1260 » : Invalid argument

The application has been running in production for 3 months and the error suddenly occurs today.

global/1260 is the pg_authid table, the table of database users. You cannot connect to or use the database without that information.

Somebody or something (file system check?) must have removed PostgreSQL data files. At any rate, you are suffering data corruption, and you need to restore from backup.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM