Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Francielle 65 posts 279 karma points
    Aug 09, 2016 @ 11:31
    Francielle
    0

    Unauthorized (401) when logging in backoffice

    Hi Everyone,

    We have an Umbraco 7.4.3 running in an https environment. When we try to login to it, it enters the backoffice and immediatelly logs out, with message "Session time out". We have the following errors in console:

    https://websiteurl.com/umbraco/LegacyTreeJs?umb__rnd=7.4.3.1089022656 Failed to load resource: the server responded with a status of 401 ()

    Failed to load resource: the server responded with a status of 401 () https://www.gravatar.com/avatar/df12f7a5953a283801da32e9c28db59d.jpg?s=64&d=404 Failed to load resource: the server responded with a status of 404 (Not Found)

    https://websiteurl.com/umbraco/backoffice/UmbracoApi/Dashboard/GetDashboard?section=content Failed to load resource: the server responded with a status of 401 ()

    https://websiteurl.com/umbraco/backoffice/UmbracoTrees/ApplicationTree/GetApplicationTrees?application=content&tree=&isDialog=false Failed to load resource: the server responded with a status of 401 ()

    This did not happen before, but we started having the error once Umbraco reached around 3k nodes. Do you have any idea on what could have happen or how we can fix it? We also tried uploading the Umbraco files again, but no luck.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 09, 2016 @ 15:48
    Sebastiaan Janssen
    0

    There's been a few other reports of this, make sure to read this to see if you can get anything useful out of those:

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/49453-HTTPS-and-BackOffice-logging-in?p=0

    And apart from that: ask yourself what changed recently in the site? Maybe it has something to do with features that were recently implemented.

  • Francielle 65 posts 279 karma points
    Aug 09, 2016 @ 20:18
    Francielle
    0

    Hi Sebastiaan, thanks for the feedback.

    Besides the huge number of nodes being registered, there was no code change on the website that would make it fail. I followed some considerations from other topics and requested the host to take a look into any server change and, perhaps, adding a machinekey to the web.config to see if it is fixed. Once we find a solution I'll post it in this thread to help others.

  • Francielle 65 posts 279 karma points
    Aug 10, 2016 @ 13:39
    Francielle
    100

    For future reference...

    This problem was fixed by adding a machinekey to the webconfig. I contacted the hosting company and they added the following to web.config:

    <machineKey decryptionKey="THISISTHEDECRYPTIONKEY,IsolateApps" validationKey="THISISTHEVALIDATIONKEY,IsolateApps" />
    

    Once they did that, Umbraco login stopped working at all and there was a 500 error in /postlogin To fix it, I had to remove the "IsolateApps" from the key, so the final fix was:

    <machineKey decryptionKey="THISISTHEDECRYPTIONKEY" validationKey="THISISTHEVALIDATIONKEY" />
    
Please Sign in or register to post replies

Write your reply to:

Draft