简体   繁体   English

无法连接到 PostgreSQL 13,无法打开文件« global/1262 »:无效参数

[英]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/1260pg_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.

相关问题 PostgreSQL 9:无法fsync文件“ base / 16386”:无效的参数 - PostgreSQL 9: could not fsync file “base/16386”: Invalid argument 无法连接到 Pokertracker postgreSQL 数据库 - Unable to connect to Pokertracker postgreSQL database 警告:无法打开统计文件“pg_stat_tmp/global.stat”:陈旧的文件句柄 - WARNING: could not open statistics file "pg_stat_tmp/global.stat": Stale file handle PostgreSQL:无法连接到服务器:连接超时 - PostgreSQL: could not connect to server: Connection timed out PostgreSQL:无法连接到服务器 - 连接被拒绝错误 - PostgreSQL: could not connect to server - Connection refused error PostgreSQL:'psql:错误:无法连接到服务器:没有这样的文件或目录'.s.PGSQL.5432 - PostgreSQL : 'psql: error: could not connect to server: No such file or directory' .s.PGSQL.5432 无法使用Postgresql将JDBC连接到sonarqube - Unable to connect JDBC to sonarqube using Postgresql PostgreSQL:无法打开文件进行读取。 没有权限。 SQL 状态:42501 - PostgreSQL: Could not open file for reading. Permission denied. SQL state: 42501 无法打开数据库文件 - Unable to open database file postgresql:数据目录无效 | 启动后无法打开 PID 文件 /var/run/postgresql/10-main.pid(还没有?):没有这样的文件或目录 - postgresql: Invalid data directory | Can't open PID file /var/run/postgresql/10-main.pid (yet?) after start: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM