『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 4577|回复: 6

[求助] N1+hassio,addon方式添加的nodered、portainer,都无法启动docker里的nginx

[复制链接]

22

主题

176

帖子

875

积分

高级会员

Rank: 4

积分
875
金钱
699
HASS币
0
发表于 2019-10-12 07:29:30 来自手机 | 显示全部楼层 |阅读模式
N1刷Armbian_5.90_Aml-s905_Ubuntu_bionic_default_5.1.0_20190701.img.xz;
使用N大的一键安装hassio脚本安装了hassio。

发现addon添加的nodered、portainer,启动这些应用时,都无法启动docker里的nginx,日志也停止在这里:

[15:23:09] INFO: Starting NGinx...
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

尝试过卸载hassio重新安装,但一样的问题。
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
发表于 2019-10-12 08:56:16 | 显示全部楼层
都无法启动docker里的nginx

没看懂这个是啥意思,docker 里的 nginx?

[15:23:09] INFO: Starting NGinx...

这个日志是哪个addons 容器的
Nero
回复

使用道具 举报

22

主题

176

帖子

875

积分

高级会员

Rank: 4

积分
875
金钱
699
HASS币
0
 楼主| 发表于 2019-10-12 09:10:55 | 显示全部楼层
neroxps 发表于 2019-10-12 08:56
都无法启动docker里的nginx

没看懂这个是啥意思,docker 里的 nginx?

addon方式添加的nodered、portainer安装(这些安装,都是docker的方式吧)。以上是在addon里启动nodered时,打印的日志;portainer也是如此一模一样的日志。

我独立访问nodered的1880端口,portainer的独立端口都不通。故猜测,应该是各自的nginx服务启动异常。
回复

使用道具 举报

40

主题

3057

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11135
金钱
8028
HASS币
182
发表于 2019-10-12 09:28:19 | 显示全部楼层
astonish921 发表于 2019-10-12 09:10
addon方式添加的nodered、portainer安装(这些安装,都是docker的方式吧)。以上是在addon里启动nodered ...

那个nginx 只是一个警告吧?并不是不能用
独立访问需要自己加端口,否则只能在 hassio 内访问。

下面端口写上啊。 1.jpg
Nero
回复

使用道具 举报

4

主题

69

帖子

587

积分

论坛技术达人

积分
587
金钱
503
HASS币
60
发表于 2019-10-12 09:41:25 | 显示全部楼层
我来确认一下,那个只是INFO,我也有,可以正常打开NodeRed。

先试试hassio内访问是不是正常,点击:OPEN WEB UI
回复

使用道具 举报

22

主题

176

帖子

875

积分

高级会员

Rank: 4

积分
875
金钱
699
HASS币
0
 楼主| 发表于 2019-10-12 12:28:53 | 显示全部楼层
open web UI,可以正常打开nodered。
端口已经是1880,也尝试改为1881,独立访问还是不行。

以上的部署方式,在树莓派上(刷的是官方的raspbian固件+N大的一键安装hassio)是没有这个问题的,我一度怀疑是不是这个N1的armbian固件有问题。如果其他人可以的话,说一下。

具体的日志如下:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 

-----------------------------------------------------------
 Hass.io Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 4.2.1
 You are running the latest version of this add-on.
 System: Ubuntu 18.04.2 LTS  (aarch64 / qemuarm-64)
 Home Assistant version: 0.99.3
 Supervisor version: 189
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing... 
[12:08:10] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[12:08:13] INFO: Password is NOT in the Have I Been Pwned database! Nice!
patching file nodes/ui_base.html
Hunk #1 succeeded at 1243 (offset 712 lines).
up to date in 1.709s
found 0 vulnerabilities

[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:08:22] INFO: Starting Node-RED...

> hassio-addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"

12 Oct 12:08:28 - [info] 

Welcome to Node-RED
===================

12 Oct 12:08:28 - [info] Node-RED version: v0.20.8
12 Oct 12:08:28 - [info] Node.js  version: v10.16.3
12 Oct 12:08:28 - [info] Linux 5.1.0-aml-s905 arm64 LE
12 Oct 12:08:29 - [info] Loading palette nodes
12 Oct 12:08:36 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
12 Oct 12:08:37 - [info] Dashboard version 2.16.3 started at /endpoint/ui
12 Oct 12:08:38 - [info] Settings file  : /etc/node-red/config.js
12 Oct 12:08:38 - [info] Context store  : 'default' [module=memory]
12 Oct 12:08:38 - [info] User directory : /config/node-red/
12 Oct 12:08:38 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Oct 12:08:38 - [info] Flows file     : /config/node-red/flows.json
12 Oct 12:08:38 - [info] Starting flows
12 Oct 12:08:38 - [info] Started flows
12 Oct 12:08:38 - [info] Server now running at http://127.0.0.1:46836/
[12:08:39] INFO: Starting NGinx...
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
12 Oct 12:08:43 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant
回复

使用道具 举报

5

主题

35

帖子

339

积分

论坛分享达人

积分
339
金钱
304
HASS币
0
发表于 2019-10-13 21:45:39 | 显示全部楼层
astonish921 发表于 2019-10-12 12:28
open web UI,可以正常打开nodered。
端口已经是1880,也尝试改为1881,独立访问还是不行。

看一下docker版本,直接apt安装的是最新的19.x.x版本,需要apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io安装指定版本;具体看https://docs.docker.com/install/linux/docker-ce/debian/   安装18.x.x就可以了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 06:40 , Processed in 0.055063 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表