Image path not writable after update to 2.2
Added by Christopher Lilienthal over 11 years ago
We have Leginon setup with the database, webserver, and image storage running on a Red Hat Enterprise Linux 5 computer and the processing server is on a Red Hat Enterprise Linux 5 computer. We have a FEI Tecnai F20 controlled by a Windows XP computer with Leginon installed and was updated to version 2.2 around November 23, 2012. This leginon installation has been working fine for us.
leginon.cfg contents:
[Image Path]
path: /leginon/data/leginon
[Drive Mappings]
L: /leginon/data
The image storage location on the Linux machine is /leginon/data/leginon and it is running a Samba server sharing /leginon/data
So we decided to add a FEI Tecnai 12 to our leginon setup. I first checked out and installed branch 2.2 on Monday (5/20/2013) and received the message "Error: image path not writable: /leginon/data/leginon" after trying to run start-leginon.py or launcher.py. However, I am able to add, delete, move, and rename files/folders in the image directory.
I then removed leginon and installed version 2.1 and was able to run leginon without an issue with the same configuration. But when I updated the installation to version 2.2 I receive the same error.
Replies (5)
RE: Image path not writable after update to 2.2 - Added by Anchi Cheng over 11 years ago
It is not clear to me where you started Leginon that gave you the error message. By the way, if you see it in launcher.py, it is not fatal since no data will actually be written there.
RE: Image path not writable after update to 2.2 - Added by Christopher Lilienthal over 11 years ago
Hi Anchi,
Thanks for the fast response.
Sorry for the confusion, in trying to include as much detail as possible I seem to have lost the bigger picture. I am trying to start leginon from the Windows computer attached to the microscope we are trying to add to our setup (Tecnai 12).
I try to launch leginon from either of the two shortcuts suggested "Leginon Admin" (start-leginon.py) and "Leginon Client" (launcher.py). When I try to run them they open a command window and then close immediately. I see the error only when running from the Windows command line ('python \Python25\Lib\site-packages\leginon\start-leginon.py' or 'python \Python25\Lib\site-packages\leginon\launcher.py'
Thanks
RE: Image path not writable after update to 2.2 - Added by Anchi Cheng over 11 years ago
I just updated the 2.2 branch to prevent Leginon Client from exiting when it found the image path not writable.
RE: Image path not writable after update to 2.2 - Added by Christopher Lilienthal over 11 years ago
I'll give it a try and let you know how it goes.
Thank you
RE: Image path not writable after update to 2.2 - Added by Christopher Lilienthal over 11 years ago
That did the trick.
I'm guessing this is due to this note on docs.python.org page about os.access saying:
"I/O operations may fail even when access() indicates that they would succeed, particularly for operations on network filesystems which may have permissions semantics beyond the usual POSIX permission-bit model."
Thanks