• B правой части каждого сообщения есть стрелки и . Не стесняйтесь оценивать ответы. Чтобы автору вопроса закрыть свой тикет, надо выбрать лучший ответ. Просто нажмите значок в правой части сообщения.

systemctl status ospd-openvas.service

Gambler

Member
15.11.2020
10
0
BIT
0
Здраствуйте, при попитке запусть openvas командой gvm-start у меня виходит ето
Код:
Job for ospd-openvas.service failed because the control process exited with error code.
See "systemctl status ospd-openvas.service" and "journalctl -xe" for details.

При вводе команди systemctl status ospd-openvas.service виводит

ospd-openvas.service - OpenVAS Wrapper of the Greenbone Vulnerability Management (ospd-openvas)
     Loaded: loaded (/lib/systemd/system/ospd-openvas.service; disabled; vendor preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-17 14:37:36 EEST; 30s ago
       Docs: man:eek:spd-openvas(8)
             man:eek:penvas(8)
    Process: 4476 ExecStart=/usr/bin/ospd-openvas --unix-socket /run/ospd/ospd.sock --pid-file /run/ospd/ospd-openvas.pid --log-file /var/log/gvm/ospd-openvas.log --lock-fi>
        CPU: 187ms

При вводе  journalctl -xe

The unit redis-server@openvas.service has entered the 'failed' state with result 'exit-code'.
вер 17 14:38:37 cors-tobefilledbyoem systemd[1]: Failed to start Advanced key-value store (openvas).
░░ Subject: A start job for unit redis-server@openvas.service has failed
░░ Defined-By: systemd
░░ Support: Debian -- Support
░░
░░ A start job for unit redis-server@openvas.service has finished with a failure.
░░
░░ The job identifier is 5964 and the job result is failed.
вер 17 14:38:37 cors-tobefilledbyoem systemd[1]: redis-server@openvas.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Debian -- Support
░░
░░ Automatic restarting of the unit redis-server@openvas.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
вер 17 14:38:37 cors-tobefilledbyoem systemd[1]: Stopped Advanced key-value store (openvas).
░░ Subject: A stop job for unit redis-server@openvas.service has finished
░░ Defined-By: systemd
░░ Support: Debian -- Support
░░
░░ A stop job for unit redis-server@openvas.service has finished.
░░
░░ The job identifier is 6048 and the job result is done.
вер 17 14:38:37 cors-tobefilledbyoem systemd[1]: redis-server@openvas.service: Start request repeated too quickly.
вер 17 14:38:37 cors-tobefilledbyoem systemd[1]: redis-server@openvas.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Debian -- Support
░░
░░ The unit redis-server@openvas.service has entered the 'failed' state with result 'exit-code'.
вер 17 14:38:37 cors-tobefilledbyoem systemd[1]: Failed to start Advanced key-value store (openvas).
░░ Subject: A start job for unit redis-server@openvas.service has failed
░░ Defined-By: systemd
░░ Support: Debian -- Support
░░
░░ A start job for unit redis-server@openvas.service has finished with a failure.
░░
░░ The job identifier is 6048 and the job result is failed.
вер 17 14:38:40 cors-tobefilledbyoem gvmd[4583]: (process:4583): libgvm base-WARNING (recursed) **: Failed to create log file directory /var/log/gvm: Permission denied
вер 17 14:38:40 cors-tobefilledbyoem gvmd[4616]: (process:4616): libgvm base-WARNING (recursed) **: Failed to create log file directory /var/log/gvm: Permission denied
вер 17 14:38:50 cors-tobefilledbyoem gvmd[4613]: (process:4613): libgvm base-WARNING (recursed) **: Failed to create log file directory /var/log/gvm: Permission denied
вер 17 14:38:50 cors-tobefilledbyoem gvmd[4625]: (process:4625): libgvm base-WARNING (recursed) **: Failed to create log file directory /var/log/gvm: Permission denied
Буду признателен за помощь.
 

Crazy Jack

Well-known member
08.07.2017
573
89
BIT
35
Redis-server не может запустится, видать не правильно сконфигурировал.
Как исправить Redis для установки OpenVAS :
Код:
export LC_ALL="C" &&\
ldconfig &&\
cp /etc/redis/redis.conf /etc/redis/redis.orig &&\
cp /opt/gvm/src/openvas/config/redis-openvas.conf /etc/redis/ &&\
chown redis:redis /etc/redis/redis-openvas.conf &&\
echo "db_address = /run/redis-openvas/redis.sock" > /opt/gvm/etc/openvas/openvas.conf &&\
systemctl enable redis-server@openvas.service &&\
systemctl start redis-server@openvas.service
sysctl -w net.core.somaxconn=1024 &&\
sysctl vm.overcommit_memory=1 &&\
echo "net.core.somaxconn=1024" >> /etc/sysctl.conf &&\
echo "vm.overcommit_memory=1" >> /etc/sysctl.conf
systemctl daemon-reload &&\
systemctl start disable-thp &&\
systemctl enable disable-thp &&\
systemctl restart redis-server

Не запустится, вот инструкция по установке
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!