-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dietpi-services restart will not work #7283
Comments
Can you share following info
|
root@DietPi:~# dmesg -l 0,1,2,3 |
Also, my pi has an uptime of around one week, and then SSH stops working, but the ethernet network port still has the LEDs flashing as if there is a connection. I have to power cycle the pi to get it working again. |
Looks like some data loss along with the crash. Probably the PSU is insufficient or so. Let's start with the easier one: Can you check about the ls -l /usr/bin/clear |
root@DietPi:~# ls -l /usr/bin/clear |
The /usr/bin/clear If so, please check our PATH: echo $PATH
which clear |
root@DietPi:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@DietPi:~# which clear
/usr/bin/clear |
That looks all good. And running command -v clear |
root@DietPi:~# command -v clear |
And the other question? |
/usr/bin/clear Also cleared the terminal |
And |
Screen_Recording_20241119_225441_Termius.mp4Clear command cleared the screen. As shown in this video, I recorded running the command. |
Okay, so that one is working again. Then let's check about the dietpi-services restart And if so, can you run it like that: bash -x /boot/dietpi/dietpi-services restart It will produce a lot of output until it run into the error. In case, only the last page is relevant. |
dietpi-services restart bash -x /boot/dietpi/dietpi-services restart Please see video of command outputs. Screen_Recording_20241119_231325_Termius.online-video-cutter.com.mp4 |
|
So this also works now. Guess the problems are solved? Maybe in temporary instability. You use the official RPi PSU or a good brand one? |
I am currently using an official RPi PSU. I will look into replacing my currently psu with the following. Raspberry Pi 27W USB-C Power Supply https://thepihut.com/products/raspberry-pi-27w-usb-c-power-supply Thanks |
Hmm, the official RPi PSU should provide sufficient power. Do you use and SD card or USB flash drive for the OS? Or other USB devices? In any case, if something similar happens again, like the crash you had, report back. We can enable persistent system logging, to check what happened before the crash. |
I have ordered a new Raspberry Pi 27W USB-C Power Supply. It should arrive in a few days. I will report back in a weeks time. Can you please keep this ticket open for the time being? It boot off an SD Card 32GB SanDisk. I also have a USB 3.0 SSD connected for media storage and a UPS HAT connected. Thanks for the support. |
Is the USB SSD powered through the USB ports only, or via dedicated PSU? |
It's a Crucial X6 2TB Portable SSD - Up to 800MB/s - PC and Mac - USB 3.2 USB-C External Solid State Drive - CT2000X6SSD9 - Black Deal: Crucial X6 2TB Portable SSD - Up to 800MB/s - PC and Mac - USB 3.2 USB-C External Solid State Drive - CT2000X6SSD9 - Black https://amzn.eu/d/i0wt8c1 The replacement psu I ordered for my pi arrived today. I will test it out over the weekend. I will report back mid week next week once it's been running for a few days. The drive is bus powered through the USB 3.0 port. |
Ah, an NVMe SSD in a portable case, nice. Not sure how much power these draw, compared to a 2.5" SSD. If it is similar, it may be related to the instability, since the RPi USB ports do no provide enough power to drive such drives reliably. Sometimes it works, sometimes not, sometimes it works until a kernel upgrade, or power peak. ... @Joulinar is testing it just now with another NVMe SSD in a 😄 and indeed, the additional load is similar to a 2.5" SATA SSD powered via USB. So in case you face a crash again, you might test it without that SSD. Difficult in this case to power it externally, but sadly for RPi's there is not other reliable way. |
I purchase the drive back in 2022 and I had no issues until now. |
Yeah as said, sometimes issue appear just after some kernel update or other change, or just randomly when there is some coincidental power/usage peak. Fact is, it does not work reliably, and when facing any kind of stability issues with a USB SSD attached, it is the very first thing to rule out, or verify as culprit. |
Please can you reopen the ticket as the network connection on the raspberry pi just disconnected again. I had to power cycle to get it working again. Thanks |
You can close and reopen issues by yourself, isn't it? 😄 However, as crash happened again, best is to enable permanent system logs, to see what is going on: dietpi-software uninstall 103
mkdir /var/log/journal
reboot After above steps You can limit size of the journal, like 2 files in rotation with the older one removed after 7 days, to have 7-14 days of logs at any time: echo -e 'SystemMaxFiles=2\nMaxFileSec=7days' > /etc/systemd/journald.conf.d/99-size.conf
systemctl restart systemd-journald |
The SD card will not boot up at all now. I will re-image the card today and monitor full system logs as stated in you previous posts. Thanks |
I have re-imaged the pi, installed dietpi, and ran it for several hours. It has just crashed again. How do I retrieve the system logs? Thanks |
@AdamF100001 |
; fi)
|
This is from the current boot session only without a crash or even startup log. The |
Creating a bug report/issue
Required Information
DietPi version | v9.8.0
Distro version | bookworm
Kernel version |
Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
SBC model | Raspberry Pi 4
Power supply used | (EG: 5V 1A Standard power supply)
SD card used | (EG: SanDisk ultra 32GB)
Issue Example
root@DietPi:~# dietpi-services restart
-bash: /boot/dietpi/dietpi-services: Input/output error
Also, clearing a previous command doesn't work.
root@DietPi:~# clear
-bash: clear: command not found
Thanks
The text was updated successfully, but these errors were encountered: