conf改变时OpenMediaVault nginx错误

时间:2018-02-14 15:29:47

标签: nginx

我在RPi 3上运行OMV(第3版) - 重新安装和升级后,我的网站85和82上的网站无法像过去那样配置。应用更改时出现以下错误:

Error #0:exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; nginx -t 2>&1' with exit code '1': nginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: [emerg] socket() [::]:85 failed (97: Address family not supported by protocol)nginx: configuration file /etc/nginx/nginx.conf test failed' in /usr/share/php/openmediavault/system/process.inc:175Stack trace:#0 /usr/share/openmediavault/engined/module/webserver.inc(40): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(168): OMVModuleNginxAbstract->applyConfig()
#2 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusle...', '/tmp/bgoutput5G...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}

错误在/etc/nginx/sites-enabled/zzz-omv-nginx文件中:

server {
Listen :82;
listen [::]:82;
root /var/www/root/;
}

如果删除listen [::]:82;,则可以正常使用。但是,当OMV要求更改确认时(黄色横幅) - 更改将被覆盖/更新。这似乎是过去版本中nginx插件的变化。它现在需要IPv4和IPv6监听线。

我在网络设置中禁用了IPv6,并且正在使用静态IPv4地址。

在不需要使用IPv6的情况下寻找设置解决方案???

0 个答案:

没有答案