Menu

#5497 Webmin Server Index Invalid RPC login

1.979
closed-fixed
nobody
None
5
2021-12-02
2021-08-02
glillette
No

On the view "Server Index" i have 2 configurations with the same IP. (see 1.png)
When i edit the configuration i have Invalid RPC login. but the link working. (see 2.png)
I have the same problem with the second config (see 3.png)
For testting i modify the user of the second config (rexxxxxx => rexxxxx2)
i edit the first config user and i have Login to RPC server as rexxxxx2 rejectedbut my user is ubxxxxxx (see 4.png)

4 Attachments

Discussion

  • glillette

    glillette - 2021-09-30

    not work on 1.981

     
  • Jamie Cameron

    Jamie Cameron - 2021-10-02

    What gets logged to /var/webmin/miniserv.error on the remote system when you get those "invalid RPC login" messages on the master system?

     
  • glillette

    glillette - 2021-10-04

    Master system:

    Use of uninitialized value $access{"role"} in split at /usr/share/webmin/webmin/webmin-lib.pl line 1224.
    Argument "" isn't numeric in numeric gt (>) at /usr/share/webmin/webmin/webmin-lib.pl line 1247.
    Argument "" isn't numeric in numeric gt (>) at /usr/share/webmin/webmin/webmin-lib.pl line 1247.
    Use of uninitialized value $servers::in{"group"} in split at /usr/share/webmin/servers/save_serv.cgi line 87.
    Use of uninitialized value $servers::in{"group"} in split at /usr/share/webmin/servers/save_serv.cgi line 87.
    Use of uninitialized value $servers::in{"group"} in split at /usr/share/webmin/servers/save_serv.cgi line 87.
    

    remote system:

    Use of uninitialized value $access{"role"} in split at /usr/share/webmin/webmin/webmin-lib.pl line 1224.
    Argument "" isn't numeric in numeric gt (>) at /usr/share/webmin/webmin/webmin-lib.pl line 1247.
    Argument "" isn't numeric in numeric gt (>) at /usr/share/webmin/webmin/webmin-lib.pl line 1247.
    

    thank you

     

    Last edit: glillette 2021-10-04
  • Jamie Cameron

    Jamie Cameron - 2021-10-07

    Those all look harmless.

    What about /var/webmin/miniserv.log ?

     
  • glillette

    glillette - 2021-10-07

    Master system:

    10.8.0.x - ubxr [07/Oct/2021:08:43:00 +0200] "POST /servers/ HTTP/1.1" 200 36627
    10.8.0.x - ubxr [07/Oct/2021:08:43:00 +0200] "GET /servers/link.cgi/1614078589/syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.1" 200 82512
    10.8.0.x - ubxr [07/Oct/2021:08:43:03 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11002
    10.8.0.x - ubxr [07/Oct/2021:08:43:06 +0200] "GET /index.cgi/?xhr-info=1 HTTP/1.1" 200 10427
    10.8.0.x - ubxr [07/Oct/2021:08:43:06 +0200] "GET /servers/link.cgi/1614078589/syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.1" 200 82622
    10.8.0.x - ubxr [07/Oct/2021:08:43:10 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11094
    10.8.0.x - ubxr [07/Oct/2021:08:43:12 +0200] "GET /servers/link.cgi/1614078589/syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.1" 200 82754
    10.8.0.x - ubxr [07/Oct/2021:08:43:13 +0200] "POST /servers/edit_serv.cgi?id=1627481598 HTTP/1.1" 200 10076
    10.8.0.x - ubxr [07/Oct/2021:08:43:18 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11249
    10.8.0.x - ubxr [07/Oct/2021:08:43:19 +0200] "GET /servers/link.cgi/1614078589/syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.1" 200 82815
    10.8.0.x - ubxr [07/Oct/2021:08:43:25 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11338
    10.8.0.x - ubxr [07/Oct/2021:08:43:28 +0200] "GET /servers/link.cgi/1614078589/syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.1" 200 82925
    10.8.0.x - ubxr [07/Oct/2021:08:43:33 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11543
    10.8.0.x - ubxr [07/Oct/2021:08:43:37 +0200] "GET /servers/link.cgi/1614078589/syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.1" 200 83035
    10.8.0.x - ubxr [07/Oct/2021:08:43:37 +0200] "GET /servers/link.cgi/1614078589/stats.cgi?xhr-stats=general HTTP/1.1" 200 444
    10.8.0.x - ubxr [07/Oct/2021:08:43:40 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11632
    10.8.0.x - ubxr [07/Oct/2021:08:43:41 +0200] "GET /servers/link.cgi/1614078589/stats.cgi?xhr-stats=general HTTP/1.1" 200 442
    10.8.0.x - ubxr [07/Oct/2021:08:43:44 +0200] "GET /servers/link.cgi/1614078589/stats.cgi?xhr-stats=general HTTP/1.1" 200 442
    10.8.0.x - ubxr [07/Oct/2021:08:43:45 +0200] "GET /servers/link.cgi/1614078589/syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.1" 200 82925
    10.8.0.x - ubxr [07/Oct/2021:08:43:47 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11632
    10.8.0.x - ubxr [07/Oct/2021:08:43:47 +0200] "GET /servers/link.cgi/1614078589/stats.cgi?xhr-stats=general HTTP/1.1" 200 442
    10.8.0.x - ubxr [07/Oct/2021:08:43:50 +0200] "GET /servers/link.cgi/1614078589/stats.cgi?xhr-stats=general HTTP/1.1" 200 448
    10.8.0.x - ubxr [07/Oct/2021:08:43:53 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=21&filter= HTTP/1.1" 200 11604
    10.8.0.x - ubxr [07/Oct/2021:08:43:56 +0200] "GET /servers/link.cgi/1614078589/stats.cgi?xhr-stats=general HTTP/1.1" 200 442
    

    remote system:

    10.2.1.x - ubxr [07/Oct/2021:08:43:00 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.0" 200 82512
    10.2.1.x - ubxr [07/Oct/2021:08:43:06 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.0" 200 82622
    10.2.1.x - ubxr [07/Oct/2021:08:43:12 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.0" 200 82754
    **10.2.1.x - rxxe [07/Oct/2021:08:43:13 +0200] "POST /rpc.cgi HTTP/1.0" 200 25**
    10.2.1.x - ubxr [07/Oct/2021:08:43:19 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.0" 200 82815
    10.2.1.x - ubxr [07/Oct/2021:08:43:27 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.0" 200 82925
    10.2.1.x - ubxr [07/Oct/2021:08:43:36 +0200] "GET /syslog/save_log.cgi?oidx=&omod=&file=&extra=&view=1&lines=30&idx=20&filter= HTTP/1.0" 200 83035
    10.2.1.x - ubxr [07/Oct/2021:08:43:37 +0200] "GET /stats.cgi?xhr-stats=general HTTP/1.0" 200 444
    10.2.1.x - ubxr [07/Oct/2021:08:43:41 +0200] "GET /stats.cgi?xhr-stats=general HTTP/1.0" 200 442
    10.2.1.x - ubxr [07/Oct/2021:08:43:44 +0200] "GET /stats.cgi?xhr-stats=general HTTP/1.0" 200 442
    

    I don't know if it's related but I also see the following:
    In Cluster> Cluster Shell Commands I select a group in "Run on servers".
    When I execute my command it will execute well on all the members of the group BUT also on the elements having the same ip not present in the group.

    I also note that the connection fails while the machine is easily accessible

     
  • Jamie Cameron

    Jamie Cameron - 2021-10-09

    I think I see the problem - do you have the master system configured to login to the remote system as root, or some less-privileged user?

     
  • glillette

    glillette - 2021-10-11

    do you have the master system configured to login to the remote system as root

    yes

     
  • Jamie Cameron

    Jamie Cameron - 2021-10-12
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2021-10-12

    Oh .. I just realized that you have two servers configured with the same IP, which will confuse Webmin's RPC functionality, which causes the status to be shown wrong. This is a bug which we'll fix in the next release.

     
  • glillette

    glillette - 2021-10-12

    Thank you very much it will change my life

     
  • glillette

    glillette - 2021-11-29

    Hello,

    I think the problem is not solved in the last version

    image 1:
    I have two configurations on the same IP
    - An admin account
    - A user account

    When I click on the link I can connect.
    When I edit the configuration (image 2 and 3), I have an identification problem (image 3).

     
  • Jamie Cameron

    Jamie Cameron - 2021-12-02

    This issue is that remote RPC calls made by Webmin only work when connecting as the root user. That's why you get the "Invalid RPC login" error.

     
  • glillette

    glillette - 2021-12-02

    ha ok thank you

     

Log in to post a comment.