@dminster94

Stunnel4.service failed как исправить?

root@ubuntu-s-1vcpu-1gb-nyc1-01:/etc/stunnel# journalctl -xe
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Running  with OpenSSL 1.1.
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Update OpenSSL shared libr
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Threading:PTHREAD Sockets:
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] errno: (*__errno_location
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Reading configuration from
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] UTF-8 byte order mark not
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] FIPS mode disabled
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] Compression disabled
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] Snagged 64 random bytes fr
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] PRNG seeded successfully
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] Initializing service [open
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [!] Unknown TCP service "993
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [!] Service [openvpn]: Cannot
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: failed
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: You should check that you have
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 systemd[1]: stunnel4.service: Control process
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 sudo[3034]: pam_unix(sudo:session): session cl
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 systemd[1]: stunnel4.service: Failed with resu
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 systemd[1]: Failed to start LSB: Start or stop
-- Subject: Unit stunnel4.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit stunnel4.service has failed.
--
-- The result is RESULT.
lines 2473-2498/2498 (END)
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Running  with OpenSSL 1.1.1  11 Sep 2018
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Update OpenSSL shared libraries or rebuild stunnel
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Threading:PTHREAD Sockets:POLL,IPv6,SYSTEMD TLS:ENGINE,FIPS,OCSP,PSK,SNI Auth:LIBWRAP
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] errno: (*__errno_location ())
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] Reading configuration from file /etc/stunnel/stunnel.conf
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] UTF-8 byte order mark not detected
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [.] FIPS mode disabled
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] Compression disabled
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] Snagged 64 random bytes from /dev/urandom
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] PRNG seeded successfully
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [ ] Initializing service [openvpn]
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [!] Unknown TCP service "993    ."
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: [!] Service [openvpn]: Cannot resolve accept target
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: failed
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 stunnel4[3039]: You should check that you have specified the pid= in you configuration file
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 systemd[1]: stunnel4.service: Control process exited, code=exited status=1
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 sudo[3034]: pam_unix(sudo:session): session closed for user root
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 systemd[1]: stunnel4.service: Failed with result 'exit-code'.
Dec 12 20:37:57 ubuntu-s-1vcpu-1gb-nyc1-01 systemd[1]: Failed to start LSB: Start or stop stunnel 4.x (TLS tunnel for network daemons).
-- Subject: Unit stunnel4.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit stunnel4.service has failed.
--
-- The result is RESULT.
  • Вопрос задан
  • 816 просмотров
Пригласить эксперта
Ответы на вопрос 1
@res2001
Developer, ex-admin
Конфиги в студию. Приведенные ошибки на стороне клиента или сервера?
Ошибки, видимо 2:
Unknown TCP service "993 ."

Видимо описан лишний сервис в конфиге, уберите его.
[!] Service [openvpn]: Cannot resolve accept target

Доступен ли openvpn по адресу и порту, указанному во фразе accept?
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы