Upgrade from OMV 5.6 to 6 worked but Login Loop

  • Hi,

    I did the update today with the help of omv-release-upgrade (all plugins were uninstalled before upgrade). It went well until I tried to login. Now I have a Login Loop (trying to login succeeds and loops back to login). Looking at the browser console i see a 401 on rpc.php (unauthorized), this changes to 400 when given invalid user credentials

    I checked:

    1. disk space usage is at ~60%

    2. chmod on /var/lib/php/sessions is 777

    3. no entries in nginx/openmediavault-webgui_error.log

    4. success entries in nginx/openmediavault-webgui_access.log

    5. user openmediavault-admin exists and is in group admin


    Help would be appreciated :) Thank You

    • Official Post

    Did that already, tried with Chrome, Firefox, Firefox on Android and even an Internet Explorer on a Windows Machine

    Well 99% of the time login loop is either full OS drive, or a cache issue.


    Try opening your browser in Incognito Mode, and see if you can log in.

  • Cleared cache and cookes, tried Firefox/Chrome Incognito Mode --> still no success.

    • Official Post

    Cleared cache and cookes, tried Firefox/Chrome Incognito Mode --> still no success.

    Not really sure then... like I said, those are the two most common issues w/ the login loop (I'd say about 95% of the time one of those two issues is causing it).

  • macom


    Don't know if you spotted this but it seems the Ibanaut had/has Nextcloud installed on the HOST:


    Maybe this is messing with nginx?!?

  • Logging into omv6 should give you something like this (success):


    and this in case of wrong password:

    Response of rpc.php is (click on rpc.php):


    If you see this, post the contents of the response in a code box.


    If you see different network traffic, post a picture of it.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Hmm seems different (tested in Firefox, Chrome Incognito)


    Content of rpc.php:

    Code
    {"response": null,
        "error": {
            "code": 0,
            "message": "Session not authenticated.",
            "trace": "OMV\\HttpErrorException: Session not authenticated. in /usr/share/php/openmediavault/session.inc:146\nStack trace:\n#0 /usr/share/php/openmediavault/rpc/proxy/json.inc(81): OMV\\Session->validateAuthentication()\n#1 /var/www/openmediavault/rpc.php(45): OMV\\Rpc\\Proxy\\Json->handle()\n#2 {main}"
        }
    }
  • macom


    Don't know if you spotted this but it seems the Ibanaut had/has Nextcloud installed on the HOST:


    Maybe this is messing with nginx?!?

    Yes, Nextcloud is installed on the system...but the nginx config was not changed. Nextcloud listens on 443

  • This should be the other way around. User "admin" exists and is in the group "openmediavault-admin"


    Post the output of id admin

    Code
    id admin
    uid=998(admin) gid=100(users) Gruppen=100(users),994(openmediavault-admin)

    Sorry my fault

  • OK, nginix is serving the correct application and I think you got authenticated, because of the first rpc.php call.

    Can you post the response of it (just repeat what you did above). Image is not necessary.


    Do you have settings, which deny setting of cookies or writing to local storage in your browser

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • OK, nginix is serving the correct application and I think you got authenticated, because of the first rpc.php call.

    Can you post the response of it (just repeat what you did above). Image is not necessary.


    Do you have settings, which deny setting of cookies or writing to local storage in your brow

    Code
    {
      "response": null,
      "error": {
        "code": 0,
        "message": "Session not authenticated.",
        "trace": "OMV\\HttpErrorException: Session not authenticated. in /usr/share/php/openmediavault/session.inc:146\nStack trace:\n#0 /usr/share/php/openmediavault/rpc/proxy/json.inc(81): OMV\\Session->validateAuthentication()\n#1 /var/www/openmediavault/rpc.php(45): OMV\\Rpc\\Proxy\\Json->handle()\n#2 {main}"
      }
    }

    Sometimes I can see for a few milliseconds the next screen before it goes back to the login page... no settings blocking cookies, chrome (chromium) is a bare installation

  • This is not the answer of the rph.php call, which gave a 200


    Can you check again?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • OK, It is time for votdev again. Summary:

    • Opening the omv website loads javascript files, onts, ...
    • Login works (rpc.php gives correct andwer)
    • A moment later the session is not authorized. Erro see #13.

    Ibanaut can you please check in the web development tools, if cookies and local storag is set (Tab Application and on the left side select Local Storage and Cookies).

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!