Description
My usage pattern: I use MoinMoin from different operating systems within the same wikidir.
After I switch the OS from Windows to Linux and back, I try to save a modified page. On save, MoinMoin gives either HTTP 500 or another "Internal error" page.
Steps to reproduce
Reboot to Linux (I use Ubuntu Precise), run MoinMoin wikiserver.py, edit some MoinMoin page, save the page;
- Reboot to Windows 7.
- Edit the same page, save it.
MoinMoin doesn't save the page and gives an either error saving page or HTTP 500 page (I don't remember the type of error page MoinMoin gives).
- Go to the page data dir, backup the nested "cache" dir at some another location, then delete the "cache" dir with all of its contents.
- Try to save the same page again.
Now MoinMoin saves it OK.
Workaround
I need to delete "cache" dirs for pages I modify after OS switch. When "cache" folder is deleted, the MoinMoin saves the page correctly, without "error saving" page.
- Alternatively, you can use "FAR" ("File and Archive Manager") NC-like file system navigator software for Windows:
- Navigate to a folder "wiki/data/pages/", press Alt F7 (Find File), enter file mask:
cache
- (see above)
- Search area: From the current folder
- Check "Case sensitive" and "Search for folders"
- Press "Find" button (or just Enter)
- Choose "Panel" button with arrows;
- Press "Panel" button with Enter keyboard key;
- Choose all panelized "cache" folders with Insert key (press it and wait for all files to be selected, then release the pressed Insert key);
Either move these folders to a backup location (F6 key) or just delete them (F8 or ShiftDelete).
- Enjoy.
Example
Component selection
- general
Details
MoinMoin Version |
1.9.4 |
OS and Version |
Windows 7 and Linux Ubuntu Precise |
Python Version |
2.7.3 x86 from python.org |
Server Setup |
wikiserver.py (local server) |
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
Russian in userprefs; Russian and English in practice |
Discussion
This is not a Bug
After a change of the OS aka python installation you have to clean all cache files, see HelpOnMoinCommand (moin ... maint cleancache). In the page dirs are byte compiled cache files stored. They won't load on a different compiled python installation. The same problem you describe also happens on the same architecture with different python versions.
If you want feel free to add an HowTo out of this.
Q: is it the same 2.7.3 python under ubuntu AND windows?
Plan
- Priority:
- Assigned to:
- Status: