Ticket #220 (closed defect: fixed)

Opened 15 months ago

Last modified 14 months ago

cryptonas ubuntu 9.04 did not start

Reported by: smokestar@… Owned by: lars
Priority: normal Milestone: cryptonas-server 0.4.0
Component: debian-package Version: cryptobox-server 0.3.4
Severity: normal Keywords:
Cc: smokestar@…

Description

I would build a mini-itx nas server with encryption. After installed a UbuntuServer? 9.04 i added deb http://systemausfall.org/toolforge/debian unstable main to /etc/apt/sources.list and installed it with apt-get install cryptobox-server.

Now, when start the server with /etc/init.d/cryptobox-server start it not start:

nasuser@NAS:/$ /etc/init.d/cryptobox-server start /etc/init.d/cryptobox-server start

  • Starting CryptoBox Daemon (webinterface) Could not import clearsilver module. Try 'apt-get install python-clearsilver'.Traceback (most recent call last): File "/usr/sbin/CryptoBoxWebserver", line 34, in <module>

import cryptobox.web.sites

File "/usr/lib/python2.6/dist-packages/cryptobox/web/sites.py", line 39, in <module>

raise ImportError?, _ERRMSG

ImportError?: Could not import clearsilver module. Try 'apt-get install python-clearsilver'.

[fail]

apt-get remove python-clearsilver and apt-get install python clearsilver doesnt help. I hope you can help me.

Attachments

Change History

follow-up: ↓ 2   Changed 14 months ago by Frisco

Smokestar, I'm sorry that you haven't gotten a substantive answer to your question. I'm a relatively new developer to this project, and I haven't had a chance to try out the releases packaged for Ubuntu. Are you running a .deb file specific to your version of Ubuntu? I expect there are some differences in the way Ubuntu does things compared with Debian, and the CryptoNAS .deb package may not be forward-compatible with newer versions of Ubuntu.

If you're still working on this I'll try to help anyway.

in reply to: ↑ 1   Changed 14 months ago by smokestar@…

I installed cryptonas with: 1. Add the following to your "/etc/apt/sources.list": deb http://systemausfall.org/toolforge/debian unstable main

2. Run: apt-get update && apt-get install cryptobox-server

When i installd with: wget http://snapshots.cryptonas.org/pub/cryptobox-server_0.3.4.5-1_i386.deb

sudo dpkg -i cryptobox-server_0.3.4.5-1_i386.de

the error is the same.

i also tried to install with the svn repository: svn checkout https://svn.systemausfall.org/svn/cryptobox/trunk

sudo python setup.py install here i get this error:

Traceback (most recent call last):
  File "setup.py", line 136, in <module>
    get_language_files(os.path.join('share', 'locale')),
  File "setup.py", line 98, in get_language_files
    if compile_po_file(po_file):
  File "setup.py", line 111, in compile_po_file
    return subprocess.call( [ "msgfmt", "--use-fuzzy", "-o", po_file[:-3] + ".mo", po_file ] ) == 0
  File "/usr/lib/python2.6/subprocess.py", line 444, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

i cannot switch to debian, because there is a bug with my networkchip (via_velocity) that produces a kernel-panic on my hardware (via SN).

sorry for my bad english, i'am german.

  Changed 14 months ago by lars

Hi,

regarding the clearsilver problem: could you send us the output of:

dpkg -L python-clearsilver

This will list the installed files of the python-clearsilver package.

and additionally:

python -c "import neo_cgi, neo_util, neo_c"

This should silently return without an error, if the python-clearsilver package is working properly.

I am not running ubuntu, so I can't check, if the python binding for clearsilver is working in ubuntu 9.04. But I guess, it should ...

regarding the source compile: you need to install the package "gettext". It is necessary for the interface translations.

I hope, this helps ...

  Changed 14 months ago by Frisco

Smokestar,
The Python traceback in your 6/02/09 message is the classic symptom of needing to install gettext. The msgfmt binary is included in gettext.

  Changed 14 months ago by smokestar@…

@Frisco Thanks for your anser, when i installed gettext, the source install run. But when start the server i get the same error as installed from deb.

@lars output of dpkg -L python-clearsilver:

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-clearsilver
/usr/share/doc/python-clearsilver/README
/usr/share/doc/python-clearsilver/copyright
/usr/share/doc/python-clearsilver/changelog.Debian.gz
/usr/lib
/usr/lib/python2.4
/usr/lib/python2.4/site-packages
/usr/lib/python2.4/site-packages/neo_cgi.so
/usr/lib/python2.5
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/neo_cgi.so

output of python -c "import neo_cgi, neo_util, neo_c":

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named neo_cgi

  Changed 14 months ago by Frisco

It looks like python in Jaunty points to Python 2.6, while python-clearsilver is set up for use with Python 2.4 and Python 2.5. CryptoNAS, meanwhile, is getting setup in the default Python library tree for this system, because it doesn't know any better, and knows it depends on something called "Python". I don't know a lot about this aspect of Python/dpkg, but as an educated guess, can you find some way of telling the CryptoNAS source that it is "owned" by Python 2.4 (/usr/lib/python2.4/...)? For example, in setup.py:

31 	## define the data destination directory (below the python directory - for debian this gets overridden the rules file)[[BR]]
32 	pydir = distutils.sysconfig.get_python_lib()

Also see http://packages.ubuntu.com/jaunty/python.

  Changed 14 months ago by lars

  • milestone set to cryptonas-server 0.4.0

  Changed 14 months ago by lars

  • cc smokestar@… added
  • status changed from new to closed
  • resolution set to fixed

Hi,

Ubuntu Jaunty uses python2.6 as the default python version. Sadly the python-clearsilver package for ubuntu contains only files for python2.4 and python2.5.

I reported the bug here: https://bugs.launchpad.net/ubuntu/+source/clearsilver/+bug/386970

As a workaround, you can do the following: 1) install python2.5:

aptitude install python2.5

2) change the python version, that the cryptobox uses. Just edit /etc/init.d/cryptobox-server and change the PYTHON_EXEC setting from /usr/bin/python to /usr/bin/python2.4.

I hope, the bug will get fixed by the ubuntu people soon ...

Lars

  Changed 14 months ago by lars

sorry for the type: put /usr/bin/python2.5 in the init script.

  Changed 14 months ago by lars

the issue will be solved by some init-script magic in cryptonas-server v0.4

see [1179]

Add/Change #220 (cryptonas ubuntu 9.04 did not start)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.