Автор Тема: rasp os без Х + twinkle + service чо происходит  (Прочитано 821 раз)

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

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Добрый день, подскажите пожалуйста, установил настроил 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

Re: rasp os без Х + twinkle + service чо происходит
« Ответ #1 : 19 Июня 2020, 10:02:37 »
twinkle от root'а должен запускаться?
Бλог   @chuba_duba
 

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #2 : 19 Июня 2020, 15:36:43 »
да хотелось бы
 

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #3 : 19 Июня 2020, 18:30:31 »
ExecStart=/usr/bin/sudo /usr/bin/twinkle -c
Эффекта не дает.
 

Оффлайн qupl

Re: rasp os без Х + twinkle + service чо происходит
« Ответ #4 : 19 Июня 2020, 19:05:10 »
shiyri,  попробуйте в секцию Service добавить
TimeoutSec=30s
а вообще нужно смотреть логи, скорее всего ошибки какие-то есть.

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #5 : 19 Июня 2020, 19:13:58 »
ExecStart=/usr/bin/sudo /usr/bin/twinkle -c
Эффекта не дает.
 

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #6 : 19 Июня 2020, 19:23:27 »
В логах twinkle только успешные соединения
Таймаут не помог
« Последнее редактирование: 19 Июня 2020, 19:25:35 от shiyri »
 

Оффлайн qupl

Re: rasp os без Х + twinkle + service чо происходит
« Ответ #7 : 19 Июня 2020, 20:01:33 »
sudo journalctl -u twinkle.service

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #8 : 19 Июня 2020, 22:38:28 »

- 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. --

« Последнее редактирование: 20 Июня 2020, 12:14:01 от shiyri »
 

Оффлайн ogost

Re: rasp os без Х + twinkle + service чо происходит
« Ответ #9 : 20 Июня 2020, 11:55:30 »
Ещё одно такое длинное сообщение без тэга "код" или без спойлера - и будет бан. Редактируйте пост и убирайте листинг под спойлер.

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #10 : 21 Июня 2020, 14:39:33 »
Как мне быть то? Подскажите люди добрые.....
 

Оффлайн qupl

Re: rasp os без Х + twinkle + service чо происходит
« Ответ #11 : 21 Июня 2020, 19:28:13 »
Как мне быть то? Подскажите люди добрые.....
ошибки получили, теперь гуглить по ним

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #12 : 22 Июня 2020, 10:41:58 »
  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

Re: rasp os без Х + twinkle + service чо происходит
« Ответ #13 : 22 Июня 2020, 10:49:55 »
В самой программе какая-то ошибка, может она ожидает определенное количество аргументов или еще что.

Оффлайн shiyri

  • Новичок форума
  • Сообщений: 9
Re: rasp os без Х + twinkle + service чо происходит
« Ответ #14 : 22 Июня 2020, 11:34:06 »
Дык я уже на ubuntu поствил с официального репозитария, один фиг..... (на другую raspberry pi)
 

Теги: