Open kodebrain opened 1 year ago
The user needs read and write access to the database and the directory containing it. Is this the case?
I had to create the db manually using sudo api-session.sqlite based on the config in /etc/intelmq/api-config.json /usr/share/dbconfig-common/data/intelmq-api/install/sqlite3 write permission set for user and group for api-session.sqlite
After logging back into the portal, getting more errors 9:07 AM 341× Error loading bot queues information: [31mNot logging to file: [Errno 13] Permission denied: '/var/log/intelmq/intelmqctl.log'[0m sudo -u www-data intelmqctl --type json list queues-and-status
8:59 AM Saved positions are not valid or not complete. The configuration has possibly been modified outside of the IntelMQ-Manager.
-rw-r--r-- 1 intelmq intelmq 1245 Feb 1 08:58 intelmqctl.log
all errors disappeared after setting the permission to 774 -rwxrwxr-- 1 intelmq intelmq 1245 Feb 1 08:58 intelmqctl.log
To import custom bots, is the below the correct location to install it?
/usr/lib/python3/dist-packages/intelmq/bots$ ls -al total 28 drwxr-xr-x 7 root root 4096 Jan 4 10:46 . drwxr-xr-x 8 root root 4096 Jan 4 10:46 .. -rw-r--r-- 1 root root 0 Sep 10 2021 init.py drwxr-xr-x 2 root root 4096 Jan 4 10:46 pycache drwxr-xr-x 24 root root 4096 Jan 4 10:46 collectors drwxr-xr-x 40 root root 4096 Jan 4 10:46 experts drwxr-xr-x 22 root root 4096 Jan 4 10:46 outputs drwxr-xr-x 52 root root 4096 Jan 4 10:46 parsers
To import custom bots, is the below the correct location to install it?
Yes, but if you want a development installation, I recommend reading the dev guide: https://intelmq.readthedocs.io/en/maintenance/dev/guide.html#installation Using a local repository makes development easier
Installation completed using native package - Ubuntu 20.04 Followed - Installation
this is the name of your application's database.
dbc_dbname='/var/lib/dbconfig-common/sqlite3/intelmq-api'
The above path doesn't exist on my installationchanged the path of session_store to
/usr/share/dbconfig-common/data/intelmq-api/install
How to create the api-session.sqlite file?