Project

General

Profile

Actions

Bug #2147

closed

centos autoinstall scripts in 2.2

Added by Jian Shi about 12 years ago. Updated almost 7 years ago.

Status:
Won't Fix or Won't Do
Priority:
Normal
Assignee:
Carl Negro
Category:
-
Start date:
11/19/2012
Due date:
% Done:

0%

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

Description

I have a new computer with freshly installed CentOS. I try to use the auto install tool, centosautoinsallation.py, downloaded from branches/myami-2.2-redux/install and run into following errors.

1) config/ directory is missing in myami2.2. It was there until 2.1 though. It cause problem as following. I manually create the directory and file to allow it continue.

IOError: [Errno 2] No such file or directory: '/usr/lib/python2.6/site-packages/leginon/config/default.cfg'

2) One syntax error in between appion installation and the following. But the installation continues without apparent effect.

Writing /usr/lib/python2.6/site-packages/Appion-trunk_r17119-py2.6.egg-info

SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/appionlib/apProTomo.py', 156, 2, "\tf.write('\\n')\n"))

python -c "import leginon; print leginon.__path__0"

3) Torque does not find the default server for several times, but TORQUE Mom starts anyway. And the installation continues without apparent effect.

Cannot connect to default server host 'localhost' - check pbs_server daemon.
qmgr: cannot connect to server (errno=111) Connection refused
/sbin/service pbs_mom start

Please wait......(This may take a few minutes.)

Starting TORQUE Mom: [ OK ]

4) seems fs-0.4.0 is not installed right after unpacking. The unpacked directory is fs-0.4.0 not pyfilesystem-0.4.0 instead. I need to change the line in the scripts to make it work and continue.

fs-0.4.0/AUTHORS
fs-0.4.0/PKG-INFO
fs-0.4.0/setup.py

Traceback (most recent call last):
File "centosAutoInstallation.py", line 1119, in <module>
a.run()
File "centosAutoInstallation.py", line 1091, in run
result = self.setupWebServer()
File "centosAutoInstallation.py", line 279, in setupWebServer
self.installReduxServer()
File "centosAutoInstallation.py", line 854, in installReduxServer
self.installPythonPackage(p['targzFileName'], p['fileLocation'], p['unpackDirName'])
File "centosAutoInstallation.py", line 217, in installPythonPackage
os.chdir(unpackDirName)
OSError: [Errno 2] No such file or directory: 'pyfilesystem-0.4.0'

5) In the end, the installation seems complete, but the setup seems not.

========================
Installation Complete.
Appion will launch in your web browser momentarily.
You may launch Leginon with the following command: start-leginon.py ========================
[root@LeginonCBIS ~]# failed to create drawable
Warning: You have not configured Images path in leginon.cfg! Using current directory.
Traceback (most recent call last):
File "/usr/bin/start-leginon.py", line 9, in <module>
from leginon import start
File "/usr/lib/python2.6/site-packages/leginon/start.py", line 13, in <module>
import leginon.gui.wx.Manager
File "/usr/lib/python2.6/site-packages/leginon/gui/wx/Manager.py", line 20, in <module>
from leginon import manager
File "/usr/lib/python2.6/site-packages/leginon/manager.py", line 19, in <module>
import launcher
File "/usr/lib/python2.6/site-packages/leginon/launcher.py", line 13, in <module>
import node
File "/usr/lib/python2.6/site-packages/leginon/node.py", line 26, in <module>
import correctorclient
File "/usr/lib/python2.6/site-packages/leginon/correctorclient.py", line 18, in <module>
import leginon.session
File "/usr/lib/python2.6/site-packages/leginon/session.py", line 14, in <module>
projectdata = leginon.project.ProjectData()
File "/usr/lib/python2.6/site-packages/leginon/project.py", line 36, in init
raise NotConnectedError(e)
leginon.project.NotConnectedError: (1049, "Unknown database 'projectdb'")

For Appion webpage, the browser shows

Forbidden
You don't have permission to access /myamiweb/setup/autoInstallSetup.php on this server.
Apache/2.2.15 (CentOS) Server at 127.0.0.1 Port 80

I made through eventually by changing few things here and there. But the installation script does not fulfil its job completely. I hope these can help you to improve the auto installation tool, which could be very useful to new and inexperienced users.

Actions

Also available in: Atom PDF