Menu

#5463 Text Login (Ajaxterm) not working on Ubuntu 18.04.5 or 20.04.2

1.972
open
nobody
ajaxterm (1)
5
2021-08-14
2021-03-04
No

When trying to use "Text Login" on Ubuntu 18.04.5 or 20.04.2, the following error is returned:

Ajaxterm did not start accepting connections on port 10001 after 30 seconds.

This is confirmed on more than one installation. https://askubuntu.com/questions/1321006/how-do-i-fix-ajaxterm-connection-error-for-text-login-after-updating-webmin

Discussion

  • Jamie Cameron

    Jamie Cameron - 2021-03-06

    Do you have python installed on this system, and if so which version?

     
  • Artur Meinild

    Artur Meinild - 2021-03-07

    On my system (Ubuntu 20.04.2) it's default Python (3.8.2). I assume the user with Ubuntu 18.04.5 is default Python as well (3.6.5).

     

    Last edit: Artur Meinild 2021-03-07
  • Artur Meinild

    Artur Meinild - 2021-03-07

    I'm pretty sure this was working for me on earlier versions of webmin.

     

    Last edit: Artur Meinild 2021-03-07
  • Ilia

    Ilia - 2021-03-07

    Unfortunately Ajaxterm doesn't support Python 3.

    Here is the simple fix.

     
  • Paul D

    Paul D - 2021-08-12

    I haven't tested this but;
    https://github.com/samuelcaldas/ajaxterm/commit/0a55fa639676d1ad71c876bd116b2dc0fcfc4db6

    This Github user says he's updated Ajaxterm to work with Python 3 (samuelcaldas committed on 12 Jun 2020)

    1 changed file with 5 additions and 5 deletions.

    UPDATE: just seems to have changed File to Open in a few places

    Cheers, Paul

     

    Last edit: Paul D 2021-08-12
    • Jamie Cameron

      Jamie Cameron - 2021-08-14

      Is that patch compatible with both Python 2 and 3 ?

       
  • Paul D

    Paul D - 2021-08-14

    Hi Jamie,

    I changed the file ajaxterm.py in your webmin module, restarted Webmin, on my server with Python 3, but no change to the error ;
    Ajaxterm did not start accepting connections on port 10001 after 30 seconds.
    I have opened TCP 10001 port.

    HOWEVER; changed that file ajaxterm.py on my other server running Python 2.3, restarted Webmin, and text login continues to work!

    Could there be some cache issue I am not aware of? Should I have rebooted?

    Sorry :-(

     

Log in to post a comment.