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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【HBase】start master 與 start master --backup 的區別AST
- MediaRecorder start failed -19 java.lang.RuntimeException: start failedAIJavaException
- Restricted Mode of Instance Startup (291)REST
- Failed to start docker.service: Unit not foundAIDocker
- Start of resource “ora.asm -init” failed -ASMAI
- Troubleshooting when srvctl can't start RAC instance, but sqlplus can start it [ID 844272.1]SQL
- ORA-38760: This database instance failed to turn on flashback databaseDatabaseAI
- master bug InnoDB Error unlock row could not find a 4 mode lockASTError
- [IOS]解決Failed to start Instruments daemon for ‘iOS’ on iPhoneiOSAIiPhone
- Server Tomcat v7.0 Server at localhost failed to startServerTomcatlocalhostAI
- 處理service named start失敗failed_dnsAIDNS
- MySQL主從同步報Client requested master to start replication from positionMySql主從同步clientAST
- rake deploy ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to解決方法ASTForwardErrorAI
- ORA-00265: instance recovery required, cannot set ARCHIVELOG modeUIHive
- Server Tomcat v9.0 Server at localhost failed to start.ServerTomcatlocalhostAI
- 【tomcat報錯】A child container failed during startTomcatAI
- CRS-4000: Command Start failed, or completed with errors.AIError
- CRS-1205:Auto-start failed for the CRS resourceAI
- Linux Nginx(master-slave)、Apache(woker、prefork) Working Mode ResearchLinuxNginxASTApache
- How to Start 11gR2 Grid Infrastrucure in Exclusive Mode (Doc ID 1364971.1)AST
- Oracle 11gR2 RAC ohasd failed to start 解決方法OracleAI
- Failed to start the Clusterware. Last 20 lines of the alert log follow:AIAST
- ORA-12500: TNS:listener failed to start a dedicated server processAIServer
- ORA-12500 TNS : listener failed to start a dedicated server processAIServer
- Fails to Start: PMON (ospid: nnnn): terminating the instance due to error 481AIError
- MySQL 5.7複製報錯Client requested master to start replication from impossibleMySqlclientAST
- ORA-38760: This database instance failed to turn on flashback database 第三篇DatabaseAI
- ORA-38760: This database instance failed to turn on flashback database 錯誤解決DatabaseAI
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- ERROR namenode.NameNode: Failed to start namenode. java.lang.IllegalArgumentErrorAIJava
- Application failed to start because it could not find or load the QT platform plugin “windows”APPAIQTPlatformPluginWindows
- centOS7 Failed to start LSB Bring up/down networkingCentOSAI
- PRCR-1079 : Failed to start resource ora.scan1.vipAI
- CLSRSC-184 CLSRSC-258: Failed to configure and start ASMAIASM
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- Dbconsole Fails To Start With Nzos_handshake Failed,Ret=29024AI
- homebrew安裝問題(Failed during: git fetch origin master:refs/remotes/origin/master --tags --force)AIGitASTREM
- wmi provider error 0x800742a2 :: MSSQL instance can not startIDEErrorSQL