[IntelMQ-users] Installation problems intelmq and manager

Harbich, Christian Christian.Harbich at gisa.de
Fri Mar 25 08:20:17 CET 2022


Good Morning,

this ist he result you asked for:

root at server:~# dpkg -L intelmq-api
/.
/etc
/etc/apache2
/etc/apache2/conf-available
/etc/intelmq
/etc/intelmq/api-apache.conf
/etc/intelmq/api-config.json
/etc/intelmq/api-sudoers.conf
/etc/intelmq/manager
/etc/intelmq/manager/positions.conf
/etc/sudoers.d
/etc/sudoers.d/01_intelmq-api
/usr
/usr/bin
/usr/bin/intelmq-api-adduser
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/intelmq_api
/usr/lib/python3/dist-packages/intelmq_api/__init__.py
/usr/lib/python3/dist-packages/intelmq_api/api.py
/usr/lib/python3/dist-packages/intelmq_api/config.py
/usr/lib/python3/dist-packages/intelmq_api/files.py
/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi
/usr/lib/python3/dist-packages/intelmq_api/runctl.py
/usr/lib/python3/dist-packages/intelmq_api/serve.py
/usr/lib/python3/dist-packages/intelmq_api/session.py
/usr/lib/python3/dist-packages/intelmq_api/util.py
/usr/lib/python3/dist-packages/intelmq_api/version.py
/usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info
/usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/dependency_links.txt
/usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/requires.txt
/usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/top_level.txt
/usr/share
/usr/share/dbconfig-common
/usr/share/dbconfig-common/data
/usr/share/dbconfig-common/data/intelmq-api
/usr/share/dbconfig-common/data/intelmq-api/install
/usr/share/dbconfig-common/data/intelmq-api/install/sqlite3
/usr/share/doc
/usr/share/doc/intelmq-api
/usr/share/doc/intelmq-api/changelog.Debian.gz
/usr/share/doc/intelmq-api/copyright
/etc/apache2/conf-available/intelmq-api.conf

The file /usr/lib/python3/dist-packages/intelmq_api/serve.py is listed but the error message said "No module named intelmq_api.serve" 

Cheers Chris

-----Ursprüngliche Nachricht-----
Von: IntelMQ-users <intelmq-users-bounces at lists.cert.at> Im Auftrag von Bernhard Reiter
Gesendet: Donnerstag, 24. März 2022 19:11
An: intelmq-users at lists.cert.at
Betreff: Re: [IntelMQ-users] Installation problems intelmq and manager

Hi Christian,

Am Donnerstag, 24. März 2022, 17:05:51 CET schrieb Harbich, Christian:
> Thu Mar 24 16:04:46.596148 2022] [wsgi:error] [pid 6604] [client
> 127.0.0.1:35488]   File
> "/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi", line 
> 11, in application [Thu Mar 24 16:04:46.596224 2022] [wsgi:error] [pid 6604]
> [client 127.0.0.1:35488]     from intelmq_api.serve import __hug_wsgi__
> [Thu Mar 24 16:04:46.596253 2022] [wsgi:error] [pid 6604] [client 
> 127.0.0.1:35488] ImportError: No module named intelmq_api.serve
> 
> I tried to find out how I can install the intelmq_api.serve module but 
> I didn't find out how.

it is part of https://github.com/certtools/intelmq-api/tree/develop/intelmq_api
(in particular it is file https://github.com/certtools/intelmq-api/blob/develop/intelmq_api/serve.py)

So the /usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi
has to find this python module, when it is called from Apache (and the Apache environment).
There are many methods how to potentially achieve this.
Remembered correctly, you have used the native packages.
What does
  dpkg -L intelmq-api
say?

> Btw it was not mentioned in the docu that the apache needs the wsgi module.
> Maybe this could be added in the prerequirement section

Ideally, if you have used the packages, it could have been a dependency.
Otherwise it would be cool if you'd create a pull request with an improvement of the documentation where you would have expected the hint.

Thanks!
Bernhard


-- 
www.intevation.de/~bernhard   +49 541 33 508 3-3
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998 Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
Aufsichtsratsvorsitzender: Norbert Rotter
Geschäftsführung: Heino Feige, Michael Krüger
Sitz der Gesellschaft: Halle/Saale
Registergericht: Amtsgericht Stendal | Handelsregister-Nr. HRB 208414
UST-ID-Nr. DE 158253683

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Empfänger sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail oder des Inhalts dieser Mail sind nicht gestattet. Diese Kommunikation per E-Mail ist nicht gegen den Zugriff durch Dritte geschützt. Die GISA GmbH haftet ausdrücklich nicht für den Inhalt und die Vollständigkeit von E-Mails und den gegebenenfalls daraus entstehenden Schaden. Sollte trotz der bestehenden Viren-Schutzprogramme durch diese E-Mail ein Virus in Ihr System gelangen, so haftet die GISA GmbH - soweit gesetzlich zulässig - nicht für die hieraus entstehenden Schäden.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 13239 bytes
Desc: not available
URL: <http://lists.cert.at/pipermail/intelmq-users/attachments/20220325/78314772/attachment.bin>


More information about the IntelMQ-users mailing list