2013-07-24 70 views
1

我正在運行以下命令來啓動我的後端。啓動graylog2網頁界面

passenger start -e production 

但我收到此錯誤:

*** ERROR *** 
Could not start Passenger Nginx core: 
nginx: [alert] could not open error log file: open() 
"/var/folders/jb/ln9fjc350gj85ntzrhthxc_85ffn5t/T/passenger-standalone.190uy5z/l 
ogs/error.log" failed (2: No such file or directory) 
2013/07/24 12:22:47 [emerg] 24155#0: "passenger_pre_start" directive The primary 
group of the user specified by the 'default_user' option does not exist. Your 
system's user account database is probably broken, please fix it. in 
/var/folders/jb/ln9fjc350gj85ntzrhthxc_85ffn5t/T/passenger-standalone.190uy5z/co 
nfig:93 
Stopping web server... done 

請幫助。

回答

0

我已經面對與乘客和固定相同的問題。

修復: 乘客使用'nobody'作爲默認用戶,它採用無人屬於的組。

在apache/nginx/httpd/virtual-host配置中,使用'PassengerDefaultUser'指令更改默認選項。

PassengerDefaultUser your-user 

乘客將要運行的應用程序與此 '你用戶'

6.12.4. PassengerDefaultUser

Phusion Passenger enables user switching support by default. This configuration option allows one to specify the user that applications must run as, if user switching fails or is disabled. This option may only occur once, in the global server configuration. The default value is nobody.

6.12.5. PassengerDefaultGroup

Phusion Passenger enables user switching support by default. This configuration option allows one to specify the group that applications must run as, if user switching fails or is disabled. This option may only occur once, in the global server configuration. The default value is the primary group of the user specifified by PassengerDefaultUser.

錯誤,我得到

Passenger could not be initialized because of this error: The option PassengerDefaultUser is set to 'nobody', but its primary group doesn't exist. In other words, your system's user account database is broken. Please fix it.