Hi again,
Hints would be welcome: I've got intelmq-manager installed, the front page opens ok but when I try to login, the developer view of the browser reports the following error after I specify the account and the password:
DevTools failed to load source map: Could not load content for https://FQDN_HERE/intelmq_manager/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Checking what's in /usr/share/intelmq_manager/html/plugins/bootstrap/ reveals there is no file there called bootstrap.min.css.map. The files that do exist in that directory are:
bootstrap.css bootstrap.js bootstrap.min.css bootstrap.min.js
My setup running on a Ubuntu 22.04 LTS / Python 3.10.12 is now:
ii intelmq 3.2.2-1 all Solution for IT security teams for collecting ii intelmq-api 3.1.0~rc2-1 all FastAPI-based API for the intelmq project ii intelmq-manager 3.2.0-1 all Graphical interface to manage configurations
As a side note, the intelmq-api package was upgraded from intelmq-api 3.1.0-rc1 in case this could be the culprit.
Br and have a nice weekend, Mika
And a few more observations:
Trying to access the Check tab from intelmq-manager's front page (without having logged in, that is), results in a call to
https://FQDN_HERE/intelmq/v1/api/check
Accessing this from the browser directly results in 500 internal server error. Looking at what systemctl status intelmq-api says I see a line indicating gunicorn is not happy:
Sep 15 16:06:55 HOSTNAME gunicorn[22565]: TypeError: '<' not supported between instances of 'NoneType' and 'int'
So, it looks to me like a problem related to intelmq-api or accessing it from intelmq-manager.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Friday, 15 September, 2023 15:57:49 Subject: [IntelMQ-dev] intelmq-manager problem at login
Hi again,
Hints would be welcome: I've got intelmq-manager installed, the front page opens ok but when I try to login, the developer view of the browser reports the following error after I specify the account and the password:
DevTools failed to load source map: Could not load content for https://FQDN_HERE/intelmq_manager/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Checking what's in /usr/share/intelmq_manager/html/plugins/bootstrap/ reveals there is no file there called bootstrap.min.css.map. The files that do exist in that directory are:
bootstrap.css bootstrap.js bootstrap.min.css bootstrap.min.js
My setup running on a Ubuntu 22.04 LTS / Python 3.10.12 is now:
ii intelmq 3.2.2-1 all Solution for IT security teams for collecting ii intelmq-api 3.1.0~rc2-1 all FastAPI-based API for the intelmq project ii intelmq-manager 3.2.0-1 all Graphical interface to manage configurations
As a side note, the intelmq-api package was upgraded from intelmq-api 3.1.0-rc1 in case this could be the culprit.
Br and have a nice weekend, Mika _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Hi, Mika - this is a known problem related to the FastAPI packages in the Ubuntu 22.04 repositories. This is why the stable version of intelmq-api package for Ubuntu 22.04 is still 3.0.1. I recommend downgrading to the latest stable version instead of rc (there is no functional changes in API between them).
We work on bringing newer version for Ubuntu as well, but it takes time to fix the FastAPI in their repositories. If you want to work further with the newer API, I can send you the patched version of the FastAPI package (bug: https://bugs.launchpad.net/ubuntu/+source/fastapi/+bug/1970557).
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/15/23 15:32, Mika Silander wrote:
And a few more observations:
Trying to access the Check tab from intelmq-manager's front page (without having logged in, that is), results in a call to
https://FQDN_HERE/intelmq/v1/api/check
Accessing this from the browser directly results in 500 internal server error. Looking at what systemctl status intelmq-api says I see a line indicating gunicorn is not happy:
Sep 15 16:06:55 HOSTNAME gunicorn[22565]: TypeError: '<' not supported between instances of 'NoneType' and 'int'
So, it looks to me like a problem related to intelmq-api or accessing it from intelmq-manager.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Friday, 15 September, 2023 15:57:49 Subject: [IntelMQ-dev] intelmq-manager problem at login
Hi again,
Hints would be welcome: I've got intelmq-manager installed, the front page opens ok but when I try to login, the developer view of the browser reports the following error after I specify the account and the password:
DevTools failed to load source map: Could not load content for https://FQDN_HERE/intelmq_manager/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Checking what's in /usr/share/intelmq_manager/html/plugins/bootstrap/ reveals there is no file there called bootstrap.min.css.map. The files that do exist in that directory are:
bootstrap.css bootstrap.js bootstrap.min.css bootstrap.min.js
My setup running on a Ubuntu 22.04 LTS / Python 3.10.12 is now:
ii intelmq 3.2.2-1 all Solution for IT security teams for collecting ii intelmq-api 3.1.0~rc2-1 all FastAPI-based API for the intelmq project ii intelmq-manager 3.2.0-1 all Graphical interface to manage configurations
As a side note, the intelmq-api package was upgraded from intelmq-api 3.1.0-rc1 in case this could be the culprit.
Br and have a nice weekend, Mika _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
And one missing note about the
https://FQDN_HERE/intelmq_manager/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
- this is totally alright; your developer tools tried to get the mapping between compressed 'bootstrap.min.css' and the full version of the code. This is useful only for developers, and is usually not provided in production. As we do not develop the bootstrap library, the map file was never used nor provided by us.
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/18/23 09:02, Kamil Mankowski via IntelMQ-dev wrote:
Hi, Mika - this is a known problem related to the FastAPI packages in the Ubuntu 22.04 repositories. This is why the stable version of intelmq-api package for Ubuntu 22.04 is still 3.0.1. I recommend downgrading to the latest stable version instead of rc (there is no functional changes in API between them).
We work on bringing newer version for Ubuntu as well, but it takes time to fix the FastAPI in their repositories. If you want to work further with the newer API, I can send you the patched version of the FastAPI package (bug: https://bugs.launchpad.net/ubuntu/+source/fastapi/+bug/1970557).
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/15/23 15:32, Mika Silander wrote:
And a few more observations:
Trying to access the Check tab from intelmq-manager's front page (without having logged in, that is), results in a call to
https://FQDN_HERE/intelmq/v1/api/check
Accessing this from the browser directly results in 500 internal server error. Looking at what systemctl status intelmq-api says I see a line indicating gunicorn is not happy:
Sep 15 16:06:55 HOSTNAME gunicorn[22565]: TypeError: '<' not supported between instances of 'NoneType' and 'int'
So, it looks to me like a problem related to intelmq-api or accessing it from intelmq-manager.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Friday, 15 September, 2023 15:57:49 Subject: [IntelMQ-dev] intelmq-manager problem at login
Hi again,
Hints would be welcome: I've got intelmq-manager installed, the front page opens ok but when I try to login, the developer view of the browser reports the following error after I specify the account and the password:
DevTools failed to load source map: Could not load content for https://FQDN_HERE/intelmq_manager/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Checking what's in /usr/share/intelmq_manager/html/plugins/bootstrap/ reveals there is no file there called bootstrap.min.css.map. The files that do exist in that directory are:
bootstrap.css bootstrap.js bootstrap.min.css bootstrap.min.js
My setup running on a Ubuntu 22.04 LTS / Python 3.10.12 is now:
ii intelmq 3.2.2-1 all Solution for IT security teams for collecting ii intelmq-api 3.1.0~rc2-1 all FastAPI-based API for the intelmq project ii intelmq-manager 3.2.0-1 all Graphical interface to manage configurations
As a side note, the intelmq-api package was upgraded from intelmq-api 3.1.0-rc1 in case this could be the culprit.
Br and have a nice weekend, Mika _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Hi Kamil,
Ok, I'll try the downgrade, the authoritative source of packages is still
https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0...
right? I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ... whatever I do, the bugs will always find me. Anyway, thanks for shedding light on this and let's keep on scratching ;-)
Cheers, Mika
----- Original Message ----- From: "Kamil Mankowski" mankowski@cert.at To: "Mika Silander" mika.silander@csc.fi, "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 10:02:20 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi, Mika - this is a known problem related to the FastAPI packages in the Ubuntu 22.04 repositories. This is why the stable version of intelmq-api package for Ubuntu 22.04 is still 3.0.1. I recommend downgrading to the latest stable version instead of rc (there is no functional changes in API between them).
We work on bringing newer version for Ubuntu as well, but it takes time to fix the FastAPI in their repositories. If you want to work further with the newer API, I can send you the patched version of the FastAPI package (bug: https://bugs.launchpad.net/ubuntu/+source/fastapi/+bug/1970557).
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/15/23 15:32, Mika Silander wrote:
And a few more observations:
Trying to access the Check tab from intelmq-manager's front page (without having logged in, that is), results in a call to
https://FQDN_HERE/intelmq/v1/api/check
Accessing this from the browser directly results in 500 internal server error. Looking at what systemctl status intelmq-api says I see a line indicating gunicorn is not happy:
Sep 15 16:06:55 HOSTNAME gunicorn[22565]: TypeError: '<' not supported between instances of 'NoneType' and 'int'
So, it looks to me like a problem related to intelmq-api or accessing it from intelmq-manager.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Friday, 15 September, 2023 15:57:49 Subject: [IntelMQ-dev] intelmq-manager problem at login
Hi again,
Hints would be welcome: I've got intelmq-manager installed, the front page opens ok but when I try to login, the developer view of the browser reports the following error after I specify the account and the password:
DevTools failed to load source map: Could not load content for https://FQDN_HERE/intelmq_manager/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Checking what's in /usr/share/intelmq_manager/html/plugins/bootstrap/ reveals there is no file there called bootstrap.min.css.map. The files that do exist in that directory are:
bootstrap.css bootstrap.js bootstrap.min.css bootstrap.min.js
My setup running on a Ubuntu 22.04 LTS / Python 3.10.12 is now:
ii intelmq 3.2.2-1 all Solution for IT security teams for collecting ii intelmq-api 3.1.0~rc2-1 all FastAPI-based API for the intelmq project ii intelmq-manager 3.2.0-1 all Graphical interface to manage configurations
As a side note, the intelmq-api package was upgraded from intelmq-api 3.1.0-rc1 in case this could be the culprit.
Br and have a nice weekend, Mika _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Yes, this is the right repository :)
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/18/23 09:39, Mika Silander wrote:
Hi Kamil,
Ok, I'll try the downgrade, the authoritative source of packages is still
https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0...
right? I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ... whatever I do, the bugs will always find me. Anyway, thanks for shedding light on this and let's keep on scratching ;-)
Cheers, Mika
----- Original Message ----- From: "Kamil Mankowski" mankowski@cert.at To: "Mika Silander" mika.silander@csc.fi, "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 10:02:20 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi, Mika - this is a known problem related to the FastAPI packages in the Ubuntu 22.04 repositories. This is why the stable version of intelmq-api package for Ubuntu 22.04 is still 3.0.1. I recommend downgrading to the latest stable version instead of rc (there is no functional changes in API between them).
We work on bringing newer version for Ubuntu as well, but it takes time to fix the FastAPI in their repositories. If you want to work further with the newer API, I can send you the patched version of the FastAPI package (bug: https://bugs.launchpad.net/ubuntu/+source/fastapi/+bug/1970557).
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/15/23 15:32, Mika Silander wrote:
And a few more observations:
Trying to access the Check tab from intelmq-manager's front page (without having logged in, that is), results in a call to
https://FQDN_HERE/intelmq/v1/api/check
Accessing this from the browser directly results in 500 internal server error. Looking at what systemctl status intelmq-api says I see a line indicating gunicorn is not happy:
Sep 15 16:06:55 HOSTNAME gunicorn[22565]: TypeError: '<' not supported between instances of 'NoneType' and 'int'
So, it looks to me like a problem related to intelmq-api or accessing it from intelmq-manager.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Friday, 15 September, 2023 15:57:49 Subject: [IntelMQ-dev] intelmq-manager problem at login
Hi again,
Hints would be welcome: I've got intelmq-manager installed, the front page opens ok but when I try to login, the developer view of the browser reports the following error after I specify the account and the password:
DevTools failed to load source map: Could not load content for https://FQDN_HERE/intelmq_manager/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Checking what's in /usr/share/intelmq_manager/html/plugins/bootstrap/ reveals there is no file there called bootstrap.min.css.map. The files that do exist in that directory are:
bootstrap.css bootstrap.js bootstrap.min.css bootstrap.min.js
My setup running on a Ubuntu 22.04 LTS / Python 3.10.12 is now:
ii intelmq 3.2.2-1 all Solution for IT security teams for collecting ii intelmq-api 3.1.0~rc2-1 all FastAPI-based API for the intelmq project ii intelmq-manager 3.2.0-1 all Graphical interface to manage configurations
As a side note, the intelmq-api package was upgraded from intelmq-api 3.1.0-rc1 in case this could be the culprit.
Br and have a nice weekend, Mika _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
--- Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
Hi Sebastian,
Thanks for the reminder. Ideally, what I try to put together is intelmq-manager and then intelmq with a few bots of our own. Intelmq-manager suits us fine, no modifications needed, so it can be the stable package version. However, we need to extend the intelmq package with a few bots of our own, so we build the install package ourselves. And during these builds I've noticed that bugs get earlier fixed in the development branch, thus, it's been the basis for our tailoured intelmq build as well.
So, I'll try to combine the above two to a production setup. Please, shout if this is a no-no combination.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
--- Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
_______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Nice, we work on making extending with custom bots easier (https://github.com/certtools/intelmq/pull/2405 is one try, but I've recently come into one another idea, most probably an easier one).
But basically, if you manually fill the 'module' field with a correct entry point, IntelMQ should be able to catch your bot installed totally separately. The only one thing is that IntelMQ Manager would not show your bot in the list to choose from, but instances, workflow etc. should work without any issue.
So, on your place, I'd start with own package only with additional bots, depending on IntelMQ, and just manually filling fields (e.g., using any other bot to create a bot instance in the Manager).
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/18/23 12:53, Mika Silander wrote:
Hi Sebastian,
Thanks for the reminder. Ideally, what I try to put together is intelmq-manager and then intelmq with a few bots of our own. Intelmq-manager suits us fine, no modifications needed, so it can be the stable package version. However, we need to extend the intelmq package with a few bots of our own, so we build the install package ourselves. And during these builds I've noticed that bugs get earlier fixed in the development branch, thus, it's been the basis for our tailoured intelmq build as well.
So, I'll try to combine the above two to a production setup. Please, shout if this is a no-no combination.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Hi again,
Related to the below, I went and tried to install intelmq-manager 3.2.0-1 and intelmq-api 3.0.1-1 from the stable repository https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0... and I'm afraid the stable also contains some problems that have not been ironed out. Maybe this was the reason why I jumped over to unstable, can't remember. Still, fyi when setting apache2's LogLevel to debug and attempting to open any of intelmq-manager's tabs behind password authentication, /var/log/apache2/intelmq-error.log starts to fill with errors related to https://fqdn/intelmq/v1/api/_function_ calls (500 internal server error). The reason seems to be
[Tue Sep 19 12:27:08.534474 2023] [wsgi:error] [pid 189852:tid 139757103318592] [client client_ip_here.port] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/about.html
I may be wrong but to me it looks like intelmq-manager has not invoked any function related to intelmq at this stage yet, so I believe my unstable version of intelmq installed on the same host is not involved in this. Anyway, I'll continue debugging.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
--- Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
_______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Hey, were you able to provide a little longer error log? Or there is no stack trace in the log file? And please take a look at your API config in most probably /etc/intelmq/api-config.json - does it have the line (possibly with adjustments):
"allow_origins": ["*"]
once, and only once?
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/19/23 13:29, Mika Silander wrote:
Hi again,
Related to the below, I went and tried to install intelmq-manager 3.2.0-1 and intelmq-api 3.0.1-1 from the stable repository https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0... and I'm afraid the stable also contains some problems that have not been ironed out. Maybe this was the reason why I jumped over to unstable, can't remember. Still, fyi when setting apache2's LogLevel to debug and attempting to open any of intelmq-manager's tabs behind password authentication, /var/log/apache2/intelmq-error.log starts to fill with errors related to https://fqdn/intelmq/v1/api/_function_ calls (500 internal server error). The reason seems to be
[Tue Sep 19 12:27:08.534474 2023] [wsgi:error] [pid 189852:tid 139757103318592] [client client_ip_here.port] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/about.html
I may be wrong but to me it looks like intelmq-manager has not invoked any function related to intelmq at this stage yet, so I believe my unstable version of intelmq installed on the same host is not involved in this. Anyway, I'll continue debugging.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Hi Kamil,
Yes, the "allow_origins" is present only once within /etc/intelmq/api-config.json and contains the default value ["*"]. I've now built and installed intelmq-api 3.1.0-rc and the same problem shows up, the stack trace is the same:
[Tue Sep 19 15:31:39.825091 2023] [wsgi:info] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708, process='', application=''): Loading Python script file '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.314824 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Loading config from /etc/intelmq/api-config.json, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315153 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708): Exception occurred processing WSGI script '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315487 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Traceback (most recent call last):, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315519 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi", line 11, in application, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315532 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] from intelmq_api.serve import __hug_wsgi__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315544 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/serve.py", line 31, in <module>, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315552 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] api.http.add_middleware(hug.middleware.CORSMiddleware(api, allow_origins=api_config.allow_origins)), referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315563 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "falcon/middleware.py", line 39, in falcon.middleware.CORSMiddleware.__init__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315593 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/
It is also worth noting that I've made a few changes to configurations, e.g. my allowed_path setting in api-config.json is "/var/lib/intelmq/bots/". The odd thing is that I had this exact version (3.1.0-rc) of intelmq-api working ok some time ago.
Br, Mika
----- Original Message ----- From: "Kamil Mankowski" mankowski@cert.at To: "Mika Silander" mika.silander@csc.fi, "intelmq-dev" intelmq-dev@lists.cert.at Sent: Tuesday, 19 September, 2023 15:10:31 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hey, were you able to provide a little longer error log? Or there is no stack trace in the log file? And please take a look at your API config in most probably /etc/intelmq/api-config.json - does it have the line (possibly with adjustments):
"allow_origins": ["*"]
once, and only once?
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/19/23 13:29, Mika Silander wrote:
Hi again,
Related to the below, I went and tried to install intelmq-manager 3.2.0-1 and intelmq-api 3.0.1-1 from the stable repository https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0... and I'm afraid the stable also contains some problems that have not been ironed out. Maybe this was the reason why I jumped over to unstable, can't remember. Still, fyi when setting apache2's LogLevel to debug and attempting to open any of intelmq-manager's tabs behind password authentication, /var/log/apache2/intelmq-error.log starts to fill with errors related to https://fqdn/intelmq/v1/api/_function_ calls (500 internal server error). The reason seems to be
[Tue Sep 19 12:27:08.534474 2023] [wsgi:error] [pid 189852:tid 139757103318592] [client client_ip_here.port] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/about.html
I may be wrong but to me it looks like intelmq-manager has not invoked any function related to intelmq at this stage yet, so I believe my unstable version of intelmq installed on the same host is not involved in this. Anyway, I'll continue debugging.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
... my wild guess is that the falcon module's changed meanwhile as well, especially the __init__ method in file middleware.py.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Cc: "Kamil Mankowski" mankowski@cert.at Sent: Tuesday, 19 September, 2023 15:41:24 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Kamil,
Yes, the "allow_origins" is present only once within /etc/intelmq/api-config.json and contains the default value ["*"]. I've now built and installed intelmq-api 3.1.0-rc and the same problem shows up, the stack trace is the same:
[Tue Sep 19 15:31:39.825091 2023] [wsgi:info] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708, process='', application=''): Loading Python script file '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.314824 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Loading config from /etc/intelmq/api-config.json, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315153 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708): Exception occurred processing WSGI script '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315487 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Traceback (most recent call last):, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315519 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi", line 11, in application, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315532 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] from intelmq_api.serve import __hug_wsgi__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315544 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/serve.py", line 31, in <module>, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315552 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] api.http.add_middleware(hug.middleware.CORSMiddleware(api, allow_origins=api_config.allow_origins)), referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315563 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "falcon/middleware.py", line 39, in falcon.middleware.CORSMiddleware.__init__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315593 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/
It is also worth noting that I've made a few changes to configurations, e.g. my allowed_path setting in api-config.json is "/var/lib/intelmq/bots/". The odd thing is that I had this exact version (3.1.0-rc) of intelmq-api working ok some time ago.
Br, Mika
----- Original Message ----- From: "Kamil Mankowski" mankowski@cert.at To: "Mika Silander" mika.silander@csc.fi, "intelmq-dev" intelmq-dev@lists.cert.at Sent: Tuesday, 19 September, 2023 15:10:31 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hey, were you able to provide a little longer error log? Or there is no stack trace in the log file? And please take a look at your API config in most probably /etc/intelmq/api-config.json - does it have the line (possibly with adjustments):
"allow_origins": ["*"]
once, and only once?
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/19/23 13:29, Mika Silander wrote:
Hi again,
Related to the below, I went and tried to install intelmq-manager 3.2.0-1 and intelmq-api 3.0.1-1 from the stable repository https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0... and I'm afraid the stable also contains some problems that have not been ironed out. Maybe this was the reason why I jumped over to unstable, can't remember. Still, fyi when setting apache2's LogLevel to debug and attempting to open any of intelmq-manager's tabs behind password authentication, /var/log/apache2/intelmq-error.log starts to fill with errors related to https://fqdn/intelmq/v1/api/_function_ calls (500 internal server error). The reason seems to be
[Tue Sep 19 12:27:08.534474 2023] [wsgi:error] [pid 189852:tid 139757103318592] [client client_ip_here.port] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/about.html
I may be wrong but to me it looks like intelmq-manager has not invoked any function related to intelmq at this stage yet, so I believe my unstable version of intelmq installed on the same host is not involved in this. Anyway, I'll continue debugging.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
A few of our dependencies are in the deb repository from IntelMQ. Could you please ensure, that you have the same versions as in this repository?
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/19/23 14:57, Mika Silander wrote:
... my wild guess is that the falcon module's changed meanwhile as well, especially the __init__ method in file middleware.py.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Cc: "Kamil Mankowski" mankowski@cert.at Sent: Tuesday, 19 September, 2023 15:41:24 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Kamil,
Yes, the "allow_origins" is present only once within /etc/intelmq/api-config.json and contains the default value ["*"]. I've now built and installed intelmq-api 3.1.0-rc and the same problem shows up, the stack trace is the same:
[Tue Sep 19 15:31:39.825091 2023] [wsgi:info] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708, process='', application=''): Loading Python script file '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.314824 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Loading config from /etc/intelmq/api-config.json, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315153 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708): Exception occurred processing WSGI script '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315487 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Traceback (most recent call last):, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315519 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi", line 11, in application, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315532 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] from intelmq_api.serve import __hug_wsgi__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315544 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/serve.py", line 31, in <module>, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315552 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] api.http.add_middleware(hug.middleware.CORSMiddleware(api, allow_origins=api_config.allow_origins)), referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315563 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "falcon/middleware.py", line 39, in falcon.middleware.CORSMiddleware.__init__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315593 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/
It is also worth noting that I've made a few changes to configurations, e.g. my allowed_path setting in api-config.json is "/var/lib/intelmq/bots/". The odd thing is that I had this exact version (3.1.0-rc) of intelmq-api working ok some time ago.
Br, Mika
----- Original Message ----- From: "Kamil Mankowski" mankowski@cert.at To: "Mika Silander" mika.silander@csc.fi, "intelmq-dev" intelmq-dev@lists.cert.at Sent: Tuesday, 19 September, 2023 15:10:31 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hey, were you able to provide a little longer error log? Or there is no stack trace in the log file? And please take a look at your API config in most probably /etc/intelmq/api-config.json - does it have the line (possibly with adjustments):
"allow_origins": ["*"]
once, and only once?
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/19/23 13:29, Mika Silander wrote:
Hi again,
Related to the below, I went and tried to install intelmq-manager 3.2.0-1 and intelmq-api 3.0.1-1 from the stable repository https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0... and I'm afraid the stable also contains some problems that have not been ironed out. Maybe this was the reason why I jumped over to unstable, can't remember. Still, fyi when setting apache2's LogLevel to debug and attempting to open any of intelmq-manager's tabs behind password authentication, /var/log/apache2/intelmq-error.log starts to fill with errors related to https://fqdn/intelmq/v1/api/_function_ calls (500 internal server error). The reason seems to be
[Tue Sep 19 12:27:08.534474 2023] [wsgi:error] [pid 189852:tid 139757103318592] [client client_ip_here.port] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/about.html
I may be wrong but to me it looks like intelmq-manager has not invoked any function related to intelmq at this stage yet, so I believe my unstable version of intelmq installed on the same host is not involved in this. Anyway, I'll continue debugging.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
Hi Kamil,
Time to stop for today but I'll cross-check when the next opportunity arises. The rest of this week and the better half of the next I'm stuck with other things.
Br, Mika
----- Original Message ----- From: "Kamil Mankowski via IntelMQ-dev" intelmq-dev@lists.cert.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Tuesday, 19 September, 2023 16:13:39 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
A few of our dependencies are in the deb repository from IntelMQ. Could you please ensure, that you have the same versions as in this repository?
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/19/23 14:57, Mika Silander wrote:
... my wild guess is that the falcon module's changed meanwhile as well, especially the __init__ method in file middleware.py.
Br, Mika
----- Original Message ----- From: "Mika Silander" mika.silander@csc.fi To: "intelmq-dev" intelmq-dev@lists.cert.at Cc: "Kamil Mankowski" mankowski@cert.at Sent: Tuesday, 19 September, 2023 15:41:24 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Kamil,
Yes, the "allow_origins" is present only once within /etc/intelmq/api-config.json and contains the default value ["*"]. I've now built and installed intelmq-api 3.1.0-rc and the same problem shows up, the stack trace is the same:
[Tue Sep 19 15:31:39.825091 2023] [wsgi:info] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708, process='', application=''): Loading Python script file '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.314824 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Loading config from /etc/intelmq/api-config.json, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315153 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] mod_wsgi (pid=196708): Exception occurred processing WSGI script '/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi'., referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315487 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] Traceback (most recent call last):, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315519 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi", line 11, in application, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315532 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] from intelmq_api.serve import __hug_wsgi__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315544 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "/usr/lib/python3/dist-packages/intelmq_api/serve.py", line 31, in <module>, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315552 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] api.http.add_middleware(hug.middleware.CORSMiddleware(api, allow_origins=api_config.allow_origins)), referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315563 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] File "falcon/middleware.py", line 39, in falcon.middleware.CORSMiddleware.__init__, referer: https://fqdn/intelmq_manager/ [Tue Sep 19 15:31:40.315593 2023] [wsgi:error] [pid 196708:tid 139826913322560] [client client_ip_here:43286] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/
It is also worth noting that I've made a few changes to configurations, e.g. my allowed_path setting in api-config.json is "/var/lib/intelmq/bots/". The odd thing is that I had this exact version (3.1.0-rc) of intelmq-api working ok some time ago.
Br, Mika
----- Original Message ----- From: "Kamil Mankowski" mankowski@cert.at To: "Mika Silander" mika.silander@csc.fi, "intelmq-dev" intelmq-dev@lists.cert.at Sent: Tuesday, 19 September, 2023 15:10:31 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hey, were you able to provide a little longer error log? Or there is no stack trace in the log file? And please take a look at your API config in most probably /etc/intelmq/api-config.json - does it have the line (possibly with adjustments):
"allow_origins": ["*"]
once, and only once?
Best regards, Kamil Mankowski CERT.at GmbH www.cert.at
On 9/19/23 13:29, Mika Silander wrote:
Hi again,
Related to the below, I went and tried to install intelmq-manager 3.2.0-1 and intelmq-api 3.0.1-1 from the stable repository https://download.opensuse.org/repositories/home:/sebix:/intelmq/xUbuntu_22.0... and I'm afraid the stable also contains some problems that have not been ironed out. Maybe this was the reason why I jumped over to unstable, can't remember. Still, fyi when setting apache2's LogLevel to debug and attempting to open any of intelmq-manager's tabs behind password authentication, /var/log/apache2/intelmq-error.log starts to fill with errors related to https://fqdn/intelmq/v1/api/_function_ calls (500 internal server error). The reason seems to be
[Tue Sep 19 12:27:08.534474 2023] [wsgi:error] [pid 189852:tid 139757103318592] [client client_ip_here.port] TypeError: __init__() got multiple values for keyword argument 'allow_origins', referer: https://fqdn/intelmq_manager/about.html
I may be wrong but to me it looks like intelmq-manager has not invoked any function related to intelmq at this stage yet, so I believe my unstable version of intelmq installed on the same host is not involved in this. Anyway, I'll continue debugging.
Br, Mika
----- Original Message ----- From: "Sebix" sebix@sebix.at To: "intelmq-dev" intelmq-dev@lists.cert.at Sent: Monday, 18 September, 2023 13:22:30 Subject: Re: [IntelMQ-dev] intelmq-manager problem at login
Hi Mika,
On 9/18/23 09:39, Mika Silander wrote:
I vaguely remember I switched a good while ago to the unstable package repos due to some bug I found in the stable ones ...
Be careful with the unstable repository, they are not well maintained and may not only contain unstable version, but also also older versions than the stable repository, or packages incompatible with the stable repository when mixed
best regards Sebastian
Institute for Common Good Technology gemeinnütziger Kulturverein - nonprofit cultural society https://commongoodtechnology.org/ ZVR 1510673578
IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/ _______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/
_______________________________________________ IntelMQ-dev mailing list https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev https://intelmq.readthedocs.io/