• sftp hangs. Node stuck at login prompt

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Wed Feb 28 08:18:38 2024
    open https://gitlab.synchro.net/main/sbbs/-/issues/728

    From my logs

    ```
    Feb 28 03:06:12 bbs synchronet: term Node 2 SSH bbs.endofthelinebbs.com [192.138.210.158]
    Feb 28 03:06:12 bbs synchronet: term Node 2 0038 SSH Setting attribute: SESSINFO_ACTIVE
    Feb 28 03:06:15 bbs synchronet: term Node 2 0038 SSH dbg 'No algorithm compatible with the remote system's selection was found: 'ssh-ed25519'' (-50) setting session active
    Feb 28 03:06:15 bbs synchronet: term Node 2 SSH login: 'nelgin'
    Feb 28 03:06:15 bbs synchronet: term Node 2 <nelgin> 0038 SSH Setting attribute: SESSINFO_AUTHRESPONSE
    Feb 28 03:06:15 bbs synchronet: term Node 2 <nelgin> 0038 SSH Setting attribute: SESSINFO_ACTIVE
    Feb 28 03:06:15 bbs synchronet: term Node 2 <nelgin> 0038 SSH [192.138.210.158] waiting for channel type.
    Feb 28 03:06:15 bbs synchronet: term Node 2 <nelgin> SFTP initialized on channel 1
    ```

    I tried 3 times connecting from the bbs server

    ```
    $ node status -vaddr

    Synchronet Node Display/Control Utility v3.20

    Node 1: User #1 at main menu via ssh (MP) [UQ]
    addr=47.186.62.206
    Node 2: At login prompt
    addr=192.138.210.158
    Node 3: At login prompt
    addr=192.138.210.158
    Node 4: At login prompt
    addr=192.138.210.158
    Node 5: Waiting for connection
    Node 6: Waiting for connection
    ```

    and now I have 3 nodes stuck at login prompt and they have been all night, so not timing out.


    netstat is showing just the one connection, which is me on node 1.

    ```
    root@bbs:~# netstat -anp|grep :22
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1533543/sbbs
    tcp 0 0 192.138.210.158:22 47.186.62.206:64636 ESTABLISHED 1533543/sbbs
    tcp6 0 0 :::22 :::* LISTEN 1533543/sbbs
    ```
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab issue in main/sbbs on Wed Feb 28 08:52:04 2024
    close https://gitlab.synchro.net/main/sbbs/-/issues/728
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Thu Feb 29 02:02:55 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/728#note_5007

    Not fixed.

    ```
    Feb 29 03:49:22 bbs synchronet: term 0030 SSH [47.186.62.206] Connection accepted on 192.138.210.158 port 22 from port 52546
    Feb 29 03:49:22 bbs synchronet: term 0030 SSH Cryptlib Session: 14159 created Feb 29 03:49:22 bbs synchronet: term 0030 SSH [47.186.62.206] Hostname: <no name>
    Feb 29 03:49:22 bbs synchronet: term 0030 SSH [47.186.62.206] Attaching to Node 1
    Feb 29 03:49:22 bbs synchronet: term Node 1 Loading configuration files from /sbbs/ctrl/
    Feb 29 03:49:22 bbs synchronet: term Node 1 constructor using socket 30 (settings=8212)
    Feb 29 03:49:22 bbs synchronet: term Node 1 temporary file directory: /sbbs/node1/TEMP/
    Feb 29 03:49:22 bbs synchronet: term Node 1 passthru listen socket 33 opened Feb 29 03:49:22 bbs synchronet: term Node 1 passthru socket listening on port 37101
    Feb 29 03:49:22 bbs synchronet: term Node 1 passthru connect socket 34 opened Feb 29 03:49:22 bbs synchronet: term Node 1 input thread started
    Feb 29 03:49:22 bbs synchronet: term Node 1 output thread started
    Feb 29 03:49:22 bbs synchronet: term Node 1 outbuf highwater mark tuned to 1436 based on MSS
    Feb 29 03:49:22 bbs synchronet: term Node 1 thread started
    Feb 29 03:49:22 bbs synchronet: term Node 1 JavaScript: Creating node runtime: 134217728 bytes
    Feb 29 03:49:22 bbs synchronet: term Node 1 03:49 Thu Feb 29 2024 Node 1
    Feb 29 03:49:22 bbs synchronet: term Node 1 SSH <no name> [47.186.62.206]
    Feb 29 03:49:22 bbs synchronet: term Node 1 0030 SSH Setting attribute: SESSINFO_ACTIVE
    Feb 29 03:49:24 bbs synchronet: term Node 1 0030 SSH dbg 'No algorithm compatible with the remote system's selection was found: 'ssh-ed25519'' (-50) setting session active
    Feb 29 03:49:24 bbs synchronet: term Node 1 SSH login: 'crashtestdummy'
    Feb 29 03:49:24 bbs synchronet: term Node 1 <Crashtestdummy> 0030 SSH Setting attribute: SESSINFO_AUTHRESPONSE
    Feb 29 03:49:24 bbs synchronet: term Node 1 <Crashtestdummy> 0030 SSH Setting attribute: SESSINFO_ACTIVE
    Feb 29 03:49:24 bbs synchronet: term Node 1 <Crashtestdummy> 0030 SSH [47.186.62.206] waiting for channel type.
    Feb 29 03:49:24 bbs synchronet: term Node 1 <Crashtestdummy> SFTP initialized on channel 1
    ```

    sftp session hangs. When I CTRL C it exits but sbbs still has the session hanging.

    ```
    bbs@bbs:~$ node status -vaddr

    Synchronet Node Display/Control Utility v3.20

    Node 1: At login prompt
    addr=47.186.62.206
    Node 2: nelgin viewing node status via ssh (P) [Q]
    addr=47.186.62.206
    Node 3: Waiting for connection
    ```

    ```
    bbs@bbs:~$ sudo netstat -anp|grep :22
    [sudo] password for bbs:
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1583175/sbbs
    tcp 0 0 192.138.210.158:22 47.186.62.206:64463 ESTABLISHED 1583175/sbbs
    tcp 85 0 192.138.210.158:22 47.186.62.206:52546 CLOSE_WAIT 1583175/sbbs
    tcp6 0 0 :::22 :::* LISTEN 1583175/sbbs
    ```

    Fair enough, in CLOSE_WAIT...15 minutes later...still close wait.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Thu Feb 29 08:48:22 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/728#note_5009

    I'm far beyond that commit.

    bbs@bbs:~/sbbs-git$ git show
    commit 5a45e5c5d91d6b90f734d88f17cf5c09faad26c9 (HEAD -> master, origin/master, origin/HEAD)
    Merge: 217700a69 15bbed2b0
    Author: Rob Swindell <rob@synchro.net>
    Date: Thu Feb 29 09:33:03 2024 +0000
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Thu Feb 29 12:17:27 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/728#note_5013

    Fixed.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)