TelegramMessenger / MTProxy

5.01k stars 831 forks source link

Faild to start mtproxy #344

Open mehdilinus opened 5 years ago

mehdilinus commented 5 years ago

Hi I problem to connect to MTproxy and check to issuse but not soulotion this problem

systemctl status mtprotoproxy -l

`\u25cf mtprotoproxy.service Loaded: loaded (/etc/systemd/system/mtprotoproxy.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2019-09-22 21:58:53 CEST; 1h 38min ago Main PID: 12735 (code=exited, status=203/EXEC)

Sep 22 21:58:53 srv systemd[1]: Started MTProto Proxy Service. Sep 22 21:58:53 srv systemd[12735]: Failed at step EXEC spawning /usr/bin/python3.6: No such file or directory Sep 22 21:58:53 srv systemd[1]: mtprotoproxy.service: main process exited, code=exited, status=203/EXEC Sep 22 21:58:53 srv systemd[1]: Unit mtprotoproxy.service entered failed state. Sep 22 21:58:53 srv systemd[1]: mtprotoproxy.service failed. Sep 22 23:03:03 srv systemd[1]: mtprotoproxy.service lacks both ExecStart= and ExecStop= setting. Refusing. Sep 22 23:08:27 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:1] Assignment outside of section. Ignoring. Sep 22 23:08:27 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:2] Assignment outside of section. Ignoring.`

/etc/systemd/system/mtprotoproxy.service

`Description=MTProxy After=network.target

[Service] Type=simple WorkingDirectory=/opt/MTProxy/objs/bin ExecStart=/opt/MTProxy/objs/bin/mtproto-proxy -u mosako -p 8888 -H 443 -S ad48a1b197c160f3aec7997fb55152e7 --aes-pwd proxy-secret proxy-multi.conf -M 5 Restart=on-failure

[Install] WantedBy=multi-user.target`

please help me

rlka commented 5 years ago

/usr/bin/python3.6: No such file or directory

mm? is that not an error that you need?

mehdilinus commented 5 years ago

How can I fix this error?

mehdilinus commented 5 years ago

`systemctl status mtprotoproxy -l \u25cf mtprotoproxy.service Loaded: loaded (/etc/systemd/system/mtprotoproxy.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2019-09-22 21:58:53 CEST; 15h ago Main PID: 12735 (code=exited, status=203/EXEC)

Sep 22 21:58:53 srv systemd[1]: mtprotoproxy.service failed. Sep 22 23:03:03 srv systemd[1]: mtprotoproxy.service lacks both ExecStart= and ExecStop= setting. Refusing. Sep 22 23:08:27 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:1] Assignment outside of section. Ignoring. Sep 22 23:08:27 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:2] Assignment outside of section. Ignoring. Sep 23 01:19:29 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:1] Assignment outside of section. Ignoring. Sep 23 01:19:29 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:2] Assignment outside of section. Ignoring. Sep 23 01:32:49 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:1] Assignment outside of section. Ignoring. Sep 23 01:32:49 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:2] Assignment outside of section. Ignoring. Sep 23 01:35:16 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:1] Assignment outside of section. Ignoring. Sep 23 01:35:16 srv systemd[1]: [/etc/systemd/system/mtprotoproxy.service:2] Assignment outside of section. Ignoring. `