rasp os без Х + twinkle + service чо происходит

Автор shiyri, 19 июня 2020, 06:40:19

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

shiyri

Добрый день, подскажите пожалуйста, установил настроил twinkle на малину(rasp os linux 10), запускаю через терминал twinkle -c все шикарно, делаю из этого сервис, что б положить в автозапуск,
в /etc/systemd/system/twinkle.service со следующим:



# Contents of /etc/systemd/system/twinkle.service
[Unit]
Description=twinkle
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/twinkle -c

[Install]
WantedBy=multi-user.target


при запуске сервиса выходит ошибка:

twinkle.service - twinkle
   Loaded: loaded (/etc/systemd/system/twinkle.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Thu 2020-06-18 17:01:23 BST; 8s ago
  Process: 654 ExecStart=/usr/bin/twinkle -c (code=killed, signal=ABRT)
Main PID: 654 (code=killed, signal=ABRT)

Jun 18 17:01:23 raspberrypi systemd[1]: twinkle.service: Service RestartSec=100ms expired, scheduling restart.
Jun 18 17:01:23 raspberrypi systemd[1]: twinkle.service: Scheduled restart job, restart counter is at 5.
Jun 18 17:01:23 raspberrypi systemd[1]: Stopped twinkle.
Jun 18 17:01:23 raspberrypi systemd[1]: twinkle.service: Start request repeated too quickly.
Jun 18 17:01:23 raspberrypi systemd[1]: twinkle.service: Failed with result 'signal'.
Jun 18 17:01:23 raspberrypi systemd[1]: Failed to start twinkle.

как мне исправить хелп

ChubaDuba

twinkle от root'а должен запускаться?

shiyri


shiyri


ExecStart=/usr/bin/sudo /usr/bin/twinkle -c

Эффекта не дает.

qupl

shiyri,  попробуйте в секцию Service добавить
TimeoutSec=30s

а вообще нужно смотреть логи, скорее всего ошибки какие-то есть.

shiyri


ExecStart=/usr/bin/sudo /usr/bin/twinkle -c

Эффекта не дает.

shiyri

#6
В логах twinkle только успешные соединения
Таймаут не помог


shiyri

#8


- Logs begin at Fri 2020-06-19 17:16:00 BST, end at Fri 2020-06-19 20:14:15 BST. --
Jun 19 17:16:13 raspberrypi systemd[1]: Started twinkle.
Jun 19 17:16:14 raspberrypi twinkle[525]: terminate called after throwing an instance of 'std::logic_error'
Jun 19 17:16:14 raspberrypi twinkle[525]:   what():  basic_string::_M_construct null not valid
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Main process exited, code=killed, status=6/ABRT
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Failed with result 'signal'.
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Service RestartSec=100ms expired, scheduling restart.
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Scheduled restart job, restart counter is at 1.
Jun 19 17:16:14 raspberrypi systemd[1]: Stopped twinkle.
Jun 19 17:16:14 raspberrypi systemd[1]: Started twinkle.
Jun 19 17:16:14 raspberrypi twinkle[544]: terminate called after throwing an instance of 'std::logic_error'
Jun 19 17:16:14 raspberrypi twinkle[544]:   what():  basic_string::_M_construct null not valid
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Main process exited, code=killed, status=6/ABRT
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Failed with result 'signal'.
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Service RestartSec=100ms expired, scheduling restart.
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Scheduled restart job, restart counter is at 2.
Jun 19 17:16:14 raspberrypi systemd[1]: Stopped twinkle.
Jun 19 17:16:14 raspberrypi systemd[1]: Started twinkle.
Jun 19 17:16:14 raspberrypi twinkle[548]: terminate called after throwing an instance of 'std::logic_error'
Jun 19 17:16:14 raspberrypi twinkle[548]:   what():  basic_string::_M_construct null not valid
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Main process exited, code=killed, status=6/ABRT
Jun 19 17:16:14 raspberrypi systemd[1]: twinkle.service: Failed with result 'signal'.
Jun 19 17:16:15 raspberrypi systemd[1]: twinkle.service: Service RestartSec=100ms expired, scheduling restart.
ESCOC



2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
lines 1-23...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.
lines 1-24...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.

lines 1-25...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.


lines 1-26...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.


ed after throwing an instance of 'std::logic_error'
lines 1-27...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
lines 1-28...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
lines 1-29...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
lines 1-30...skipping...
2020-06-19 20:14:15 BST. --

ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 1.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 2.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 3.


ed after throwing an instance of 'std::logic_error'
ic_string::_M_construct null not valid
Main process exited, code=killed, status=6/ABRT
Failed with result 'signal'.
Service RestartSec=100ms expired, scheduling restart.
Scheduled restart job, restart counter is at 4.
lines 1-32...skipping...
2020-06-19 20:14:15 BST. --


ogost

Ещё одно такое длинное сообщение без тэга "код" или без спойлера - и будет бан. Редактируйте пост и убирайте листинг под спойлер.

shiyri

Как мне быть то? Подскажите люди добрые.....

qupl

Цитата: shiyri от 21 июня 2020, 14:39:33
Как мне быть то? Подскажите люди добрые.....
ошибки получили, теперь гуглить по ним

shiyri


  GNU nano 4.8          /etc/systemd/system/twinkle.service
# Contents of /etc/systemd/system/twinkle.service
[Unit]
Description=twinkle
After=network.target

[Service]
Type=simple
Restart=always
RestartSec=30
ExecStart=/usr/bin/twinkle -c
ProtectSystem=strict      //Добавил это
ProtectHome=yes      //Добавил это
StateDirectory=/var/lib/systemd/coredump/      //Добавил это

[Install]
WantedBy=multi-user.target



не поменялось ничего, на форумах пишут, что типо сервис дофига памяти берет и ее останавливает..... либо проблема с оболочкой, понять не могу что такое.....

qupl

В самой программе какая-то ошибка, может она ожидает определенное количество аргументов или еще что.

shiyri

Дык я уже на ubuntu поствил с официального репозитария, один фиг..... (на другую raspberry pi)