I tried telnet both as myself (non-priveleged) and as weewx.  Both worked:

$ telnet 192.168.198.91 22222
Trying 192.168.198.91...
Connected to 192.168.198.91.
Escape character is '^]'.
^]
telnet> 
Connection closed.
$ telnet -l weewx 192.168.198.91 22222
Trying 192.168.198.91...
Connected to 192.168.198.91.
Escape character is '^]'.
^]
telnet> 
Connection closed.

Re the versioning issue, I still can't get to 5.1.  "sudo apt update; sudo 
apt upgrade; sudo apt install weewx" just leaves me at 5.0.1.  Seems to be 
a repository issue.  /etc/apt/sources.list.d/weewx.list was empty except 
for a commented out line:

# deb [arch=all] http://weewx.com/apt/python3 buster main # disabled on 
upgrade to jammy

jammy is 22.04, and I'm on 24.04.1 LTS.  I ran the command shown in the 
manual, and now that file contains:

deb [arch=all] https://weewx.com/apt/python3 buster main

But, I still stay on 5.0.1.  Seems to be a repository issue?

The ps command returns squat, because weewx aborts when the driver fails, 
so there's no weewx stuff running.

BTW, I'm still running the same weewx.conf that I was under 4.8.  Do I need 
to change it out?


On Monday, October 14, 2024 at 8:59:57 PM UTC-7 vince wrote:

> Which user did you use when telnetting to 2222 ?
>
> Did you run that ps command I asked you to run ?
>
> On Monday, October 14, 2024 at 8:00:03 PM UTC-7 loonsailor wrote:
>
>> '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
>>
>> I tried the following, which worked, much to my surprise:
>>
>> $ telnet 192.168.198.91 22222
>> Trying 192.168.198.91...
>> Connected to 192.168.198.91.
>> Escape character is '^]'.
>>
>> This worked even though I'd changed wifilogger's TCP port to 2222 
>> (instead of 22222).   22222 is it's default, so maybe it always stays open? 
>>  Or maybe telnet uses a UDP port instead of TCP?
>>
>> And if this works, why didn't weewx work before I changed the config file?
>>
>> This worked fine before updating OS and weewx, so I'm mystified.
>>
>>
>>
>>

-- 
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/43fefb1c-0c2a-4946-ae96-1290070f187bn%40googlegroups.com.

Reply via email to