librelist archives

« back to archive

Newbie Issue 2

Newbie Issue 2

From:
Gianluca Brindisi
Date:
2010-10-10 @ 22:37
Me again :)
I am still deploying osb, I can run the logging server and everything is
installed correctly in the virtualenv.
Then I want to start lamson server, so:

# lamson start

and nothing is happening, so I check if it's really running by ps aux | grep
lamson but all I see is the logging server.
Also, forcing the server to stop

# lamson stop

I get this:

PID file ./run/smtp.pid doesn't exist, maybe Lamson isn't running?

I even tried to start lamson from root, but still nothing happened.
What can be wrong?

Thanks,
Gianluca

Re: Newbie Issue 2

From:
Gianluca Brindisi
Date:
2010-10-11 @ 12:45
Inspecting logs/lamson.err I noticed that I haven't installed sqlalchemy and
this was part of the problem.
But now I still get errors, this time cat lamson.err is:

Traceback (most recent call last):
  File "/home/gianluca/deploy/LAMSON/bin/lamson", line 5, in <module>
    pkg_resources.run_script('lamson==1.0', 'lamson')
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
line 489, in run_script
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
line 1207, in run_script
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/EGG-INFO/scripts/lamson",
line 6, in <module>
    args.parse_and_run_command(sys.argv[1:], commands,
default_command="help")
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/args.py",
line 304, in parse_and_run_command
    command_module(mod, command, options)
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/args.py",
line 230, in command_module
    return function(**options)
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/commands.py",
line 121, in start_command
    utils.start_server(pid, FORCE, chroot, chdir, uid, gid, umask, loader)
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/utils.py",
line 104, in start_server
    settings = settings_loader()
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/commands.py",
line 120, in <lambda>
    loader = lambda: utils.import_settings(True, from_dir=os.getcwd(),
boot_module=boot)
  File

"/home/gianluca/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0-py2.6.egg/lamson/utils.py",
line 25, in import_settings
    __import__(boot_module, globals(), locals())
  File
"/home/gianluca/deploy/source/lamson-0.9.3/examples/osb/config/boot.py",
line 4, in <module>
    from lamson.utils import configure_database
ImportError: cannot import name configure_database

Any idea?

Thanks,
Gianluca

On Mon, Oct 11, 2010 at 12:37 AM, Gianluca Brindisi <g@brindi.si> wrote:

> Me again :)
> I am still deploying osb, I can run the logging server and everything is
> installed correctly in the virtualenv.
> Then I want to start lamson server, so:
>
> # lamson start
>
> and nothing is happening, so I check if it's really running by ps aux |
> grep lamson but all I see is the logging server.
> Also, forcing the server to stop
>
> # lamson stop
>
> I get this:
>
> PID file ./run/smtp.pid doesn't exist, maybe Lamson isn't running?
>
> I even tried to start lamson from root, but still nothing happened.
> What can be wrong?
>
> Thanks,
> Gianluca
>
>
>