[IntelMQ-users] Installation problems intelmq and manager

Harbich, Christian Christian.Harbich at gisa.de
Thu Mar 24 17:05:51 CET 2022


Hi Bernhard,

thanks for your reply! 

I found out the I dont have installed the wsgi module for apache2. After installing libapache2-mod-wsgi I now get a 500 back from the curl and the following lines appear in the error log of apache

[Thu Mar 24 16:04:46.595662 2022] [wsgi:info] [pid 6604] [client 127.0.0.1:35488] mod_wsgi (pid=6604, process='', application=''): Loading WSGI script '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'.
[Thu Mar 24 16:04:46.596093 2022] [wsgi:error] [pid 6604] [client 127.0.0.1:35488] mod_wsgi (pid=6604): Exception occurred processing WSGI script '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'.
[Thu Mar 24 16:04:46.596121 2022] [wsgi:error] [pid 6604] [client 127.0.0.1:35488] Traceback (most recent call last):
[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. 

Btw it was not mentioned in the docu that the apache needs the wsgi module. Maybe this could be added in the prerequirement section or I'm the only one not knowing that this needs to be installed 😊.

Grüße
Christian

Tel.: 7274

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

Hi Christian,

Am Donnerstag, 24. März 2022, 11:34:01 CET schrieb Harbich, Christian:
> 127.0.0.1:43270] AH00128: File does not exist:
> /var/www/html/intelmq/v1/api/login/

> I also couldn't find anything like v1/api/ on the whole server and I 
> think thats the main problem here?!

The patch "v1/api/login" is virutal, so it does not reside on the file system, but instead is defined in the wsgi application (in the files I've outlined in my first answer.)

> My intelmq-api.wsgi looks like the one on github:
> """ WSGI file for intelmq-api

But this is not called, (assuming from the error message) so the problem is likely to be one step earlier in the Apache configuration.

Somehow the Apache wsgi configuration seems not to be active on that port or domain that you are calling. Maybe you have a colleague with some Apache experience that can help you to track this down faster.

> If this is the file you are looking at 
> https://github.com/certtools/intelmq-api/blob/develop/contrib/api-apac
> he.conf

^ something like this should be in the right place, machting your machine and being activated. General Apache docs for your version may help to find out what this all should do.

Regards
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/20220324/f7824616/attachment.bin>


More information about the IntelMQ-users mailing list