-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] session-file-store errors in server logs #2
Comments
There are already open issues on this in their repo(s).
The OS.js server should not require any administration privileges, and running a HTTP server as root/admin is a very bad idea. Also messing with permissions is not recommended.
This won't solve the problem. The issue here is how the session file store handles the actual files. It will fail in some cases (intermittent) and then spit out an error log, which really is more like a warning as it all works fine (it retries until it succeeds). So, there's not much I can do about this sadly. I even get this on my development box... but not private server. |
They closed those issues because it fixed for win7, as I see. But not for win10 (see the last comments @ 51). |
This is the open issue: valery-barysok/session-file-store#41 |
Okay. Will wait for a solution here. |
Indeed. Some other users have said the same thing. The library can take a custom logging method as an option, so it is possible to suppress these messages -- but not sure if it's a good idea or not. |
I'll look into using connect-loki. It depends on how much more extra dependencies etc. that will produce. |
I've done some testing with |
New release is out, and problem fixed (even with persistent storage). Thanks, man! 👍 |
Error: EPERM: operation not permitted, rename 'USER\PATH\TO\OS.js\sessions\Nnm-q0myVZReDkZC42zWuqf6CVYBlWhI.json.3995843885' -> 'USER\PATH\TO\OS.js\sessions\Nnm-q0myVZReDk
ZC42zWuqf6CVYBlWhI.json'
Hi, @andersevenrud .
I'm not sure that is your code issue but session (as I saw you use
express-session
package) can't properly rename session file and read it normally on Windows.I found this issues:
valery-barysok/session-file-store#58
valery-barysok/session-file-store#51
According to those issues I just need run app as admin. But I don't know why because
sessions
folder is in current user home directory.I see there a few solutions for improvements:
session-file-store
GitHub and wait for a response.connect-loki
insteadsession-file-store
as I see in issue 58 there is not such problem: https://www.npmjs.com/package/connect-lokiThanks.
The text was updated successfully, but these errors were encountered: