The forum is read-only currently.

Problem with wsprdaemon after a change to Raspberry Pi WiFi config and wsprdaemon config file edit

Hi,

So after getting my KiWi to run on a fixed IP address I turned my attention to my Raspberry Pi config, as this was also running on a DHCP address.

I edited the /etc/dhcpcd.conf file to add

interface wlan0

static ip_address=192.168.0.52/24
static routers=192.168.1.254
static domain_name_servers=192.168.1.254

and also edited the wsprdaemon.conf to chnage to the KiWi's new IP address.

I then rebooted the Pi but no spots.

wsprdaemon@raspberrypi:~/wsprdaemon $ ./wsprdaemon.sh -s

0: KIWI_SWUKSDR,10 posting Never ran
0: KIWI_SWUKSDR,10 capture Never ran
0: KIWI_SWUKSDR,10 decode Never ran
1: KIWI_SWUKSDR,15 posting Never ran
1: KIWI_SWUKSDR,15 capture Never ran
1: KIWI_SWUKSDR,15 decode Never ran
2: KIWI_SWUKSDR,30 posting Never ran
2: KIWI_SWUKSDR,30 capture Never ran
2: KIWI_SWUKSDR,30 decode Never ran
3: KIWI_SWUKSDR,60eu posting Never ran
3: KIWI_SWUKSDR,60eu capture Never ran
3: KIWI_SWUKSDR,60eu decode Never ran
4: KIWI_SWUKSDR,160 posting Never ran
4: KIWI_SWUKSDR,160 capture Never ran
4: KIWI_SWUKSDR,160 decode Never ran
5: KIWI_SWUKSDR,630 posting Never ran
5: KIWI_SWUKSDR,630 capture Never ran
5: KIWI_SWUKSDR,630 decode Never ran
Uploading daemon found no pid file
No Watchdog deaemon is running

So I tried
wsprdaemon@raspberrypi:~/wsprdaemon $ ./wsprdaemon.sh -z

Watchdog deamon with pid '2528' not running


wsprdaemon@raspberrypi:~/wsprdaemon $ ./wsprdaemon.sh -a

./wsprdaemon.sh: line 3601: /home/wsprdaemon/wsprdaemon/watchdog.log: Permission denied
Watchdog deamon with pid '2727' is now running

wsprdaemon@raspberrypi:~/wsprdaemon $ ./wsprdaemon.sh -s

0: KIWI_SWUKSDR,10 posting Never ran
0: KIWI_SWUKSDR,10 capture Never ran
0: KIWI_SWUKSDR,10 decode Never ran
1: KIWI_SWUKSDR,15 posting Never ran
1: KIWI_SWUKSDR,15 capture Never ran
1: KIWI_SWUKSDR,15 decode Never ran
2: KIWI_SWUKSDR,30 posting Never ran
2: KIWI_SWUKSDR,30 capture Never ran
2: KIWI_SWUKSDR,30 decode Never ran
3: KIWI_SWUKSDR,60eu posting Never ran
3: KIWI_SWUKSDR,60eu capture Never ran
3: KIWI_SWUKSDR,60eu decode Never ran
4: KIWI_SWUKSDR,160 posting Never ran
4: KIWI_SWUKSDR,160 capture Never ran
4: KIWI_SWUKSDR,160 decode Never ran
5: KIWI_SWUKSDR,630 posting Never ran
5: KIWI_SWUKSDR,630 capture Never ran
5: KIWI_SWUKSDR,630 decode Never ran
Uploading daemon found no pid file
Watchdog deamon with pid '2727' not running

I tried looking at the watchdog log but it's not updating.

Tue 10 Dec 17:43:46 GMT 2019: watchdog_daemon() starting as pid 23135
stat: cannot stat '/tmp/wsprdaemon/KIWI_SWUKSDR/15/20191210T174200Z_21094600_usb.wav': No such file or directory
Wed 11 Dec 17:35:02 GMT 2019: Got today's sunrise and sunset times from https://sunrise-sunset.org/
Thu 12 Dec 17:35:03 GMT 2019: Got today's sunrise and sunset times from https://sunrise-sunset.org/

Any suggestions, apart from a rebuild ?

Regards,

Martin - G8JNJ

Comments

  • Hi Martin,
    192.168.0.52/24 is not the same range as your router 192.168.1.254/24

    one or other is wrong.

    Regards
    Stu
  • Hi Stu,

    Oops, that was just a typing error in the posting.

    The actual entry is correct and I can connect to the RasPi on that address.

    Some parts of the daemon seem to be running, but it all worked perfectly OK before I messed around with it.

    Regards,

    Martin - G8JNJ
  • I took this off forum to see if I could help but probably didn't....

    I can see (assume) the error is a permissions thing, like the logged on, daemon running user does not have permission to write to the wsprdaemon directory?
    The config file looks OK to me.
    I could not work out how the permissions could have changed unless the service is running as a different user...

    Before Martin thinks I'm out to scupper his uploads someone else please chip in.

    Stu
  • be cautious that you don't ever do anything with wsprdaemon as root.
  • I'm struggling with this.

    I've so far spent two days and three Raspberry Pi clean installs from scratch (reformatted SD card and reloaded OS) and I just can't get 2.5b to run properly.

    Has anyone done this afresh rather than upgrading from a previous version ?

    Regards,

    Martin - G8JNJ
  • Yes. I've done clean installs on an RPI3 but not with recent WD code.
  • Martin,

    let me know what base install you are using and I'll try the process again from a bare card.
    Not sure if you saw my last email with the steps from the SDRplay PI Image (only becasue I already had one running).
    I didn't see any problem getting that installed and running (reporting from my own Kiwi obviously).

    Cheers
    Stu
  • Hi All,

    Just to conclude this thread.

    With help from Rob and Stu I have now got wsprdaemon 2.5b running correctly on a Raspberry Pi.

    The problem was that I had been editing the files on the Pi using Notepad++ whilst connected to the Pi by means of winSCP.

    The combination of these two factors was somehow adding invisible (in the editor) CR+NL characters at the end of each line rather than the Linux standard NL characters into the file, which Linux wasn't happy with.

    So even when I just added extra lines, which appeared to be blank, the CR+NL characters messed things up.

    This is why I got slightly different error messages each time I tried a reinstall and edited files from scratch.

    Using the built in 'nano' editor (or other Linux edit tool) solved the problem.

    Hope this helps any others who may experience similar problems.

    My thanks again to Rob and Stu for their assistance.

    Regards,

    Martin - G8JNJ
Sign In or Register to comment.