Skip to content
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

problems with lock an moinmoin #48

Closed
luisforra opened this issue Jul 15, 2016 · 8 comments
Closed

problems with lock an moinmoin #48

luisforra opened this issue Jul 15, 2016 · 8 comments
Assignees
Milestone

Comments

@luisforra
Copy link

luisforra commented Jul 15, 2016

Win10 x64
1.10.1-RC7

I'm having problems with MoinMoin and locking, sometimes cannot adquire lock,

There is any way to disable locks ?

Thnak you

@jetwhiz
Copy link
Owner

jetwhiz commented Jul 17, 2016

@analitico -- that's for reporting this behavior! Just to make sure I understand correctly, does that mean that MoinMoin successfully acquires locks sometimes, but fails under certain circumstances?

Do you notice any pattern on when the lock acquisition fails, so that I can try to reproduce this issue?

@luisforra
Copy link
Author

luisforra commented Jul 20, 2016

@jetwhiz
After the first lock error it gives error in all the pages, the first error is fast also, one edit or one new page, trace:
application_iter = app(environ, start_response) File "P:\moin\MoinMoin\support\werkzeug\wsgi.py", line 411, in __call__ return self.app(environ, start_response) File "P:\moin\MoinMoin\wsgiapp.py", line 282, in __call__ response = run(context) File "P:\moin\MoinMoin\wsgiapp.py", line 88, in run response = dispatch(request, context, action_name) File "P:\moin\MoinMoin\wsgiapp.py", line 136, in dispatch response = handle_action(context, pagename, action_name) File "P:\moin\MoinMoin\wsgiapp.py", line 195, in handle_action handler(context.page.page_name, context) File "P:\moin\MoinMoin\action\edit.py", line 166, in execute savemsg = pg.saveText(savetext, rev, trivial=trivial, comment=comment) File "P:\moin\MoinMoin\PageEditor.py", line 1137, in saveText mtime_usecs, rev = self._write_file(newtext, action, comment, extra, deleted=deleted) File "P:\moin\MoinMoin\PageEditor.py", line 919, in _write_file self.setConflict(wikiutil.containsConflictMarker(text)) File "P:\moin\MoinMoin\Page.py", line 1674, in setConflict cache.remove() File "P:\moin\MoinMoin\caching.py", line 290, in remove self.lock('w') File "P:\moin\MoinMoin\caching.py", line 157, in lock raise CacheError(err) CacheError: Can't acquire w lock in P:\moin\wiki\data\pages\Organiza(c3a7c3a3)oPessoal\cache\__lock__

I'm using the internal http server of MoinMoin,

@jetwhiz
Copy link
Owner

jetwhiz commented Jul 20, 2016

@analitico -- can you provide some debug data from encfs4win that might help determine where the problem lies? Try running encfs.exe with the "-v" verbose flag:

encfs.exe -v   CRYPT_PATH   MOUNT_POINT

If you are running in background mode, the logs should be available in your TEMP folder. If in foreground mode (-f flag) then the logs will output to the terminal.

@luisforra
Copy link
Author

luisforra commented Jul 20, 2016

@jetwhiz

with -f -v there isn't any error, I believe is because of the delay, the encfs folder is shared with dropbox, if I stop dropbox I don't get the errors.

@jetwhiz
Copy link
Owner

jetwhiz commented Jul 20, 2016

@analitico -- can you test and see if this problem also exists in 1.10.1-RC6?

@luisforra
Copy link
Author

@jetwhiz
With 1.10.1-RC6 MoinMoin doesn't give errors even with dropbox working

@jetwhiz
Copy link
Owner

jetwhiz commented Jul 21, 2016

@analitico -- I am going to remove the locking mechanism from encfs to fix this issue until I have more time to ensure the implementation doesn't cause any issues.

@jetwhiz jetwhiz self-assigned this Jul 21, 2016
@jetwhiz jetwhiz added this to the 1.10.1 milestone Jul 21, 2016
@luisforra
Copy link
Author

@jetwhiz, thank you

@jetwhiz jetwhiz closed this as completed Jul 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants