-
Notifications
You must be signed in to change notification settings - Fork 56
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
intelmq-manager start/stop does not work #42
Comments
Yes, its a bug. What I do everytime i star the machine is:
Of course, we need to commit a solution to do this automatically. |
Every time the VM reboots, the directories /var/run/ seems to be deleted. |
|
So, its a problem on 'intelmqctl' |
I had issue only on "stop"... start is ok... could it been related ? Traceback (most recent call last):
File "/opt/intelmq/bin/intelmqctl", line 413, in <module>
x.run()
File "/opt/intelmq/bin/intelmqctl", line 184, in run
results = call_method(self.args.bot_id)
File "/opt/intelmq/bin/intelmqctl", line 233, in bot_stop
res = self.__bot_stop(bot_id, pid)
File "/opt/intelmq/bin/intelmqctl", line 242, in __bot_stop
stop_process(pid)
File "/opt/intelmq/bin/intelmqctl", line 112, in stop_process
p.send_signal(signal.SIGINT)
File "/usr/local/lib/python2.7/dist-packages/psutil-2.1.1-py2.7-linux-x86_64.egg/psutil/__init__.py", line 258, in wrapper
return fun(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/psutil-2.1.1-py2.7-linux-x86_64.egg/psutil/__init__.py", line 986, in send_signal
self._send_signal(sig)
File "/usr/local/lib/python2.7/dist-packages/psutil-2.1.1-py2.7-linux-x86_64.egg/psutil/__init__.py", line 975, in _send_signal
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: (pid=69718) |
@Th4nat0s Does this issue still persist on current versions (v1.0-final branch of intelmq)? |
Today I have a similar problem. I can stop a bot in intelmq-manager, but I cannot start it. There are no errors in the logs, and I tracked it down to being a problem with running intelmqctl via sudo. For some reason that I cannot explain, the bot does not start when intelmqctl is run using the 'sudo -u intelmq' approach. You can very easily verify this for yourself. The bot starts fine if you 'sudo -iu intelmq' first and then run intelmqctl from the shell. |
This is related to #61. The problem is that the environment variable INTELMQ_PYTHON is not set when intelmq is run via 'sudo -u intelmq'. I have tested the following solution (Ubuntu 14.04.3). No doubt there are other ways to achieve the same result.
|
If |
That makes sense. We are using the Python 3 version of intelmq as recommended in the installation. I changed the first line of intelmqctl to |
Duplicate of #69 |
Pressing Start/Stop in the Management tab does nothing.
Probably a permission problem?
The text was updated successfully, but these errors were encountered: