question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't login to admin, credentials window asks again and again and again...

See original GitHub issue

I have a fresh and clean install of epl, and can’t login to the admin page. It asks again and again to put in the credentials. I use no auth plugin.

Version: 1.8.0beta

settings.conf

{
  "users": {
     "admin": {
        "is_admin": true,
        "password": ****
     }
  },

  "skinName": "colibris",
  "ip": "127.0.0.1",
  "port": 9001,
  "showSettingsInAdminPage": true,
  "dbType" : "mysql",
  "dbSettings" : {
    "user":     ****,
    "host":     "localhost",
    "port":     3306,
    "password": ****,
    "database": "etherpad_lite_db",
    "charset":  "utf8mb4"
  },
  "suppressErrorsInPadText": false,
  "requireSession": false,
  "editOnly": false,
  "sessionNoPassword": false,
  "minify": true,
  "maxAge": 21600, // 60 * 60 * 6 = 6 hours
   "abiword": "/usr/bin/abiword",
  "soffice": null,
  "tidyHtml": "/usr/bin/tidy",
  "allowUnknownFileEnds": true,
  "requireAuthentication": false,
  "requireAuthorization": false,
  "trustProxy": false,
  "disableIPlogging": true,
  "automaticReconnectionTimeout": 0,
  "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"],
  "loadTest": false,
  "exposeVersion": false,
  "loglevel": "INFO",
  [...]
}

I searched the net but did not find any topic concerning my problem. Any idea?

– Update:

Switched back to 1.7.5, where the admin section is accessible.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
muxatorcommented, Nov 2, 2019

The change that implemented #3648 (7c099fef5e08) was incorrect, and resulted in disabling every user at startup.

The problem was twofold:

  1. _.filter() on an object returns an array of the object’s enumerable values and strips out the keys. This changed the layout of the users object, effectively nuking everyone. See: https://stackoverflow.com/questions/11697702/how-to-use-underscore-js-filter-with-an-object To filter an object, the function that needs to be used is _.pick();
  2. The logic condition on userProperties.password was plain wrong (it should have been an AND instead of an OR).

Thanks @g4rf for finding this bug.

0reactions
muxatorcommented, Nov 2, 2019

And here we are: this is a regression introduced in 7c099fef5e08.

Last working version (4e758a9f4a50):

git checkout 4e758a9f4a50
node <base>/node_modules/ep_etherpad-lite/node/server.js
curl --silent --output /dev/null --write-out "HTTP/%{http_code}\n" --basic --user admin:password http://localhost:9001/admin/
HTTP/200

Regressed version (7c099fef5e08):

git checkout 7c099fef5e08
node <base>/node_modules/ep_etherpad-lite/node/server.js
curl --silent --output /dev/null --write-out "HTTP/%{http_code}\n" --basic --user admin:password http://localhost:9001/admin/
HTTP/401

Thank you for spotting it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

System asking for admin username and password in windows ...
Try this: Right click Start button to open Run box, copy and paste in netplwiz, press Enter. Highlight your account, then click Properties, ......
Read more >
Outlook Keeps Asking for Password on Windows
The user enters the password and presses OK, but the window with the prompt to enter the credentials appears again and again.
Read more >
Recovering administrator access to your account
Recover administrator access using automated recovery. If you forgot your password or username, ... After adding the CNAME or TXT record, click Check...
Read more >
Outlook Continually Prompts For My Password
If prompted again after Cancel, move on to step 3. ... Clear your cached passwords (Note: you may need Admin rights to do...
Read more >
The Password Is Incorrect After Update in Windows 10 FIX
The Password Is Incorrect After Update in Windows 10 FIX.The error "The password is incorrect. Try again " may appear after a Windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found