hassio-addons icon indicating copy to clipboard operation
hassio-addons copied to clipboard

🐛 [Samba NAS] MQTT constantly crashing

Open Morphy99 opened this issue 6 months ago • 11 comments

Addon

SambaNAS

Description

I'm trying to SMART status via MQTT however it seems as though it keeps crashing. Using HAOS and the Mosquitto broker addon

Reproduction steps

1. Go to 'Addon configuration, enable mqtt_enable '
2. Add user name, password, topic and port

Addon Logs

2024-08-04 14:22:50,435:wsdd INFO(pid 590): using pre-defined UUID cb6a33a0-b841-531d-a34e-09ecec492eb1
2024-08-04 14:22:50,436:wsdd INFO(pid 590): joined multicast group 239.255.255.250 on 192.168.0.5%enp3s0

2024-08-04 14:22:50,438:wsdd INFO(pid 590): scheduling Hello message via enp3s0 to 239.255.255.250%enp3s0
[14:22:50] INFO: Enabling S.M.A.R.T for /dev/sdf
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.33-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours. 

[14:22:50] INFO: Enabling S.M.A.R.T for /dev/sdg
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.33-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
2024-08-04 14:22:50,656:wsdd INFO(pid 590): joined multicast group [ff02::c] on fe80::1d8e:6fb6:7618:244a%enp3s0
2024-08-04 14:22:50,656:wsdd INFO(pid 590): scheduling Hello message via enp3s0 to ff02::c%enp3s0
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours. 

[14:22:50] INFO: Enabling S.M.A.R.T for /dev/sdh
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.33-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

NVMe device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

[14:22:50] INFO: Enabling S.M.A.R.T for /dev/nvme0
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.33-haos] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

NVMe device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

s6-rc: info: service init-smartd successfully started
2024-08-04 14:22:50,851:wsdd INFO(pid 590): 192.168.0.3 - - "POST /cb6a33a0-b841-531d-a34e-09ecec492eb1 HTTP/1.1" 200 -
2024-08-04 14:22:50,851:wsdd INFO(pid 590): 192.168.0.3 - - "POST /cb6a33a0-b841-531d-a34e-09ecec492eb1 HTTP/1.1" 200 -
2024-08-04 14:22:50,861:wsdd INFO(pid 590): fe80::ce6e:f020:5d05:dfa9 - - "POST /cb6a33a0-b841-531d-a34e-09ecec492eb1 HTTP/1.1" 200 -
2024-08-04 14:22:50,863:wsdd INFO(pid 590): fe80::ce6e:f020:5d05:dfa9 - - "POST /cb6a33a0-b841-531d-a34e-09ecec492eb1 HTTP/1.1" 200 -
smbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
nmbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
INFO: Profiling support unavailable in this build.

No locked files                                                                                                                                                                                                                     
Samba version 4.18.9                                                                                                                                                                                                                
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing                                                                                                          
----------------------------------------------------------------------------------------------------------------------------------------                                                                                            
                                                                                                                                                                                                                                    
Service      pid     Machine       Connected at                     Encryption   Signing                                                                                                                                            
---------------------------------------------------------------------------------------------                                                                                                                                       
                                                                                                                                                                                                                                    

[14:22:54] ERROR: Got unexpected response from the API: Mounting NAS1 did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-NAS1.mount for details.
[14:22:54] WARNING: Retry 1/3 Error Automount NAS1 Msg: {"name":"NAS1","usage":"media","type":"cifs","server":"172.30.32.1","share":"NAS1","username":"_ha_mount_user_","password":"********"}
[14:22:55] ERROR: Got unexpected response from the API: Could not unmount NAS5 due to: Transaction for mnt-data-supervisor-mounts-NAS5.mount/stop is destructive (mnt-data-supervisor-mounts-NAS5.mount has 'start' job queued, but 'stop' is included in transaction).
[14:22:55] WARNING: Retry 1/3 Error Automount NAS5 Msg: {"name":"NAS5","usage":"media","type":"cifs","server":"172.30.32.1","share":"NAS5","username":"_ha_mount_user_","password":"********"}
[14:22:56] ERROR: Got unexpected response from the API: Reloading NAS5 did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-NAS5.mount for details.
[14:22:56] WARNING: Retry 2/3 Error Automount NAS5 Msg: {"name":"NAS5","usage":"media","type":"cifs","server":"172.30.32.1","share":"NAS5","username":"_ha_mount_user_","password":"********"}
[14:22:58] ERROR: Got unexpected response from the API: Could not unmount SYSTEM due to: Transaction for mnt-data-supervisor-mounts-SYSTEM.mount/stop is destructive (mnt-data-supervisor-mounts-SYSTEM.mount has 'start' job queued, but 'stop' is included in transaction).
[14:22:58] WARNING: Retry 1/3 Error Automount SYSTEM Msg: {"name":"SYSTEM","usage":"media","type":"cifs","server":"172.30.32.1","share":"SYSTEM","username":"_ha_mount_user_","password":"********"}
[14:22:59] ERROR: Got unexpected response from the API: Reloading SYSTEM did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-SYSTEM.mount for details.
[14:22:59] WARNING: Retry 2/3 Error Automount SYSTEM Msg: {"name":"SYSTEM","usage":"media","type":"cifs","server":"172.30.32.1","share":"SYSTEM","username":"_ha_mount_user_","password":"********"}
s6-rc: info: service cifs-supervisor-mount successfully started
s6-rc: info: service mqtt-disk-handler: starting
s6-rc: info: service mqtt-disk-handler successfully started
s6-rc: info: service mqtt-handler: starting
s6-rc: info: service mqtt-handler successfully started
s6-rc: info: service legacy-services: starting
[14:23:00] INFO: Starting the MQTT daemon for partitions info...
[14:23:00] INFO: Starting the MQTT daemon for disks info...
[14:23:00] INFO: MQTT integration
s6-rc: info: service legacy-services successfully started 
[14:23:03] INFO: MQTT disk cleanup.
Timed out
s6-supervise mqtt-disk-handler: warning: finish script lifetime reached maximum value - sending it a SIGKILL
[14:23:09] INFO: Starting the MQTT daemon for disks info...
Timed out
[14:23:11] INFO: MQTT disk cleanup.
Timed out
s6-supervise mqtt-disk-handler: warning: finish script lifetime reached maximum value - sending it a SIGKILL
*****

Samba name server NUCCTV is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.5

*****
*****

Samba name server NUCCTV is now a local master browser for workgroup WORKGROUP on subnet 172.30.32.1

*****
Timed out
[14:23:17] INFO: Starting the MQTT daemon for disks info...
[14:23:20] INFO: MQTT disk cleanup.
Timed out
s6-supervise mqtt-disk-handler: warning: finish script lifetime reached maximum value - sending it a SIGKILL
Timed out

Addon Config

workgroup: WORKGROUP
username: ha
allow_hosts:
  - 10.0.0.0/8
  - 172.16.0.0/12
  - 192.168.0.0/16
  - 169.254.0.0/16
  - fe80::/10
  - fc00::/7
automount: true
moredisks: []
mountoptions:
  - nosuid
  - relatime
  - noexec
available_disks_log: true
medialibrary:
  enable: true
veto_files:
  - ._*
  - .DS_Store
  - Thumbs.db
  - icon?
  - .Trashes
compatibility_mode: false
recyle_bin_enabled: false
wsdd2: false
mqtt_nexgen_entities: false
autodiscovery: {}
other_users: []
acl: []
interfaces: []
password: ***
mqtt_enable: true

Architecture

amd64

OS

HaOS

Morphy99 avatar Aug 04 '24 13:08 Morphy99