D
D
dminster942020-12-12 23:01:04
linux
dminster94, 2020-12-12 23:01:04

Stunnel4.service failed how to fix?

[email protected]:/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.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2020-12-13
@res2001

Studio configs. Are the given errors on the client or server side?
Errors seem to be 2:

Unknown TCP service "993 ."

Apparently an extra service is described in the config, remove it.
[!] Service [openvpn]: Cannot resolve accept target

Is openvpn reachable at the address and port specified in the accept clause?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question