Sorry not sure what I'm doing wrong. panders@cont-weewx-git:~$ sudo sh /home/panders/weewx-data/scripts/setup-daemon.systemd Cannot find utility files at location '/root/weewx-data/util' panders@cont-weewx-git:~$
Paul On Sat, Dec 16, 2023 at 10:24 AM Tom Keffer <[email protected]> wrote: > Did you run the version of setup-daemon.systemd in ~/weewx-data/scripts? > It should have expanded $HOME to the location of the location of weewx-data. > > On Sat, Dec 16, 2023 at 5:58 AM [email protected] <[email protected]> > wrote: > >> V5.0.0b17 pip install >> setup-daemon.systemd fails when run with sudo with this error >> Cannot find utility files at location '/root/weewx-data/util' >> Because when run with sudo >> UTIL_ROOT=$HOME/weewx-data/util >> Becomes >> UTIL_ROOT=/root/weewx-data/util >> >> Paul >> On Thursday, December 14, 2023 at 5:52:51 PM UTC-5 Tom Keffer wrote: >> >>> Hopefully, we are getting very close to a final release for V5.0! >>> >>> *Warning!* >>> But, until then, this is still very much a beta release. You could break >>> your installation, and it might take skills to recover. If you're using pip >>> in a virtual environment, the risk is low of breaking other things, but you >>> will have to shut down your production instance temporarily. For a package >>> installer, try it in a VM, or on another computer, first. >>> >>> *Pip* >>> >>> For pip installs, please delete your old virtual environment, then >>> install from scratch by following the new pip install instructions >>> <https://weewx.com/docs/5.0/quickstarts/pip/#install-in-a-virtual-environment>. >>> While upgrading should work, we are particularly interested in the >>> experience of a new install, including setting up a daemon and udev files. >>> Make sure to follow the new instructions that use a daemon setup script. >>> >>> >>> *Debian* >>> >>> For Debian package installs, modify /etc/apt/sources.list as follows: >>> >>> *echo "deb [arch=all] https://weewx.com/apt-test/python3 >>> <https://weewx.com/apt-test/python3> buster main" | sudo tee >>> /etc/apt/sources.list.d/weewx.list* >>> >>> Note the "apt-test". This tells apt to look there for the beta release, >>> instead of the normal repository. You may want to change it back when >>> you're done. >>> >>> >>> *Red Hat* >>> >>> For Red Hat package installs, put this in /etc/yum.repos.d/weewx.repo >>> >>> *[weewx] >>> name=weewx >>> baseurl=http://weewx.com/yum-test/weewx/el9 >>> <http://weewx.com/yum-test/weewx/el9> >>> enabled=1* >>> >>> Note the "yum-test". This tells yum to look there for the beta release, >>> instead of the normal repository. Again, you may want to change things back >>> when you're done. >>> >>> >>> *What we're looking for* >>> >>> 1. We are interested in your upgrade experience. Did the installers get >>> your configuration file right? Skins? Is the daemon configured correctly? >>> >>> 2. With this release, we have included udev rules to set the correct >>> permissions for devices. Did it work? If not, did unplugging then >>> replugging the device work? >>> >>> 3. How about logging? Version 5 will log to a dedicated weewx file, >>> generally /var/log/weewx/weewx.log. Is that what you're seeing? >>> >>> >>> *Thanks!* >>> >>> -Tom & Matt >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-development" 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-development/9cdd016b-ecba-4ea6-9b08-45506f7d6cafn%40googlegroups.com >> <https://groups.google.com/d/msgid/weewx-development/9cdd016b-ecba-4ea6-9b08-45506f7d6cafn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/CAOAVAeduJATSS5wg7oUEfJDGQqdKfNreRr%2BpkrprOqmcqXoxWA%40mail.gmail.com.
