re the version of weewx, I did "sudo apt update; sudo apt upgrade; sudo apt install weewx" and I get the response that 5.0.1 is the current version. I looked in /etc/apt/sources.d, and the file weewx.list contains only one commented out line:
# deb [arch=all] http://weewx.com/apt/python3 buster main # disabled on upgrade to jammy I'm now on Linux 24.04.1 LTS, which is, I think, jammy. Should I have a different repository list? Re the port problem, I've changed the wifilogger port to 2222 (instead of 22222), and set debug to 1 and port 2222 in weewx.conf. Still no joy. Here's the log with debug. 2024-10-14T18:25:40.108787-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Initializing weewxd version 5.0.1 2024-10-14T18:25:40.110003-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf 2024-10-14T18:25:40.121078-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Using Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] 2024-10-14T18:25:40.121308-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Located at /usr/bin/python3 2024-10-14T18:25:40.122800-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Platform Linux-5.15.0-122-generic-x86_64-with-glibc2.39 2024-10-14T18:25:40.123611-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Locale: 'en_US.UTF-8' 2024-10-14T18:25:40.124478-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py 2024-10-14T18:25:40.125329-07:00 ubu-mini-weather weewxd[941]: INFO __main__: WEEWX_ROOT: /etc/weewx 2024-10-14T18:25:40.126199-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Configuration file: /etc/weewx/weewx.conf 2024-10-14T18:25:40.127036-07:00 ubu-mini-weather weewxd[941]: INFO __main__: User module: /etc/weewx/bin/user 2024-10-14T18:25:40.127989-07:00 ubu-mini-weather weewxd[941]: INFO __main__: Debug: 1 2024-10-14T18:25:40.128951-07:00 ubu-mini-weather weewxd[941]: DEBUG __main__: Initializing engine 2024-10-14T18:25:40.136337-07:00 ubu-mini-weather weewxd[941]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage) 2024-10-14T18:25:40.291519-07:00 ubu-mini-weather weewxd[941]: DEBUG weewx.drivers.vantage: Driver version is 3.6.2 2024-10-14T18:25:40.300207-07:00 ubu-mini-weather weewxd[941]: DEBUG weewx.drivers.vantage: Option loop_request=2 2024-10-14T18:25:40.301295-07:00 ubu-mini-weather weewxd[941]: ERROR weewx.drivers.vantage: Socket error while opening port 2222 to ethernet host 192.168.198.91. 2024-10-14T18:25:40.302074-07:00 ubu-mini-weather weewxd[941]: ERROR weewx.engine: Import of driver failed: [Errno 101] Network is unreachable (<class 'weewx.WeeWxIOError'>) 2024-10-14T18:25:40.309610-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** Traceback (most recent call last): 2024-10-14T18:25:40.310587-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 354, in openPort 2024-10-14T18:25:40.311404-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** self.socket.connect((self.host, self.port)) 2024-10-14T18:25:40.312183-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** OSError: [Errno 101] Network is unreachable 2024-10-14T18:25:40.312794-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** 2024-10-14T18:25:40.313291-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** During handling of the above exception, another exception occurred: 2024-10-14T18:25:40.313738-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** 2024-10-14T18:25:40.314173-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** Traceback (most recent call last): 2024-10-14T18:25:40.314724-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation 2024-10-14T18:25:40.316118-07:00 ubu-mini-weather weewxd[941]: CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self) I tried to telnet to the new port, and get the following: $ telnet 192.168.198.91 2222 Trying 192.168.198.91... telnet: Unable to connect to remote host: Connection refused This worked fine before updating OS and weewx, so I'm mystified. BTW, I'm using my old conf file, which still says it's version 4.8. Doesn't seem like that should be thr problem, but... On Monday, October 14, 2024 at 4:58:52 PM UTC-7 Tom Keffer wrote: On Monday, October 14, 2024 at 6:38:35 PM UTC-7 vince wrote: > > To check which user weewx is running as, try "ps aux | grep weewx | grep > -v grep" and look at the output. It should say something like: > weewx 4977 7.8 0.7 117336 30056 ? Ssl 18:28 0:00 python3 > /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf > > Your numbers in the middle of your output will vary but the first column > should say 'weewx' and the command starting with 'python3' above should > look the same in your output. > > These lines got me wondering... > Oct 14 14:33:20 ubu-mini-weather weewxd[833]: CRITICAL __main__: Unable to > load driver: [Errno 101] Network is unreachable > Oct 14 14:33:20 ubu-mini-weather weewxd[833]: CRITICAL __main__: **** > Exiting... > Oct 14 14:33:20 ubu-mini-weather systemd[1]: weewx.service: Main process > exited, code=exited, *status=4/NOPERMISSION <======* > > Agree with Tom about trying to telnet to 22222 as a first test but please > do so as an unprivileged user, not as root. I did a quick test here on a > ubuntu 24.04.1LTS system and I 'could' access an unprivileged port from a > dpkg installation of weewx 5.1.0 just fine. In my test I accessed a > similar unprivileged port 45000 which is the ecowitt gateway port, and the > weewx user was not in any special groups or anything. FWIW - you might try > adding user 'weewx' to group 'netdev' just in case, but that shouldn't be > necessary. Try Tom's telnet test first. > > On Monday, October 14, 2024 at 4:58:52 PM UTC-7 Tom Keffer wrote: > >> Being able to browse to the logger doesn't really prove much. Port 80 is >> a very common port to leave open. Port 22222, not so common. >> >> Try telnet to port 22222 as the same user that's running weewxd. I don't >> know what user that is (debug=1 would tell you), but if you upgraded to >> v5.0.1, it's likely to be user 'weewx'. >> >> Which makes me realize we didn't address your other problem: not >> upgrading to v5.1.0. I have not seen that before. Can you try apt update >> and upgrade again? >> >> -tk >> >> >> On Mon, Oct 14, 2024 at 4:44 PM 'loonsailor' via weewx-user < >> weewx...@googlegroups.com> wrote: >> >>> I've confirmed that the computer can reach the station by doing so from >>> the browser. WifiLogger has an html interface, and I can see it and >>> interact with it from the same computer that's running weewx. >>> >>> -- >>> 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 weewx-user+...@googlegroups.com. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/91164721-a326-4044-bbd1-45b0f6056923n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/91164721-a326-4044-bbd1-45b0f6056923n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/576cfa35-1a5f-4041-ad2a-5f9cea8789bbn%40googlegroups.com.