I. I’m back to not being able to login at all, as in my original post. I’m starting to think it could have something to do with me adjusting the session settings in Setup => Security.
I login with my PC and just see another user, then I’m automatically logged out of desk with a pop up saying:
Not Permitted
Session expired. Logging you out
You do not have enough permissions to access this resource. Please contact your manager to get access.
II. At this point I can still see my user as I’m back on the website.
III. I can still normally login on my phone without issues.
IV. My browser console shows
a. 1 unreachable code warning - before I switch to desk, or do a fresh login
unreachable code after return statement frappe-web.min.js:67:49 [2 repeats]
b. about 5 lines - between login an being kicked out:
unreachable code after return statement desk.min.js:695:49
unreachable code after return statement desk.min.js:975:187
unreachable code after return statement desk.min.js:695:49
unreachable code after return statement desk.min.js:975:187
unreachable code after return statement desk.min.js:209:703
c. Then 2 afterwards:
The connection to ws://erp.outsourcenow.us/socket.io/?EIO=3&transport=websocket&sid=eBpbXib_2K4u-1PmAAAH was interrupted while the page was loading. libs.min.js:6090:15
unreachable code after return statement desk.min.js:695:49
@adam26d this seems really strange. We use ERPnext all the time our selves and no one has reported it. Can you make a quick screencast or list down the steps that someone can replicate.
Also try this, setup a 5 user trial on erpnext.com and see if you can replicate it.
Thanks for your input Rushabh. I’m changing hosts from AWS for now as recommended by multiple developers.
I’ll retry the 5 user option, though I remember only being able to use 1 user on the erpnext.com trial. Additional users required some sort of package upgrade. Please correct me if I’m wrong.
I intend to keep updating this thread for future reference til this issue is resolved.
I’m not quite sure what was causing this but we got it right on our third or fourth setup and it’s never been an issue again. The only thing we changed was migrating from AWS to Digital Ocean, linode is better though.
Try
bench update —reset
bench migrate
If that fails delete your default bench directory then start afresh with
but ERPnext is local based on a company, and the IT department has set up a proxy server that allows the user to just browse the web through credentials,
the problem started after this proxy setting.
and other users that their computers have not been configured on the proxy server, they can log in with their credentials and view their profiles as well.
What I did was an exhaustive test with the pc with proxy and non proxy settings and my conclusion is that with the proxy config to surf the web, ERP gets confused and starts to randomize users by login,
i don’t know if Iám right, the IT department doesn’t agree with this conclusion, so maybe might have another solution or idea.
Ah… this reminds me, our very first setup was on the LAN. We had a VM on a windows PC and could access it on the internet via a public IP and that’s the last time we experienced this. The problem with this issue is that its hard to replicate but these common factors are a good point of focus.
Te IT department solved it using a exception on the proxy settings…
and everything works fine now
Bellow the screenshot of wher they put the exception.
I think that’s the solution for this issue for now.
I have been experiencing a change in user sessions with another user, even though they never logged into my system or shared their password. This issue has occurred randomly and is not unique to me; others in the company have reported the same problem. We are currently using Frappe/ERPNext 14 in a Docker environment. I am not sure about the exact time when this issue occurs, so I attempted to replicate it locally. However, I was unsuccessful due to my limited knowledge of when it happened.
It would be grateful if someone provide some additional details. So, I can try to trace the issue.
I am experiencing the same issue. I am logged in as administrator using my pc, then when another using is login with a different account, suddenly the account logged in to my pc is the other account.
To add context: we are using google login with our own domain.
Sadly we were not able to pinpoint the cause of the issue. Only thing I can intuitively point to is that we were hosting ERPNext on a local network.
For future posters on this thread, including you @kptdaaron, please mention your hosting/network as well, and whether there’s something unusual about it.
Overtime a trend should appear and bring us closer to the issue. I’d also like to look at the logs in bench/sites/<site-name>/logs
We have also experienced this. My user had never been logged in on the device, yet when the other user opened ERPNext (As a PWA on Windows 11), they were logged into my account with full access to the account.
We are using LDAP authentication. ERPNext: v15.54.4 (version-15) Frappe Framework: v15.58.1 (version-15) Frappe HR: v16.0.0-dev (develop)
Someone else mentioned a very similar problem recently:
Given the sensitivity of some of the data stored in ERPNext (think employee personal data), this issue should be investigated urgently. Does anyone know if the developers are aware and if so, looking into this? What can we do to help?