PostgreSQL、PgAdmin 在 macOS Ventura 13.5.1 上启动错误

问题描述 投票:0回答:1

我有一台 MacBook Air 2020 (macOS Ventura 13.5.1)。安装了 PostgreSQL,工作了 5-6 天,没有任何事件(稳定)。今天发布,初始页面加载并显示错误。 以前,当它启动时,它占用了1个端口(如果我没记错的话是5432)。 现在,显示错误后,它占用了 1 个端口,但已经占用了另一个端口。 (端口名称:Python)

Process:               pgAdmin 4 [93305]
Path:                  /Library/PostgreSQL/14/pgAdmin 4.app/Contents/MacOS/pgAdmin 4
Identifier:            org.pgadmin.pgadmin4
Version:               7.5 (4280.88)
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-08-27 21:48:47.5482 +0600
OS Version:            macOS 13.5.1 (22G90)
Report Version:        12
Anonymous UUID:        4FEA9D37-5E06-083D-88D1-DB6B8D0A0641

Sleep/Wake UUID:       5EFD95F9-F7DC-4363-A95D-7AD7F46D7297

Time Awake Since Boot: 67000 seconds
Time Since Wake:       42 seconds

System Integrity Protection: enabled

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000020
Exception Codes:       0x0000000000000001, 0x0000000000000020

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [93305]

VM Region Info: 0x20 is not in any region.  Bytes before following region: 140722710691808
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      mapped file              7ffc8f2ec000-7ffc9e440000 [241.3M] r-x/r-x SM=COW  ...t_id=894eb2a5

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage

每次再次打开,端口数量都会增加。 重新安装了Postgres,安装了较低版本但没有任何帮助。给出同样的错误。

postgresql pgadmin macos-ventura postgresql-15
1个回答
0
投票

我认为是因为你的重复安装占用的端口没有关闭,你来回重新安装它们,你需要杀掉占用端口的进程ID然后继续,错误显示分段错误很可能是由于内存访问冲突造成的,在这种情况下,pgAdmin 正在尝试访问之前分配的资源,但它已经被卸载时创建的 Ghost 进程占用。

最好的选择是在对 postgres 数据库进行必要的备份后从头开始重新安装 postgres 和 pgAdmin4,我也遇到了类似的问题,因为我有与你相同的 macbook,这似乎对我有用.

© www.soinside.com 2019 - 2024. All rights reserved.