Project

General

Profile

Actions

Bug #1267

closed

Auto Installer - can't open image viewer for demo images

Added by Amber Herold about 13 years ago. Updated about 13 years ago.

Status:
Won't Fix or Won't Do
Priority:
Normal
Assignee:
Eric Hou
Category:
Installation
Target version:
Start date:
04/20/2011
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.1.0
Show in known bugs:
No
Workaround:

Description

Hi,

I download the centosAutoInstallation.py to install leginon/Appion on my CentOS computer. However, I found The myamiweb can not open imageviwer for any of 8 demo images. After I read the code, I found the problem is the last part of the script actually execute autoInstalSetup.php under myamiweb/setup directory and the last part of this php is loading 8 demo images into database. The problem is this command hard ocded the input directory at /tmp/images. But in the wiki there is no place to tell people to start the centosAutoInstallation.py at this directory. So 8 images actually were download on what ever directory people run centosAutoInstallation.py. One way to solve it is add the following lines in downloadSampleImages in centosAutoInstallation.py.

If not os.pathexists(“/tmp/images”):
Os.makedirs(“/tmp/images”)

Os.chdir(“/tmp/images”)

Of course change back to cwd directory after download images.

This should solve the current problem. No matter where people execute the centosAutoInstallation.py

Yen-Chywan Liaw
IMB, Academia Sinica, Taiwan

Actions #1

Updated by Amber Herold about 13 years ago

Hi Yen-Chywan!
In the centosAutoInstallation.py line 573. It uses wget -P/tmp/images to indicate the location of all the images should be download to. Therefore it does not matter what directory user lunches the centoAutoInstallation.py.
Could you tell me what version of the CentOS are you running on? and if you can, could you send me the log file which created during the autoInstallation.

Thanks.

Eric

Actions #2

Updated by Eric Hou about 13 years ago

  • Status changed from Assigned to Won't Fix or Won't Do

The problem was course on the version of his CentOS.

Actions

Also available in: Atom PDF