• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hardware info lost after pilight restart
#1
Hello,

I now got the second time the error that hardware info was lost in config.json after pilight restart.   "hardware": {},
Restoring of old config file solves the problem.

Today I did the following system update, dist-upgrade, reboot and got the following.
The hardware info again was lost in config file.

Code:
pi@byizb2:~ $ cat /var/log/pilight.log | grep "version"
[Mar 10 12:01:46:635356] INFO: version v8.1.5-nightly-1a21c44e
pi@byizb2:~ $ sudo service pilight status
● pilight.service - pilight
  Loaded: loaded (/etc/systemd/system/pilight.service; enabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Wed 2021-03-10 13:05:09 CET; 7min ago

Mär 10 13:05:09 byizb2 systemd[1]: pilight.service: Service RestartSec=100ms expired, scheduling restart.
Mär 10 13:05:09 byizb2 systemd[1]: pilight.service: Scheduled restart job, restart counter is at 14.
Mär 10 13:05:09 byizb2 systemd[1]: Stopped pilight.
Mär 10 13:05:09 byizb2 systemd[1]: pilight.service: Start request repeated too quickly.
Mär 10 13:05:09 byizb2 systemd[1]: pilight.service: Failed with result 'exit-code'.
Mär 10 13:05:09 byizb2 systemd[1]: Failed to start pilight.
pi@byizb2:~ $ sudo service pilight start
pi@byizb2:~ $ sudo service pilight status
● pilight.service - pilight
  Loaded: loaded (/etc/systemd/system/pilight.service; enabled; vendor preset: enabled)
  Active: active (running) since Wed 2021-03-10 13:13:51 CET; 14s ago
 Process: 3472 ExecStart=/usr/local/sbin/pilight-daemon (code=exited, status=0/SUCCESS)
Main PID: 3474 (pilight-daemon)
   Tasks: 13 (limit: 877)
  CGroup: /system.slice/pilight.service
          └─3474 /usr/local/sbin/pilight-daemon

Mär 10 13:13:51 byizb2 systemd[1]: Starting pilight...
Mär 10 13:13:51 byizb2 systemd[1]: Started pilight.
pi@byizb2:~ $ cat /var/log/pilight.log | grep -E 'hardware'
[Mar 10 12:13:51:949418] NOTICE: there are no hardware modules configured

Restoring old config file and restart pilight solves the problem.

Best regards Rschnauzer
Raspberry B+ Raspian buster
Low-pass filter, Receiver RXB6, Sender I-XI
pilight v8.1.5 (removed nightly-84719473), Android App 6.0.4 Android 11

 
Reply
#2
Was pilight stopped after editing the config?
 
Reply
#3
(03-10-2021, 02:54 PM)curlymo Wrote: Was pilight stopped after editing the config?

I did not change config file since several month. I only did recover from old backup after two reboots and following missing pilight function.
I stopped pilight before I recovered the config file.

Best regards Rschnauzer
Raspberry B+ Raspian buster
Low-pass filter, Receiver RXB6, Sender I-XI
pilight v8.1.5 (removed nightly-84719473), Android App 6.0.4 Android 11

 
Reply
#4
Hello,

again the config.json file is lost.

I did today the following:
sudo service pilight stop
sudo apt-get update
sudo apt-get dist-upgrade
 
pi@byizb2:~ $ sudo pilight-debug >debug-2110317.txt
[Mar 17 10:18:01:305843] NOTICE: there are no hardware modules configured
pi@byizb2:~ $
pi@byizb2:~ $ sudo cp /etc/pilight/config.json config-falsch.json
pi@byizb2:~ $ sudo cp /etc/pilight/config.json.bak /etc/pilight/config.json
pi@byizb2:~ $ sudo pilight-debug >debug-2110317.txt
--- works

The config.json was completly lost, see inserted code.

Best regards,
Rschnauzer


Code:
{
    "devices": {},
    "rules": {},
    "gui": {},
    "settings": {
        "log-level": 6,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "standalone": 1,
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/webgui",
        "webserver-http-port": 5001,
        "webserver-https-port": 5002,
        "webserver-cache": 1,
        "whitelist": "",
        "gpio-platform": "none"
    },
    "hardware": {},
    "registry": {
        "hardware": {
            "RF433": {
                "mingaplen": 5100,
                "maxgaplen": 34000,
                "minrawlen": 25,
                "maxrawlen": 512
            }
        }
    }
}
Raspberry B+ Raspian buster
Low-pass filter, Receiver RXB6, Sender I-XI
pilight v8.1.5 (removed nightly-84719473), Android App 6.0.4 Android 11

 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  how to compile pilight with custom protocol code? am i missing something? stanwebber 2 65 07-05-2021, 03:49 AM
Last Post: stanwebber
Question pilight stopped working sl4m01 3 937 11-26-2020, 09:17 PM
Last Post: PPacman
  pilight-raw changes output format from 7 to 8 Rschnauzer 1 631 11-26-2020, 01:52 PM
Last Post: curlymo
Question pilight nightly webgui offline after some hours fleisch 4 687 10-26-2020, 05:19 PM
Last Post: fleisch
  pilight bugs Ascenion 1 652 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 4,471 12-21-2019, 09:46 AM
Last Post: curlymo
  pilight-control modify values coolinx 16 3,594 11-13-2019, 08:02 PM
Last Post: curlymo
  Bug: double free or corruption in pilight-send blackzombie 12 3,077 10-07-2019, 08:15 PM
Last Post: blackzombie
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 980 08-13-2019, 05:43 PM
Last Post: curlymo
  pilight Nano USB interface curlymo 228 148,848 07-10-2019, 06:14 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)