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@lists.cert.at Im Auftrag von Bernhard Reiter Gesendet: Donnerstag, 24. März 2022 13:13 An: intelmq-users@lists.cert.at Cc: Harbich, Christian Christian.Harbich@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