Dietpi: [FAILED] DietPi-PREP | Unable to continue, DietPi-PREP will now terminate.

Created on 6 Feb 2019  ยท  8Comments  ยท  Source: MichaIng/DietPi


Details:

  • Date | Tue 5 Feb 17:45:51 MST 2019
  • Bug report | N/A
  • DietPi version | v6.20.0 (Fourdee/master)
  • Img creator | n/a
  • Pre-image | n/a
  • SBC device | NULL (index=21)
  • Kernel version | #1 SMP Debian 4.9.130-2 (2018-10-27)
  • Distro | stretch (index=4)
  • Command | chmod -R +x /DietPi/dietpi /var/lib/dietpi/services /etc/cron.daily/dietpi /etc/cron.hourly/dietpi
  • Exit code | 1
  • Software title | DietPi-PREP

Steps to reproduce:

  1. Install Debian minimal via netinstall
  2. Install pre-requisites using scripts provided on page:
    apt-get update; apt-get install -y systemd-sysv ca-certificates sudo wget locales --reinstall
  3. Run the provided script pieces:
wget https://raw.githubusercontent.com/Fourdee/DietPi/master/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
chmod +x PREP_SYSTEM_FOR_DIETPI.sh
./PREP_SYSTEM_FOR_DIETPI.sh
  • Install begins
  • Insert name for credit
  • Insert "build from" info
  • Select build (Master, beta, or dev)

    • selected master

  • Select "current device this is being installed on

    • selected "21 : x86_64 Native PC" [Installing on HP EliteDesk]

  • Select wi-fi option [0 : I do not...]
  • "Please select a distro version (Currently installed: - 4 stretch" [select "4 : Stretch]

Expected behaviour:

  • Install should begin

The minimal Debian install should be converted into a DietPi install

Actual behaviour:


    1. First an error message:

      https://i.imgur.com/o5SMzQu.png


    1. The script fails:

--------------------------------------------------------------------
- DietPi has encounted an error, and, is unable to continue        -
- Please create a ticket: https://github.com/Fourdee/DietPi/issues -
- Copy and paste the BLUE lines below, into the ticket             -
--------------------------------------------------------------------

Extra details:

  • Installing, updating, and running _locate_ finds this under the /boot/dietpi menu:
/boot/dietpi
/boot/dietpi-CHANGELOG.txt
/boot/dietpi-README.md
/boot/dietpi.txt
/boot/dietpi/.install_stage
/boot/dietpi/boot
/boot/dietpi/dietpi-autostart
...

Additional logs:

Log file contents:
chmod: cannot access '/DietPi/dietpi': No such file or directory

Bug PREP Solution available

Most helpful comment

@kuerious @Fourdee
I already merged it into master. Okay since it does not change any remaining DietPi code.

2506 is a pull request, selecting "Files changed" shows the changed/fixed code line(s).

At the top you see "master from beta", which means that I merged the fixed code from beta branch (where I added the commit first) into the master branch (release branch).

All 8 comments

So I plugged in the following:

mkdir /DietPi/dietpi/
ln -s /boot/dietpi/ /DietPi/dietpi

Attempted the script again, this time I get the following:

systemctl start dietpi-ramdisk Exit code 1
Job for dietpi-ramdisk.service failed because the control process exited with error code.
See "systemctl status dietpi-ramdisk.service" and "journalctl -xe" for details.

So, yeah ... I'm unsure about what to do now.

@kuerious
Thanks for your report. Jep indeed a wrong chmod target, I fixed it and merged into master: https://github.com/Fourdee/DietPi/pull/2506
Just redo with the steps, which will download the fixed DietPi-PREP version.

I mark as closed, feel free to reopen, if required.

This bug #2503 points to bug #2506 ... which points back here, to 2503.

Where's the fix?

@kuerious

Use the dev branch for PREP script, then select master during GUI:

wget https://raw.githubusercontent.com/Fourdee/DietPi/dev/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
chmod +x PREP_SYSTEM_FOR_DIETPI.sh
./PREP_SYSTEM_FOR_DIETPI.sh

@kuerious @Fourdee
I already merged it into master. Okay since it does not change any remaining DietPi code.

2506 is a pull request, selecting "Files changed" shows the changed/fixed code line(s).

At the top you see "master from beta", which means that I merged the fixed code from beta branch (where I added the commit first) into the master branch (release branch).

@MichaIng

Ah nice one, thanks ๐Ÿ‘

Been unwell last few days, trying to catch up ๐Ÿ˜ƒ

I have the same problem installing the latest version to my ARM device.

DietPi-PREP: G_AGUP
โ”‚ - Exit code: 100
โ”‚ - DietPi version: v6.22.3 (MichaIng/master) | HW_MODEL:22 | HW_ARCH:3 | DISTRO:4
โ”‚ - Image creator: n/a
โ”‚ - Pre-image: n/a

@speeedturtle
This is not the same error ๐Ÿ˜‰. Please paste the full output or rerun the plain APT command and paste all output of it:
apt update

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fourdee picture Fourdee  ยท  3Comments

Fourdee picture Fourdee  ยท  3Comments

Fourdee picture Fourdee  ยท  3Comments

aesirteam picture aesirteam  ยท  3Comments

Fourdee picture Fourdee  ยท  3Comments