[Moin-user] [Errno 1] Operation not permitted
Gordon Ross
G.Ross at ccw.gov.uk
Mon Apr 3 02:45:04 EDT 2006
Hi,
I had a Wiki farm running on Moin 1.3
I built a new server running Moin 1.5, and I copied the wikis over to
the new farm. At first, I got some strange permission errors, but I
solved that by deleting the cache directories, and things started
looking up.
I've just tried to edit a page (in text mode), and when I click save, I
get:
OSError
[Errno 1] Operation not permitted:
'/srv/wiki/ns/data/pages/GordonRoss(2f)MoinEditorBackup/revisions/00000001'
(Rest of details below)
All the files in the wiki directories are 770 by the webserver user &
group.
Suggestions plese ?
Thanks,
GTG
PS - Thanks for moving the "Save" button to above the edit window :-)
If you want to report a bug, please save this page and attach it to
your bug report.
* Show debugging information
* Report bug
* Visit MoinMoin wiki
Traceback
A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.
1.
/usr/local/lib/python2.4/site-packages/MoinMoin/request.py in run
(self=<MoinMoin.request.RequestCGI object>)
1. 1086 from MoinMoin.wikiaction import getHandler
2. 1087 handler = getHandler(self, action)
3. 1088 handler(self.page.page_name, self)
4. 1089
5. 1090 # 5. Or redirect to another page
* handler = <function do_edit>
* self = <MoinMoin.request.RequestCGI object>
* self.page = <MoinMoin.Page.Page instance>
* self.page.page_name = u'ResetWikiPassword'
2.
/usr/local/lib/python2.4/site-packages/MoinMoin/wikiaction.py in
do_edit (pagename=u'ResetWikiPassword',
request=<MoinMoin.request.RequestCGI object>)
1. 629 else:
2. 630 try:
3. 631 savemsg = pg.saveText(savetext, rev, trivial=trivial,
comment=comment)
4. 632 except pg.EditConflict, msg:
5. 633 # Handle conflict and send editor
* savemsg undefined
* pg = <MoinMoin.PageEditor.PageEditor instance>
* pg.saveText = <bound method PageEditor.saveText of
<MoinMoin.PageEditor.PageEditor instance>>
* savetext = u'Copied from
http://moinmoin.wikiwikiweb.de/MoinM...user accounts are not shared
between them.\nsdfsd\n'
* rev = 1
* trivial = 0
* comment = u''
3.
/usr/local/lib/python2.4/site-packages/MoinMoin/PageEditor.py in
saveText (self=<MoinMoin.PageEditor.PageEditor instance>,
newtext=u'Copied from http://moinmoin.wikiwikiweb.de/MoinM...user
accounts are not shared between them.\nsdfsd\n', rev=1, **kw={'comment':
u'', 'trivial': 0})
1. 829 """
2. 830 _ = self._
3. 831 backup_url = self._make_backup(newtext, **kw)
4. 832 action = kw.get('action', 'SAVE')
5. 833
* backup_url undefined
* self = <MoinMoin.PageEditor.PageEditor instance>
* self._make_backup = <bound method PageEditor._make_backup
of <MoinMoin.PageEditor.PageEditor instance>>
* newtext = u'Copied from
http://moinmoin.wikiwikiweb.de/MoinM...user accounts are not shared
between them.\nsdfsd\n'
* kw = {'comment': u'', 'trivial': 0}
4.
/usr/local/lib/python2.4/site-packages/MoinMoin/PageEditor.py in
_make_backup (self=<MoinMoin.PageEditor.PageEditor instance>,
newtext=u'Copied from http://moinmoin.wikiwikiweb.de/MoinM...user
accounts are not shared between them.\nsdfsd\n', **kw={'comment': u'',
'trivial': 0})
1. 671 intro += _('## backup of page "%(pagename)s" submitted
%(date)s') % {
2. 672 'pagename': pagename, 'date': date,} + u'\n'
3. 673 backuppage._write_file(intro + newtext)
4. 674
5. 675 return backuppage.url(self.request)
* backuppage = <MoinMoin.PageEditor.PageEditor instance>
* backuppage._write_file = <bound method
PageEditor._write_file of <MoinMoin.PageEditor.PageEditor instance>>
* intro = u'#acl GordonRoss:read,write,delete All:\n\n'
* newtext = u'Copied from
http://moinmoin.wikiwikiweb.de/MoinM...user accounts are not shared
between them.\nsdfsd\n'
5.
/usr/local/lib/python2.4/site-packages/MoinMoin/PageEditor.py in
_write_file (self=<MoinMoin.PageEditor.PageEditor instance>, text=u'#acl
GordonRoss:read,write,delete All:\n\nCopied f...user accounts are not
shared between them.\nsdfsd\n', action='SAVE', comment=u'', extra=u'')
1. 789 f.write(self.encodeTextMimeType(text))
2. 790 f.close()
3. 791 os.chmod(pagefile, 0666 & config.umask)
4. 792 mtime_usecs =
wikiutil.timestamp2version(os.path.getmtime(pagefile))
5. 793 # set in-memory content
* global os = <module 'os' from
'/usr/local/lib/python2.4/os.pyc'>
* os.chmod = <built-in function chmod>
* pagefile =
'/srv/wiki/ns/data/pages/GordonRoss(2f)MoinEditorBackup/revisions/00000001'
* global config = <module 'MoinMoin.config' from
'/usr/local/lib/python2.4/site-packages/MoinMoin/config.pyc'>
* config.umask = 504
OSError
[Errno 1] Operation not permitted:
'/srv/wiki/ns/data/pages/GordonRoss(2f)MoinEditorBackup/revisions/00000001'
* args = (1, 'Operation not permitted')
* errno = 1
* filename =
'/srv/wiki/ns/data/pages/GordonRoss(2f)MoinEditorBackup/revisions/00000001'
* strerror = 'Operation not permitted'
System Details
* Date: Mon, 03 Apr 2006 08:38:55 +0000
* Platform: Linux nsweb2 2.6.16.1 #3 Sun Apr 2 13:13:42 BST 2006
i686
* Python: Python 2.4.3 (/usr/local/bin/python)
* MoinMoin: Release 1.5.2 (release)
More information about the Moin-user
mailing list