openmptcprouter icon indicating copy to clipboard operation
openmptcprouter copied to clipboard

Shadowsocks is not running (empty key) and Can't connect with server, on RPI 4

Open atyouspace opened this issue 3 years ago • 7 comments

I get an error like the capture. What should I do? image

I check that VPS admin key is good, that VPS was rebooted and I check State->System log. image

atyouspace avatar Oct 11 '22 02:10 atyouspace

Please use the template when you open an issue.

Check that you rebooted the VPS after install, if yes check the result of systemctl start omr-admin on the VPS.

Ysurac avatar Oct 11 '22 05:10 Ysurac

I reboot VPS, and check the results of systemctl start omr-admin, as followed,

root@iZ2zedyc2xu82zjw70o2s5Z:~# systemctl start omr-admin Job for omr-admin.service failed because the control process exited with error code. See "systemctl status omr-admin.service" and "journalctl -xe" for details.

and then, I check systemctl status omr-admin.service

root@iZ2zedyc2xu82zjw70o2s5Z:~# systemctl status omr-admin.service ● omr-admin.service - OMR-Admin Loaded: loaded (/lib/systemd/system/omr-admin.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2022-10-11 13:45:07 CST; 6s ago Process: 2697 ExecStart=/usr/bin/omr-admin.py (code=exited, status=1/FAILURE) Main PID: 2697 (code=exited, status=1/FAILURE)

Oct 11 13:45:07 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: omr-admin.service: Service RestartSec=100ms expired, scheduling restart. Oct 11 13:45:07 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: omr-admin.service: Scheduled restart job, restart counter is at 5. Oct 11 13:45:07 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: Stopped OMR-Admin. Oct 11 13:45:07 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: omr-admin.service: Start request repeated too quickly. Oct 11 13:45:07 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: omr-admin.service: Failed with result 'exit-code'. Oct 11 13:45:07 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: Failed to start OMR-Admin.

and then, I check journalctl -xe

root@iZ2zedyc2xu82zjw70o2s5Z:~# journalctl -xe -- Subject: Automatic restarting of a unit has been scheduled -- Defined-By: systemd -- Support: https://www.debian.org/support

-- Automatic restarting of the unit omr-admin.service has been scheduled, as the result for -- the configured Restart= setting for the unit. Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: Stopped OMR-Admin. -- Subject: A stop job for unit omr-admin.service has finished -- Defined-By: systemd -- Support: https://www.debian.org/support

-- A stop job for unit omr-admin.service has finished.

-- The job identifier is 264462 and the job result is done. Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: Started OMR-Admin. -- Subject: A start job for unit omr-admin.service has finished successfully -- Defined-By: systemd -- Support: https://www.debian.org/support

-- A start job for unit omr-admin.service has finished successfully.

-- The job identifier is 264462. Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: Traceback (most recent call last): Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: File "/usr/bin/omr-admin.py", line 39, in Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: from fastapi import Depends, FastAPI, HTTPException, Security, Quer Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: File "/usr/local/lib/python3.7/dist-packages/fastapi/init.py", li Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: from .applications import FastAPI as FastAPI Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: File "/usr/local/lib/python3.7/dist-packages/fastapi/applications.py" Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: from fastapi import routing Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: File "/usr/local/lib/python3.7/dist-packages/fastapi/routing.py", lin Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: from fastapi import params Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: File "/usr/local/lib/python3.7/dist-packages/fastapi/params.py", line Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: from pydantic.fields import FieldInfo, Undefined Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: File "/usr/local/lib/python3.7/dist-packages/pydantic/init.py", l Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: from . import dataclasses Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: File "/usr/local/lib/python3.7/dist-packages/pydantic/dataclasses.py" Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: from typing_extensions import dataclass_transform Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z omr-admin.py[4873]: ImportError: cannot import name 'dataclass_transform' from 'typing_exte Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: omr-admin.service: Main process exited, code=exited, status=1/FAILURE -- Subject: Unit process exited -- Defined-By: systemd -- Support: https://www.debian.org/support

-- An ExecStart= process belonging to unit omr-admin.service has exited.

-- The process' exit code is 'exited' and its exit status is 1. Oct 11 13:46:47 iZ2zedyc2xu82zjw70o2s5Z systemd[1]: omr-admin.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://www.debian.org/support

-- The unit omr-admin.service has entered the 'failed' state with result 'exit-code'.

atyouspace avatar Oct 11 '22 05:10 atyouspace

pip3 install starlette

Ysurac avatar Oct 11 '22 05:10 Ysurac

I check pip3 install starlette and then, Check systemctl start omr-admin and systemctl | grep omr

OMR-Admin loaded successfully and failed...

image

atyouspace avatar Oct 11 '22 11:10 atyouspace

try pip3 install fastapi

Ysurac avatar Oct 11 '22 12:10 Ysurac

Its done. Why we need install fastapi?

atyouspace avatar Oct 11 '22 13:10 atyouspace

Because VPS API use FastAPI This should be done by VPS install script, but seems there was an error in your case. You can also run VPS script again.

Ysurac avatar Oct 11 '22 13:10 Ysurac

I had this problem and wiping the vps then reistalling it fixed the problem.

hairy-dog avatar Nov 03 '22 13:11 hairy-dog

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 Feb 01 '23 19:02 github-actions[bot]