-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Weird corrupption of dietpi commands #3268
Comments
@samolego I guess the RAMdisk failed to load. Could you paste:
|
Here's the output; |
Strange, is /var or /var/tmp a dedicated mount on your system?
|
df
|
@samolego Please try to start the dietpi-ramdisk.service now and check back if it succeeded:
|
No, I don't run DietPi on an external SD, it's installed on the built-in memory (Atomic Pi has 16 GB built-in). I sadly cannot remember how I set up the partitioning, but I'm pretty sure I left it to default configuration during installation process. The starting of dietpi ramdisk hasn't succeeded; ls -l /DietPi And systemctl status dietpi ramdisk.service shows: Loaded: loaded (/etc/systemd/system/dietpi-ramdisk.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-12-18 11:45:16 GMT;
7min ago
Process: 913 ExecStartPre=/bin/mkdir -p /var/tmp/dietpi/logs (code=exited, status=0/SUCCESS)
Process: 914 ExecStart=/bin/dash -c /boot/dietpi/func/dietpi-ramdisk 0 2>&1 >> /var/tmp/dietpi/logs/dietpi-ramdisk.log (code=exited, status=2)
Main PID: 914 (code=exited, status=2)
Dec 18 11:45:16 minecraft-server systemd[1]: Starting DietPi-RAMdisk...
Dec 18 11:45:16 minecraft-server dash[914]: /bin/dash: 1: cannot create /var/tmp/dietpi/logs/dietpi-ramdisk.log: Read-only file system
Dec 18 11:45:16 minecraft-server systemd[1]: dietpi-ramdisk.
service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 18 11:45:16 minecraft-server systemd[1]: dietpi-ramdisk.
service: Failed with result 'exit-code'.
Dec 18 11:45:16 minecraft-server systemd[1]: Failed to start
DietPi-RAMdisk. |
@samolego Not sure why the required fstab entry is missing, however lets try to fix this manually first:
If this works, then edit
(I assume its ext4 file system?)
Now you should be able to start dietpi-ramdisk.service:
This should lead to /DietPi directory being not empty anymore: |
The service started without errors, however, when I rebooted the device, same thing happened as before. /etc/fstab is indeed read only after booting up. The /boot was not empty, however, /DietPi was. So I did all the steps again (removed the lines in /etc/fstab, rebooted and re-added them). So rn I can start ramdisk service again. Any more clues? Thanks for all the help. |
@samolego
File system can be checked via:
|
If I do the steps from your previous comment and reopen SSH, system functions normally. But reboot mounts root fs as RO ... df -T proves that root fs is ext4
Oh, and
|
@samolego
|
Here it is
|
@samolego
|
cat /run/systemd/generator/-.mount
systemctl status systemd-remount-fs
|
Does this match the boot time or better suits to when you remounted the drive manually? R/W should be default, but who knows, to assure it is set, you could adjust the fstab entries: |
Yeah, the time matches boot time, since I have wrong timezone set up rn :-P.
There seem to be no systemd errors ... will try to reboot with added |
@samolego Okay, DietPi boot scripts should then succeeds, including initial firstrun update+install prompts, right?
This is what we call on DietPi-PREP to create a fresh fstab based on current attached drives. It "should" contain root and boot mount, however good to test since it was not the case when you ran the script. If those are missing, revert:
|
So, if I understood correctly - should I reinstall the dietpi with PREP script and after installation procces is finished run those cmds? |
@samolego |
I'm not sure if I presented it to you correctly - if I reboot the system, dietpi cmds die again, so not sure what you meant by dietpi-drive_manager 4
cat /etc/fstab
|
There we have the issue, however this is possible.
You mean when you add the |
No, but I had to restart Anyways, seems to be working now. I will try to reboot a few times :-). Thanks so much! |
Rebooted a few times successfully! I cannot believe it was a package failure. Thanks for all the help & quick responses. Keep being awesome :-P. |
Creating a bug report/issue
I've encountered some strange behaviour; I've updated my system to debian buster and ran dietpi script (#1285) for conversion. Everything went smoothly, but when I rebooted / shutted down and turned on the system, I got the following error;
-bash: /DietPi/dietpi/func/dietpi-globals: No such file or directory [FAILED] DietPi-Login | Failed to load DietPi-Globals. Skipping DietPi login scripts...
This was shown on every SSH instance I opened up, instead of "normal" dietpi info. I thought I've messed sth. up, so I reinstalled the system. Re-ran the dietpi conversion script. Shutted down the system and powered it back on. Same issue. I thouht I messed sth. again and did it the third time. This time I didn't shutdown the system for 3 days, everything was running smoothly. Today I decided to reboot it. Same problem.
Further checking shows that /DietPi folder is empty, leading to none of the commands working.
Required Information
10.2
Linux minecraft-server 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
Atomic Pi
Additional Information (if applicable)
At first updated, then installed freshly twice.
I've done fresh installation of debian buster twice and reproduced it both times.
Steps to reproduce
Expected behaviour
Dietpi commands still existing
Actual behaviour
-bash: /DietPi/dietpi/func/dietpi-globals: No such file or directory [FAILED] DietPi-Login | Failed to load DietPi-Globals. Skipping DietPi login scripts...
The text was updated successfully, but these errors were encountered: