[Moin-user] cannot upload attachements

Horna, Thomas twh at ibex-ag.de
Fri May 2 02:10:48 EDT 2003


Hi, 
I have one more problem: It is my second moinmoin installation. First was on
OpenBSD machine
and I had no problems, and it was 3 month old cvs release of moinmoin. Now I
fetched stable 1.1
cvs release, and have this problem.I get fancy window with this message. I
tried to change some permissions, but same problem.
Any help would be nice...

thanks,
Thomas

-----
OSError: [Errno 13] Permission denied: '/user' Python 2.2.2
/usr/local/bin/python 

A problem occurred while running a Python script. Here is the sequence of
function calls leading up to the error, with the most recent (innermost)
call first. The exception attributes are:
      __doc__ = 'OS system call failed.' 
      __getitem__ = <bound method OSError.__getitem__ of <exceptions.OSError
instance at 0x828ddcc>> 
      __init__ = <bound method OSError.__init__ of <exceptions.OSError
instance at 0x828ddcc>> 
      __module__ = 'exceptions' 
      __str__ = <bound method OSError.__str__ of <exceptions.OSError
instance at 0x828ddcc>> 
      args = (13, 'Permission denied') 
      errno = 13 
      filename = '/user' 
      strerror = 'Permission denied'

/usr/local/lib/python2.2/site-packages/MoinMoin/util/filesys.py in
makeDirs(name='/user', mode=511) 
   22         makeDirs(head, mode)
   23 
   24     os.mkdir(name, mode & config.umask)
 
       global os = <module 'os' from '/usr/local/lib/python2.2/os.pyc'>,
global mkdir = undefined, name = '/user', mode = 511, global config =
<module 'MoinMoin.config' from
'/usr/local/lib/python2.2/site-packages/MoinMoin/config.pyc'>, global umask
= undefined
   25     os.chmod(name, mode & config.umask)
   26 


/usr/local/lib/python2.2/site-packages/MoinMoin/util/filesys.py in
makeDirs(name='/user/local', mode=511) 
   20         head, tail = os.path.split(head)
   21     if head and tail and not os.path.exists(head):
   22         makeDirs(head, mode)
 
       global makeDirs = <function makeDirs>, head = '/user', mode = 511
   23 
   24     os.mkdir(name, mode & config.umask)


/usr/local/lib/python2.2/site-packages/MoinMoin/util/filesys.py in
makeDirs(name='/user/local/share', mode=511) 
   20         head, tail = os.path.split(head)
   21     if head and tail and not os.path.exists(head):
   22         makeDirs(head, mode)
 
       global makeDirs = <function makeDirs>, head = '/user/local', mode =
511
   23 
   24     os.mkdir(name, mode & config.umask)


/usr/local/lib/python2.2/site-packages/MoinMoin/util/filesys.py in
makeDirs(name='/user/local/share/moin', mode=511) 
   20         head, tail = os.path.split(head)
   21     if head and tail and not os.path.exists(head):
   22         makeDirs(head, mode)
 
       global makeDirs = <function makeDirs>, head = '/user/local/share',
mode = 511
   23 
   24     os.mkdir(name, mode & config.umask)


/usr/local/lib/python2.2/site-packages/MoinMoin/util/filesys.py in
makeDirs(name='/user/local/share/moin/storage', mode=511) 
   20         head, tail = os.path.split(head)
   21     if head and tail and not os.path.exists(head):
   22         makeDirs(head, mode)
 
       global makeDirs = <function makeDirs>, head =
'/user/local/share/moin', mode = 511
   23 
   24     os.mkdir(name, mode & config.umask)


/usr/local/lib/python2.2/site-packages/MoinMoin/util/filesys.py in
makeDirs(name='/user/local/share/moin/storage/MisTools', mode=511) 
   20         head, tail = os.path.split(head)
   21     if head and tail and not os.path.exists(head):
   22         makeDirs(head, mode)
 
       global makeDirs = <function makeDirs>, head =
'/user/local/share/moin/storage', mode = 511
   23 
   24     os.mkdir(name, mode & config.umask)


/usr/local/lib/python2.2/site-packages/MoinMoin/util/filesys.py in
makeDirs(name='/user/local/share/moin/storage/MisTools/attachments',
mode=511) 
   20         head, tail = os.path.split(head)
   21     if head and tail and not os.path.exists(head):
   22         makeDirs(head, mode)
 
       global makeDirs = <function makeDirs>, head =
'/user/local/share/moin/storage/MisTools', mode = 511
   23 
   24     os.mkdir(name, mode & config.umask)


/usr/local/lib/python2.2/site-packages/MoinMoin/action/AttachFile.py in
getAttachDir(pagename='MisTools', create=1) 
   59 
   60     if create and not os.path.isdir(attach_dir): 
   61         filesys.makeDirs(attach_dir)
 
       global filesys = <module 'MoinMoin.util.filesys' from
'/usr/local...thon2.2/site-packages/MoinMoin/util/filesys.pyc'>, global
makeDirs = undefined, attach_dir =
'/user/local/share/moin/storage/MisTools/attachments'
   62 
   63     return attach_dir


/usr/local/lib/python2.2/site-packages/MoinMoin/action/AttachFile.py in
do_upload(pagename='MisTools', request=<MoinMoin.request.Request instance>) 
  379 
  380     # get directory, and possibly create it
  381     attach_dir = getAttachDir(pagename, create=1)
 
       attach_dir = undefined, global getAttachDir = <function
getAttachDir>, pagename = 'MisTools', global create = undefined
  382 
  383     # make filename


/usr/local/lib/python2.2/site-packages/MoinMoin/action/AttachFile.py in
execute(pagename='MisTools', request=<MoinMoin.request.Request instance>) 
  340     elif request.form['do'].value == 'upload':
  341         if request.user.may.edit(pagename):
  342             do_upload(pagename, request)
 
       global do_upload = <function do_upload>, pagename = 'MisTools',
request = <MoinMoin.request.Request instance>
  343         else:
  344             msg = _('<b>You are not allowed to upload files.</b>')


/usr/local/lib/python2.2/site-packages/MoinMoin/cgimain.py in
run(properties={}) 
  199         else:
  200             try:
  201                 cgitb.handler()
 
       cgitb = <module 'MoinMoin.support.cgitb' from
'/usr/loca...hon2.2/site-packages/MoinMoin/support/cgitb.pyc'>, handler =
<function execute>
  202             except:
  203                 cgi.print_exception(*saved_exc)


 




More information about the Moin-user mailing list