gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 1
一 問題描述
單機上安裝Greenplum,初始化gpinitsystem -c initgp_config時報錯:
20201118:11:13:10:005064 gpstart:pc205:gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 1
Command was: 'env GPSESSID=0000000000 GPERA=ade1c97359a87184_201118111308 $GPHOME/bin/pg_ctl -D /data/greenplum/data/master/gpseg-1 -l /data/greenplum/data/master/gpseg-1/pg_log/startup.log -w -t 600 -o " -p 5432 -E " start'
rc=1, stdout='waiting for server to start.... stopped waiting
', stderr='pg_ctl: could not start server
master程式未起來。
檢視上面提到的日誌/data/greenplum/data/master/gpseg-1/pg_log/startup.log,發現有如下報錯:
FATAL","XX000","could not map anonymous shared memory: Cannot allocate memory",,"This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 234474364 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.",,,,,,"CreateAnonymousSegment","pg_shmem.c",587,1 0xbe84ec postgres errstart (elog.c:557)
二 出錯原因
記憶體不足
三 解決辦法
① vi /etc/sysctl.conf,新增:
vm.overcommit_memory = 2
#使修改生效
sysctl -p
② 給伺服器多分配些記憶體
如果是自己虛擬機器的話,可以殺掉伺服器上比較佔記憶體的程式
相關文章
- 使用CocoaPods出錯,[!] Oh no, an error occurred.Error
- ORA-29702: error occurred in Cluster Group Service operationError
- MyEclipse - Retrieving archetypes: has encountered a problem An internal error occurred duringEclipseError
- Dynamics CRM CRM Reporting Error: Error occurred while fetching the data extension的解決方法ErrorWhile
- Error occurred during initialization of boot layer java.lang.module.FindExceptionErrorbootJavaIndexException
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- An error occurred while updating the entries. See the inner exception for details.ErrorWhileExceptionAI
- Archery 平臺執行DDL error:Threads_connected exceeds its critical thresholdErrorthread
- org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.SQLExceptionErrorWhile
- ORA-29702:error occurred in Cluster Group Service operation錯誤解決Error
- dbeaver 升級 24.1.x 版本提示 An error has occurred 的解決Error
- returned a non-zero code: 139
- TiDB 2.0 RC1 ReleaseTiDB
- redhat系統伺服器重啟後提示An error occurred during the file system check.Redhat伺服器Error
- 關於報錯An unexpected error occurred: “https://registry.yarnpkg.com/react: socket hang up“ErrorHTTPYarnReact
- What’s New in TiDB 3.0.0-rc.1TiDB
- win10電腦開機出現a disk read error occurred錯誤修復方法Win10Error
- 【翻譯】.NET 5 RC1釋出
- :-1: error: [Makefile.Debug:1234: debug/moc_serialportthread.cpp] Error 1Errorthread
- Oracle Critical Patch Update for October 2022Oracle
- 為什麼經常會出這個問題? An unknown server-side error occurred while processing the commandServerIDEErrorWhile
- Rust for Linux已經包含在PR for 6.1-rc1RustLinux
- study critical point and saddle point using Hessian Matrix
- OBS Studio 24.0 RC1 釋出 – 有大驚喜
- 帶有Rust的核心Linux 6.1-rc1釋出RustLinux
- 轉存——Quartus II FPGA程式模擬執行時出現錯誤“error occurred during modelsim simulation”的解決方法FPGAError
- ABP Framework 5.0 RC.1 新特性和變更說明Framework
- Jmeter 臨界部分控制器 Critical Section ControllerJMeterController
- .NET 9 RC1 正式釋出,ASP.NET Core 得到完善ASP.NET
- .NET MAUI釋出了期待已久的候選版本(RC1)UI
- Ionic 2 Beta 11 升級 RC 0 的坑 (update: RC 1 已經出來了,稍微沒那麼坑一點點)
- Kotlin 1.4.0-RC!Kotlin
- RC4加密加密
- ORA-04021: timeout occurred while waiting to lock objectWhileAIObject
- Thread 1: Fatal error: init(coder:) has not been implementedthreadError
- Solaris awk: syntax error near line 1 awk: bailing out near line 1ErrorAI
- 解決一個小坑:error on line 1 at column 1: Document is emptyError
- TiDB RC4 ReleaseTiDB