Failed to start Master instance in admin mode
GP無法啟動,資訊如下:
[gpadmin@gp-master gpseg-1]$ gpstart
20161223:09:32:09:002004 gpstart:gp-master:gpadmin-[INFO]:-Starting gpstart with args:
20161223:09:32:09:002004 gpstart:gp-master:gpadmin-[INFO]:-Gathering information and validating the environment...
20161223:09:32:09:002004 gpstart:gp-master:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 4.3.8.0 build 1'
20161223:09:32:09:002004 gpstart:gp-master:gpadmin-[INFO]:-Greenplum Catalog Version: '201310150'
20161223:09:32:09:002004 gpstart:gp-master:gpadmin-[INFO]:-Starting Master instance in admin mode
20161223:09:32:11:002004 gpstart:gp-master:gpadmin-[CRITICAL]:-Failed to start Master instance in admin mode
20161223:09:32:11:002004 gpstart:gp-master:gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 1
Command was: 'env GPSESSID=0000000000 GPERA=None $GPHOME/bin/pg_ctl -D /disk/master/gpseg-1 -l /disk/master/gpseg-1/pg_log/startup.log -w -t 600 -o " -p 5432 -b 1 -z 0 --silent-mode=true -i -M master -C -1 -x 18 -c gp_role=utility " start'
rc=1, stdout='waiting for server to start...... stopped waiting
', stderr='pg_ctl: PID file "/disk/master/gpseg-1/postmaster.pid" does not exist
pg_ctl: could not start server
Examine the log output.
'
這種情況一般是因為pg_hba.conf、環境變數設定的有問題,檢查一遍後沒有問題
於是看下pg_log下的startup.log如下:
2016-12-23 01:31:09.819803 GMT,,,p933,th440502048,,,,0,,,seg-1,,,,,"FATAL","55000","data directory ""/disk/master/gpseg-1"" has group or world access","Permissions should be u=rwx (0700).",,,,,,,"checkDataDir","postmaster.c",1763,
2016-12-23 01:32:09.643918 GMT,,,p2027,th-302590176,,,,0,,,seg-1,,,,,"FATAL","55000","data directory ""/disk/master/gpseg-1"" has group or world access","Permissions should be u=rwx (0700).",,,,,,,"checkDataDir","postmaster.c",1763,
按照錯誤來說/disk/master/gpseg-1資料目錄許可權有問題,應該設定成0700
[gpadmin@gp-master master]$ ls -l
total 4
drwxrwxrwx 17 gpadmin gpadmin 4096 Dec 23 09:49 gpseg-1
許可權是777,改成0700
[gpadmin@gp-master master]$ chmod 0700 gpseg-1
[gpadmin@gp-master master]$ ls -l
total 4
drwx------ 17 gpadmin gpadmin 4096 Dec 23 09:49 gpseg-1
於是成功啟動
很詫異777的許可權是大於0700的,不應該是許可權不足導致,難道GP是出於安全的考慮只允許gpadmin使用者對資料目錄進行操作?!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29989552/viewspace-2131258/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 3.1.5.6 Forcing an Instance to Start
- RAT ORA-15507: cannot start workload replay on instance 1
- Failed to start docker.service: Unit not foundAIDocker
- Server Tomcat v9.0 Server at localhost failed to start.ServerTomcatlocalhostAI
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- homebrew安裝問題(Failed during: git fetch origin master:refs/remotes/origin/master --tags --force)AIGitASTREM
- The Tomcat connector configured to listen on port 80 failed to start. The port may already be inTomcatAI
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- 帶庫升級 exp全備 su profile error lead to pkg failed to startErrorAI
- 解決Error Initialization failed for ‘https://start.spring.io‘Please check URL, nErrorAIHTTPSpring
- Mongodb安裝坑 - Service 'MongoDB Server' (MongDB) failed to start. Verify that you have...MongoDBServerAI
- tomcat報錯org.apache.catalina.core.ContainerBase.startInternal A child container failed during startTomcatApacheAI
- 關於解決Server Tomcat v9.0 Server at localhost failed to start的問題ServerTomcatlocalhostAI
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- vertx instance
- GPU InstanceGPU
- element-ui匯出excel表格,程式碼基於vue-element-admin-masterUIExcelVueAST
- ! [rejected] master -> master (fetch first)AST
- 3.2.1 Mounting a Database to an InstanceDatabase
- start uniappAPP
- javascript strict modeJavaScript
- IDBTransaction.mode
- Docker Swarm modeDockerSwarm
- C++ instance的使用C++
- RMAN Duplicate RAC to Single Instance
- Spring Cloud 註冊Nacos註冊中心啟動報錯:failed to req API:/nacos/v1/ns/instance after all servers....SpringCloudAIAPIServer
- UFS之Power Mode
- chmod命令(change mode)
- ORACLE LOCK MODE 1.2.3.4.5.6Oracle
- MySQL Strict SQL MODEMySql
- emacs go-modeMacGo
- 【Java】The Java Headless ModeJava
- 3.1.5.2 Starting an Instance, and Mounting and Opening a DatabaseDatabase
- Property [title] does not exist on this collection instance
- rac中 crsctl start/stop crs and crsctl start/stop cluster 區別
- git merge origin master git merge origin/master區別GitAST
- 開發springboot startSpring Boot
- git rebase masterGitAST
- 1248:Dungeon MasterAST