Why the discussion re init.d ? Looking at my system, weewx appears to use systemd, so: systemctl status weewx should show whether weewx is running and something like (not tested) sudo systemctl enable weewx.service to make weewx run on bootup.
Weewx newbie here, so it may not be so simple. And: sudo cat /var/log/syslog | grep weewx for easily looking through a vast syslog for the weewx bits. On Monday, 5 July 2021 at 08:04:54 UTC+1 vince wrote: > It's rather hard to tell what it's doing based on you (re)starting the > service versus running manually perhaps. > > At Jul 5 08:04:52 I see a keyboard interrupt then another start at > 08:05:17 which seems to run. At 08:10:19 it adds a record to the db but > fails to run the Seasons skin due to the skin.conf file being missing. If > you look carefully you'll see it looking for the skin in /etc/weewx (where > the dpkg puts things) rather than /home/weewx (where setup.py puts things) > so basically your weewx.conf file seems to be pointing to where dpkg puts > things, not where setup.py puts things...for at least the skins. > > I do see some i/o errors in there (first example Jul 5 00:00:41) and weewx > resetting as a result so I don't know if it's aborting on you due to lack > of hearing data from the station maybe. > > But it's definitely running.. > > > On Sunday, July 4, 2021 at 9:15:11 PM UTC-7 [email protected] wrote: > >> Thanks Tom, >> >> I'm using Linux 10 Buster. >> >> I tried that -x please see attached. I get the feeling like it's not even >> trying to run weewx. >> >> I cleared the syslog before i rebooted, that's why it's so sparse. I am >> getting it from /var/log/syslog. Everything related to weewx is in >> /var/log/weewx.log which you can see here >> <https://u.pcloud.link/publink/show?code=XZx9JPXZ1dQbqXRzMzmRIDqcydKfFVGcoI1y>. >> >> Whatever you see there with weewx running is when it has been run >> automatically. I'm sure this is an OS problem, somehow init.d is not doing >> what it's supposed to. >> >> Thanks >> >> >> On Mon, Jul 5, 2021 at 7:28 AM Tom Keffer <[email protected]> wrote: >> >>> Things to try >>> >>> 1. Where are you getting this system log? It looks very sparse. >>> >>> 2. What version of Raspbian are you using? (Use "cat /etc/os-release") >>> >>> 3. Try using a -x switch before running /etc/init.d/weewx. It will at >>> least tell you what it's doing: >>> >>> set -x >>> sudo /etc/init.d/weewx start >>> set +x >>> >>> >>> -tk >>> >>> On Sun, Jul 4, 2021 at 1:47 PM Sean Jahnig <[email protected]> wrote: >>> >>>> Thanks for the reply. It could very well be the init.d/weewx script but >>>> i've started at it and from what i understand, i can't see an error. I've >>>> attached weewx.txt which is the top half of the init.d script. >>>> >>>> I cleared the syslog and the weewx.log and then i rebooted. After the >>>> reboot i pasted the syslog into the attached syslog.txt - and the >>>> weewx.log >>>> remained empty so nothing to attach. >>>> >>>> After the boot, i tried to run this sudo /etc/init.d/weewx start and >>>> nothing happens, nor gets added to the log. >>>> >>>> Lastly, i ran *cd /home/weewx* and then *sudo ./bin/weewxd* and it >>>> immediately worked and started working. >>>> >>>> >>>> >>>> On Sun, Jul 4, 2021 at 6:54 PM Tom Keffer <[email protected]> wrote: >>>> >>>>> Make sure the script in /etc/init.d/weewx references your new copy of >>>>> weewxd in /home/weewx/bin, and not the old copy in /usr/share/weewx >>>>> >>>>> But, it's hard to say anything definitive without seeing the log. >>>>> >>>>> -tk >>>>> >>>>> On Sun, Jul 4, 2021 at 6:50 AM [email protected] <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I originally had weewx installed using the DEB package which was >>>>>> fine. With the intention of using multiple instances of weewx for >>>>>> different >>>>>> stations, I have uninstalled that and then I re-installed weewx using >>>>>> setup.py to the /home/weewx/ >>>>>> >>>>>> It works perfectly when I run it directly in terminal using *sudo >>>>>> ./bin/weewxd* but I have not been able to add the script to >>>>>> *init.d/weewx* in order for it to run at boot. I have followed the >>>>>> instructions at https://weewx.com/docs/setup.htm but weewx will not >>>>>> start at boot and after boot, even if I manually run sudo >>>>>> /etc/init.d/weewx start it does nothing. I can tell because I'm >>>>>> tailing the log file and nothing happens. Run it manually, it starts >>>>>> collecting data perfectly. >>>>>> >>>>>> I used the default file from /weewx/utils/weewx.debian and copied it >>>>>> to /etc/init.d/weewx and I did not make any changes. Is there something >>>>>> else I'm supposed to do. The weewx installation was done to the default >>>>>> /home/weewx directory. >>>>>> >>>>>> Would appreciate any suggestions. >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "weewx-user" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/weewx-user/9cfe9263-c54c-47f3-9ed5-f2197bb7696en%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/weewx-user/9cfe9263-c54c-47f3-9ed5-f2197bb7696en%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to a topic in the >>>>> Google Groups "weewx-user" group. >>>>> To unsubscribe from this topic, visit >>>>> https://groups.google.com/d/topic/weewx-user/POwnsa43jyI/unsubscribe. >>>>> To unsubscribe from this group and all its topics, send an email to >>>>> [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEA7A0rcQ_OqmiqdYe_6MTNXy-rJH1LH8Vge1heqAxkuNg%40mail.gmail.com >>>>> >>>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEA7A0rcQ_OqmiqdYe_6MTNXy-rJH1LH8Vge1heqAxkuNg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "weewx-user" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/CALeSoZkYr1JAhQKfr4MJ%3DBQJoKnhrs%2BfFGKUt7Ku3rcRcdo_0g%40mail.gmail.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/CALeSoZkYr1JAhQKfr4MJ%3DBQJoKnhrs%2BfFGKUt7Ku3rcRcdo_0g%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "weewx-user" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/weewx-user/POwnsa43jyI/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/CAPq0zED86H%2Bt%3DtBfSWDByhT1t_Y%2BVtaT4LLVrWL9bSrJromVUQ%40mail.gmail.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zED86H%2Bt%3DtBfSWDByhT1t_Y%2BVtaT4LLVrWL9bSrJromVUQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bfb6bd0b-45a6-4e0a-baab-15272e0600e4n%40googlegroups.com.
