Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Panic NGINX error running addon . #11

Closed
educastellini opened this issue Nov 22, 2018 · 15 comments
Closed

Panic NGINX error running addon . #11

educastellini opened this issue Nov 22, 2018 · 15 comments

Comments

@educastellini
Copy link

educastellini commented Nov 22, 2018

When I start the addon the UI dont start for a NGINX error.

My config is file is like this:

{
  "log_level": "info",
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "web": {
    "enabled": true,
    "ssl": false
  },
  "broker": {
    "enabled": true,
    "enable_ws": true,
    "enable_mqtt": true,
    "enable_ws_ssl": false,
    "enable_mqtt_ssl": false,
    "allow_anonymous": false
  },
  "mqttusers": [
    {
      "username": "*********",
      "password": "*********",
      "readonly": true,
      "topics": [
        "#"
      ]
    }
  ],
  "leave_front_door_open": true
}

And the resultant Log is this:

[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: MQTT Server & Web client v0.2.2
Mosquitto MQTT Server bundled with Hivemq's web client
From: Community Hass.io Add-ons
By: Franck Nijhof <frenck@addons.community>
-----------------------------------------------------------
aarch64 / HassOS 2.2 / HA 0.82.1 / SU 140 / stable
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing... 
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing... 
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 11-patches.sh: executing... 
patching file /app/index.html
[cont-init.d] 11-patches.sh: exited 0.
[cont-init.d] 20-mqtt_broker.sh: executing... 
INFO: Adding configuration for MQTT Server...
INFO: Setting configuration for websockets...
INFO: Setting configuration for mqtt...
[cont-init.d] 20-mqtt_broker.sh: exited 0.
[cont-init.d] 21-mqtt_web.sh: executing... 
[cont-init.d] 21-mqtt_web.sh: exited 0.
[cont-init.d] 40-nginx.sh: executing... 
[cont-init.d] 40-nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
INFO: Starting mosquitto MQTT Server...
1542926464: mosquitto version 1.4.15 (build date 2018-03-04 15:36:00+0000) starting
1542926464: Config loaded from /opt/mosquitto.conf.
1542926464: Opening websockets listen socket on port 1884.
1542926464: Opening ipv4 listen socket on port 1883.
1542926464: Opening ipv6 listen socket on port 1883.
INFO: Starting NGINX for the MQTT client...
PANIC: unprotected error in call to Lua API (bad light userdata pointer)
INFO: Starting NGINX for the MQTT client...
PANIC: unprotected error in call to Lua API (bad light userdata pointer)

-What I do to UI run without this Panic error...?

-And in what place i put the leave_front_door_open": true...?

Please some tip...?

@addons-assistant
Copy link

👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.

@ludeeus ludeeus self-assigned this Nov 23, 2018
@ludeeus
Copy link
Collaborator

ludeeus commented Nov 23, 2018

With the current addon this will not be possible due to a limitation in lua-nginx-module
Potential workarounds:

  • Use an older version of this addon (before 0.2.0)
  • Use the 32bit image on your pi.

@educastellini
Copy link
Author

-I use a Orange Pi not a Raspberry Pi and the Orange only have a 64bit image of Home Assistant.
-In add-on store only have a actual version of add-on.

@educastellini
Copy link
Author

-I need to install a 64 version or a 32, but you have to make a manual install.
-how can I made this..?

@ludeeus
Copy link
Collaborator

ludeeus commented Nov 27, 2018

For now, this and other add-ons using the same logic for authentication will not work on aarch64.
Not really sure how to fix this yet...

@hobbypunk90
Copy link

openresty/lua-nginx-module#1379

i think the fix is there only an update is needed...

@frenck
Copy link
Member

frenck commented Dec 1, 2018

@hobbypunk90 That is the simple approach, in reality, Alpine Linux is behind on the module.

@hobbypunk90
Copy link

sorry 😅 that was that i mean, there is a fix, only an update is needed. so we have to wait for alpine to update its packages. i looked at alpine their nginx lua packages isn't that old, but it looks like this patches aren't in there yet 😞

@ludeeus
Copy link
Collaborator

ludeeus commented Jan 1, 2019

Version 0.3.1 that just got released have a workaround included that will work with your configuration.
https://github.com/hassio-addons/addon-mqtt/releases/tag/v0.3.1

GitHub
MQTT Server & Web client - Community Hass.io Add-on for Home Assistant - hassio-addons/addon-mqtt

@ludeeus
Copy link
Collaborator

ludeeus commented Jan 1, 2019

Waiting for upstream.

@addons-assistant
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@addons-assistant
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@addons-assistant
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@sinclairpaul
Copy link
Member

This is fixed by the latest releases isn't it?, will close and see who complains 😄

@addons-assistant
Copy link

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@addons-assistant addons-assistant bot locked as resolved and limited conversation to collaborators Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants