openmptcprouter icon indicating copy to clipboard operation
openmptcprouter copied to clipboard

Error when updating VPS with the latest snapshot.

Open vempire-ghost opened this issue 1 year ago • 6 comments

Expected Behavior

"VPS updated successfully."

Current Behavior

"Update is interrupted with an error." Glorytun UDP Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libfstrm0 libjemalloc2 liblmdb0 libmaxminddb0 libprotobuf-c1 libssl1.1 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 35 not upgraded. Need to get 0 B/27.0 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 100109 files and directories currently installed.) Preparing to unpack .../omr-glorytun_0.3.4-5_amd64.deb ... Unpacking omr-glorytun (0.3.4-5) over (0.3.4-5) ... Setting up omr-glorytun (0.3.4-5) ... Job for [email protected] failed because the control process exited with error code. See "systemctl status [email protected]" and "journalctl -xeu [email protected]" for details. dpkg: error processing package omr-glorytun (--configure): installed omr-glorytun package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: omr-glorytun E: Sub-process /usr/bin/dpkg returned an error code (1)

Possible Solution

Steps to Reproduce the Problem

sudo su wget -O - https://www.openmptcprouter.com/server-test/debian-x86_64.sh | sh

Context (Environment)

Specifications

  • OpenMPTCProuter version:
  • OpenMPTCProuter VPS version: OpenMPTCProuter VPS 0.1029-test 5.4.207-mptcp
  • OpenMPTCProuter VPS provider: GCP
  • OpenMPTCProuter platform: x86_64
  • Country:

vempire-ghost avatar Feb 23 '24 13:02 vempire-ghost

Please use the template.

What is the result of systemctl status [email protected] and journalctl -xeu [email protected] ?

Ysurac avatar Feb 23 '24 13:02 Ysurac

vempire@instance-3:~$ systemctl status [email protected] × [email protected] - Glorytun UDP on tun0 Loaded: loaded (/lib/systemd/system/[email protected]; enabled; preset: enabled) Active: failed (Result: exit-code) since Fri 2024-02-23 13:42:54 UTC; 13s ago Duration: 4ms Process: 4026 ExecStart=/usr/local/bin/glorytun-udp-run /etc/glorytun-udp/tun0 (code=exited, status=2) Process: 4027 ExecStartPost=/etc/glorytun-udp/post.sh /etc/glorytun-udp/tun0 (code=exited, status=2) Main PID: 4026 (code=exited, status=2) CPU: 8ms

Feb 23 13:42:53 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Failed with result 'exit-code'. Feb 23 13:42:53 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Failed to start [email protected] - Glorytun UDP on tun0. Feb 23 13:42:54 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Scheduled restart job, restart counter is at 5. Feb 23 13:42:54 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Stopped [email protected] - Glorytun UDP on tun0. Feb 23 13:42:54 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Start request repeated too quickly. Feb 23 13:42:54 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Failed with result 'exit-code'. Feb 23 13:42:54 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Failed to start [email protected] - Glorytun UDP on tun0.

vempire@instance-3:~$ journalctl -xeu [email protected] ░░ Automatic restarting of the unit [email protected] has been scheduled, as the result for ░░ the configured Restart= setting for the unit. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Stopped [email protected] - Glorytun UDP on tun0. ░░ Subject: A stop job for unit [email protected] has finished ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A stop job for unit [email protected] has finished. ░░ ░░ The job identifier is 5163 and the job result is done. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Starting [email protected] - Glorytun UDP on tun0... ░░ Subject: A start job for unit [email protected] has begun execution ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit [email protected] has begun execution. ░░ ░░ The job identifier is 5163. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal glorytun-udp-run[4818]: /usr/local/bin/glorytun-udp-run: 10: .: cannot open /etc/glorytun-udp/tun0: Permission denied Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ An ExecStart= process belonging to unit [email protected] has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 2. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal post.sh[4819]: /etc/glorytun-udp/post.sh: 3: .: cannot open /etc/glorytun-udp/tun0: Permission denied Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit [email protected] has entered the 'failed' state with result 'exit-code'. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Failed to start [email protected] - Glorytun UDP on tun0. ░░ Subject: A start job for unit [email protected] has failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit [email protected] has finished with a failure. ░░ ░░ The job identifier is 5163 and the job result is failed. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Scheduled restart job, restart counter is at 5. ░░ Subject: Automatic restarting of a unit has been scheduled ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ Automatic restarting of the unit [email protected] has been scheduled, as the result for ░░ the configured Restart= setting for the unit. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Stopped [email protected] - Glorytun UDP on tun0. ░░ Subject: A stop job for unit [email protected] has finished ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A stop job for unit [email protected] has finished. ░░ ░░ The job identifier is 5239 and the job result is done. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Start request repeated too quickly. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: [email protected]: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit [email protected] has entered the 'failed' state with result 'exit-code'. Feb 23 13:43:35 instance-3.southamerica-east1-a.c.helical-fin-392321.internal systemd[1]: Failed to start [email protected] - Glorytun UDP on tun0. ░░ Subject: A start job for unit [email protected] has failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit [email protected] has finished with a failure. ░░ ░░ The job identifier is 5239 and the job result is failed.

vempire-ghost avatar Feb 23 '24 13:02 vempire-ghost

What is the result of ls -la /etc/glorytun-udp/ ?

Ysurac avatar Feb 23 '24 14:02 Ysurac

vempire@instance-3:~$ ls -la /etc/glorytun-udp/ total 24 drwxr-xr-x 2 vempire vempire 4096 Feb 23 13:30 . drwxr-xr-x 97 root root 4096 Feb 23 14:35 .. -rwxr-xr-x 1 vempire vempire 641 Jun 14 2021 post.sh -rw------- 1 vempire vempire 76 Feb 1 23:34 tun0 -rw------- 1 vempire vempire 86 Sep 2 2021 tun0.dpkg-dist -rw------- 1 vempire vempire 65 Nov 27 23:49 tun0.key

vempire-ghost avatar Feb 23 '24 14:02 vempire-ghost

Why files belong to user vempire ? Should belong to user root and group root

Ysurac avatar Feb 25 '24 08:02 Ysurac

A while ago, I tried to copy the files via SFTP, and as I didn't have the necessary permissions, I took them for my user and forgot to return them to root. Thank you, returning them to root, the update was successful.

vempire-ghost avatar Feb 25 '24 12:02 vempire-ghost

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar May 25 '24 19:05 github-actions[bot]