[英]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 :当我尝试使用 Spring Boot 应用程序访问数据库时出现此错误:
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 org.postgresql.util.PSQLException: FATAL: n'a pas pu ouvrir le fichier « global/1260 » : 无效参数(pgjdbc:自动检测到的服务器编码为 ISO-8859-1,如果消息不可读,请检查org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:613) ~[postgresql-42.2.18.jar:42.2. 18] 在 org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:161) ~[postgresql-42.2.18.jar:42.2.18] 在
I try to connect with psql and the same error exist :我尝试连接 psql 并且存在相同的错误:
psql: erreur : FATAL: n'a pas pu ouvrir le fichier « global/1260 » : Invalid argument psql: erreur : FATAL: n'a pas pu ouvrir le fichier « global/1260 » : 无效参数
The application has been running in production for 3 months and the error suddenly occurs today.该应用程序已经在生产环境中运行了 3 个月,今天突然出现错误。
global/1260
is the pg_authid
table, the table of database users. global/1260
是pg_authid
表,数据库用户表。 You cannot connect to or use the database without that information.如果没有这些信息,您将无法连接或使用数据库。
Somebody or something (file system check?) must have removed PostgreSQL data files.某人或某事(文件系统检查?)一定已经删除了 PostgreSQL 数据文件。 At any rate, you are suffering data corruption, and you need to restore from backup.
无论如何,您正在遭受数据损坏,您需要从备份中恢复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.