abiosoft / abiosoft/autoplank

inappropriate ioctl for device after installing it as a service

オープン
#14 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
52
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

Distro: Elementary OS 5.1
Laptop: Dell XPS 15 7590

After installing autoplank as a service it is not starting and im getting the following logs:

`Apr 3 22:21:33 joaofranco-elementary systemd[2318]: Started Autoplank Service.
Apr 3 22:21:33 joaofranco-elementary autoplank[6241]: 2020/04/03 22:21:33 fork/exec /usr/bin/plank: inappropriate ioctl for device
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Main process exited, code=exited, status=1/FAILURE
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Failed with result 'exit-code'.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Service hold-off time over, scheduling restart.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Scheduled restart job, restart counter is at 1.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: Stopped Autoplank Service.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: Started Autoplank Service.
Apr 3 22:21:33 joaofranco-elementary autoplank[6252]: 2020/04/03 22:21:33 fork/exec /usr/bin/plank: inappropriate ioctl for device
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Main process exited, code=exited, status=1/FAILURE
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Failed with result 'exit-code'.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Service hold-off time over, scheduling restart.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Scheduled restart job, restart counter is at 2.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: Stopped Autoplank Service.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: Started Autoplank Service.
Apr 3 22:21:33 joaofranco-elementary autoplank[6260]: 2020/04/03 22:21:33 fork/exec /usr/bin/plank: inappropriate ioctl for device
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Main process exited, code=exited, status=1/FAILURE
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Failed with result 'exit-code'.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Service hold-off time over, scheduling restart.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Scheduled restart job, restart counter is at 3.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: Stopped Autoplank Service.
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: Started Autoplank Service.
Apr 3 22:21:33 joaofranco-elementary autoplank[6267]: 2020/04/03 22:21:33 fork/exec /usr/bin/plank: inappropriate ioctl for device
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Main process exited, code=exited, status=1/FAILURE
Apr 3 22:21:33 joaofranco-elementary systemd[2318]: autoplank.service: Failed with result 'exit-code'.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Service hold-off time over, scheduling restart.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Scheduled restart job, restart counter is at 4.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: Stopped Autoplank Service.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: Started Autoplank Service.
Apr 3 22:21:34 joaofranco-elementary autoplank[6275]: 2020/04/03 22:21:34 fork/exec /usr/bin/plank: inappropriate ioctl for device
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Main process exited, code=exited, status=1/FAILURE
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Failed with result 'exit-code'.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Service hold-off time over, scheduling restart.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Scheduled restart job, restart counter is at 5.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: Stopped Autoplank Service.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Start request repeated too quickly.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: autoplank.service: Failed with result 'exit-code'.
Apr 3 22:21:34 joaofranco-elementary systemd[2318]: Failed to start Autoplank Service.
`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The error 'inappropriate ioctl for device' occurs when the service tries to fork/exec /usr/bin/plank. Examine the service file and the Go code that launches plank, likely in main.go or a service management file. Check if the service is missing necessary environment variables or TTY settings. Look for how the exec.Command is configured and test running plank from a systemd service context.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go, linux
領域
cli, desktop
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。