Project

General

Profile

images are not saved to images path which is set at leginon.cfg

Added by ShinBo Chen almost 9 years ago

I can get the images from gatan microscope. Actually I didn't find the session name at linux machine. How to check the images stored the right place.

I've checked the leginon.cfg and mysql is on. Even set the images path from nfs folder to localhost(myamiImages).

Some can help me to figure it out. I attached the messages for start-leginon.py

Many thanks.

ps: Do I check the /var/www/html/myamiweb/config.php. Some path setting included.
leginon.cfg are both at window and linux box. Should they be the same or not.


Replies (3)

RE: images are not saved to images path which is set at leginon.cfg - Added by Anchi Cheng almost 9 years ago

The linux machine where you starts Leginon session with start-leginon.py is where leginon.cfg matters. The windows machines only opens
the client. Images from the camera pass there are not saved to the disk of the windows machine. Therefore you don't have to worry about its
value..

Assuming what you sent is from the linux machin, the session should be in /tmp/emdata2/leginon. But do make sure that the base directory
/tmp/emdata2/leginon exists and is writable by the linux user starting the session. The image path is shown in the setup wizard page where you
click "Finish". If Leginon has no permission or can not find parent directory, you should get errors in the log Window of Leginon gui. Take a screenshot
of a few lines including the error would be useful for debuging.

The session image path is not created until an image is saved, so you won't see the image path for the session
appear on the file server which I see is on the same computer.

Regarding your screen shot, I've noticed a few things:

1. You include several attempts of running start-leginon.py with 3 different errors. Were you not getting images in all of them or some of them ?

2. Your system is set to Chinese which explains the Unicode error. We did not right the program for Unicode comparison. As a work around, you might want to try
set the language to English. Maybe that will resolve that particular error.

3. The second error you have regarding "NoneType" object has no attribute : Settings comes from camera is not selected before you make the program to acquire images.
It may be obvious to you since there is only one camera, the program has to set it nonetheless. Because camera server from its Windows computer sometims take significant time to get ready, we had to make the gui in Leginon default to "None" first if camera server does not response in time. With MSI and Calibration application, we can send saved preset to scope and camera as the first thing to do and therefore initiate the camera selection properly. It is not so with manual acquisition. You, as the user, has to open "Settings" in Manual node before your FIRST image acquisition and make sure the camera and scope selection is not still "None". It looks like you have figured that one out yourself. I would think it is natural that no image is saved there.

4. The Reservation error is harmless.

Given that your last attempt did not give real error of concern, my guess that you simply have a settings problem. Manual node is not default to save image to disk and database since it is used in the first Leginon test. Check Manual node Settings under Advanced, you should find the checkbox.

As far as checking myamiweb/config.php, web server just need to know that the image files written is readable. Where the file is from is obtained through query to database, not from config.php.

Hope I have answered your questions and pointing you to the right direction.

Anchi

RE: images are not saved to images path which is set at leginon.cfg - Added by ShinBo Chen almost 9 years ago

Thanks the reply.

I am sure that "/tmp/emdata2/leginon" is writable.

How to check the errors in the log Window of Leginon gui. As I read the path of legion.cfg at windows is fake. Do I check the path (path: 192.168.10.66:/tmp/emdata2/leginon) or mapping drive (z:/leginon) .

Actually "Manual node is not default to save image to disk and database" is the thing I missed.

I will check the 1~4 and take screenshots later.

Thanks again for your help.

RE: images are not saved to images path which is set at leginon.cfg - Added by Anchi Cheng almost 9 years ago

About log window, I meant the window in the gui, called Message Log in Graphical_User_Interface wiki page. They are not saved to files normally which is why I said to take screenshots if you see error in there.

Unicode issue may be just inconvenience for you. The reservation function where the error is found is used to resolve conflict when more than more than one microscope is on the same database and two persons may be creating a session at about the same time.

    (1-3/3)