-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 404 on Login request #47
Comments
Hey, could you say which version do you use and how you installed it? The lack of However, the API is a separated service you need to have running if you want to use API. The DEB package comes with it configured through Apache, so I assume you have either installed it manually or use the Docker setup. Could you clarify it? |
Hello, install manually. Every time I update the server to 22.04, the api stops working. and I do all the steps that are clarified in the doc. If you need more data, I am available. thank you |
Please show your current active webserver configuration then, as well as your logs and what steps you did for the installation of intelmq-api |
@lucasRivas19 Waiting for webserver config, I have a few additional tips: For API to work, you have to have a working API service. In newer versions API is served by Gunicorn using FastAPI, in older it was hug run directly by webserver. Please have a look at example service configuration for the current version:
If the problem is related to Ubuntu upgrade, please check logs of the API service - I have a few ideas, assuming you use the newest stable IntelMQ:
|
Good morning, @kamil-certat . thank you very much for the response, the matter was resolved. Once we set up the API, when I want to run a bot (any one) from the interface, it never runs and it doesn't return anything to me in the logs. Now, when I run it from the console it tells me that it cannot evaluate a type "None". Looking at other issues I saw that they add an if in the corresponding file and by doing that, it doesn't raise the bot either. Can you give me some help? |
This now looks more like a broken IntelMQ bit configuration file. Can you please run |
@sebix Thanks for the prompt response. Here is the output of the intelmqctl check (it already runs intelmqctl update-config). Reading configuration files. |
I guess this is the culprit:
The modules of the configured bots are not correct |
@sebix Good afternoon, I'm getting back to the problem. Could you help correct this: The configured bot modules are not correct? thank you very much. This arose after updating the operating system. It made me reinstall only the intelmq package. Maybe this has something to do with it? Was there a duplicate folder or something similar? |
It is very hard to assist as we have very little information about your setup. For example, @kamil-certat already asked you how you installed IntelMQ. We also have no idea what your configuration looks like. The error message means that the python module, which is the bot itself, cannot be found. The module of |
Good morning, sorry. I missed informing about the installation. install intelmq with pip. What other configuration do you need? |
@lucasRivas19 Please try the manual import as asked by Sebix. This may give us an information what is wrong. The module path you will find in the configuration in the IntelMQ Manager or in the runtime config file (
Some bots may require reinstalling additional dependencies, but the error should happen after importing. Based on issues from your screenshots, it looks like entry points for bot modules weren't installed correctly or are inaccessible from the IntelMQ. As I see, you have installed IntelMQ globally, so it's strange. Please try following commands and show us results: python3 -c "import intelmq.bots.experts.deduplicator.expert"
intelmq.bots.experts.deduplicator.expert -h
which intelmq.bots.experts.deduplicator.expert
head /usr/local/bin/intelmq.bots.experts.deduplicator.expert # (or any other path resulted from the previus command) Which system do you use? Ubuntu 22.04, based on the Python version? |
@sebix @kamil-certat Here I detail the output of the requested commands. And yes, I am working with Ubuntu 22.04. |
Hmm, it looks correct. Could you please have a look at your Could you also share how you set up the API? Does it use a systemd service, or did you do it differently? |
@sebix @kamil-certat Regarding the api, it is not running as a service, there is a file in apache2, called api-apache, where I understand it is running. |
Okay, so it sounds quite clear - the Ubuntu installed the new version of Python. It usually works so, that every version has its own directory for packages (in addition to a generic one, but this is used almost exclusively for packages installed through system package manager, e.g. If you need to restore the code from the previous installation, it should be still available in the directory like The |
When I log in, it returns a 404, since it cannot find /intelmq/v1/api/login. When checking the nginx logs, it tells me that it cannot find the var.js file, located in /usr/share/intelmq-manager/html/js/.
Thank you so much. stay tuned
The text was updated successfully, but these errors were encountered: