Dietpi Backup broken in 6.29.2?

Having issues with your DietPi installation, or, found a bug? Post it here.
Totila
Posts: 25
Joined: Sun Aug 04, 2019 8:29 am

Dietpi Backup broken in 6.29.2?

Post by Totila »

Hi,

It seems that with latest 6.29.2 dietpi-backup isnt running through, neither via UI or when launched via dietpi-backup 1.
Backup settings are unchanged from 6.28 (with which everything worked fine)

For me, it hangs at stopping proftpd service. No Error message appears.

How could I investigate this? Which Log files would I find information in?
Is this a known issue?

Thanks in advance.

Cheers,
T
trendy
Posts: 124
Joined: Tue Feb 25, 2020 2:54 pm

Re: Dietpi Backup broken in 6.29.2?

Post by trendy »

Can you stop proftpd manually without hanging?
Can you stop all services without hanging?
Is there any log for proftpd or any other service?
Totila
Posts: 25
Joined: Sun Aug 04, 2019 8:29 am

Re: Dietpi Backup broken in 6.29.2?

Post by Totila »

Can you stop proftpd manually without hanging?
Yes.
Can you stop all services?
Not 100%, as via dietpi-services stop it halts again at/after stopping proftpd.
At least, this is indicated by the last message within the terminal.
I.e. "[ OK ] DietPi-Services | stop : proftpd"
No more output after that (even when waiting 10 Minutes)

Checking the status shows that proftpd was stopped, but the backup doesnt progress from there.

Hope that makes sense.
User avatar
Joulinar
Posts: 2072
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi Backup broken in 6.29.2?

Post by Joulinar »

If you are in a hanging status, can you open a 2nd CLI and check if and what is running? Maybe using htop or ps command
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 25
Joined: Sun Aug 04, 2019 8:29 am

Re: Dietpi Backup broken in 6.29.2?

Post by Totila »

I did, but nothing suspicious, no 100% cpu process or the like. Still no progress of the backup.

Can you confirm backup runs through on your Pi?
User avatar
Joulinar
Posts: 2072
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi Backup broken in 6.29.2?

Post by Joulinar »

Yes it's working for me. As you can see, It's stopping quite a lot of applications.

Can you update to 6.30 and check again?

Code: Select all

root@DietPi3:/mnt# dietpi-backup
[ INFO ] DietPi-Backup | Checking for required APT packages: rsync
[  OK  ] DietPi-Backup | All required APT packages are already installed.

 DietPi-Backup
─────────────────────────────────────────────────────
 Mode: Backup

[  OK  ] DietPi-Backup | DietPi-Userdata validation: /mnt/dietpi_userdata
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : netdata
[  OK  ] DietPi-Services | stop : roonbridge
[  OK  ] DietPi-Services | stop : networkaudiod
[  OK  ] DietPi-Services | stop : gmrender
[  OK  ] DietPi-Services | stop : squeezelite
[  OK  ] DietPi-Services | stop : shairport-sync
[  OK  ] DietPi-Services | stop : mpd
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php7.3-fpm
[  OK  ] DietPi-Services | stop : mariadb
[  OK  ] DietPi-Services | stop : proftpd
[  OK  ] DietPi-Services | stop : avahi-daemon
[  OK  ] DietPi-Backup | Free space check: path=/mnt/dietpi-backup/data | available=26396 MiB | required=34 MiB
[ INFO ] DietPi-Backup | Backup /mnt/dietpi-backup: in progress, please wait...
sending incremental file list
...
sent 100,823,202 bytes  received 132,833 bytes  1,887,028.69 bytes/sec
total size is 2,005,503,820  speedup is 19.87
[  OK  ] DietPi-Backup: Backup Completed
[ SUB1 ] DietPi-Services > start
[  OK  ] DietPi-Services | start : avahi-daemon
[  OK  ] DietPi-Services | start : proftpd
[  OK  ] DietPi-Services | start : mariadb
[  OK  ] DietPi-Services | start : php7.3-fpm
[  OK  ] DietPi-Services | start : lighttpd
[  OK  ] DietPi-Services | start : mpd
[  OK  ] DietPi-Services | start : shairport-sync
[  OK  ] DietPi-Services | start : squeezelite
[  OK  ] DietPi-Services | start : gmrender
[  OK  ] DietPi-Services | start : networkaudiod
[  OK  ] DietPi-Services | start : roonbridge
[  OK  ] DietPi-Services | start : netdata
[  OK  ] DietPi-Services | start : cron
root@DietPi3:/mnt#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 25
Joined: Sun Aug 04, 2019 8:29 am

Re: Dietpi Backup broken in 6.29.2?

Post by Totila »

I updated to 6.30 to no avail.

My list of services is shorter, but I believe all services are stopped correctly.

Code: Select all


root@DietPi:~# dietpi-backup

 DietPi-Backup
─────────────────────────────────────────────────────
 Mode: Backup
[  OK  ] DietPi-Backup | DietPi-Userdata validation: /mnt/media1/dietpi_userdata
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : rpimonitor
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php7.3-fpm
[  OK  ] DietPi-Services | stop : mariadb
[  OK  ] DietPi-Services | stop : redis-server
[  OK  ] DietPi-Services | stop : proftpd
But, I dont get:

Code: Select all

DietPi-Backup | Free space check
This is where it stops for me.
User avatar
Joulinar
Posts: 2072
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi Backup broken in 6.29.2?

Post by Joulinar »

can you try to stopp proftpd manuell and try to run dietpi-backup? As well you could exclude proftpd from being stopped during backup. That means we could go to skip it. But I'm not sure if it proftpd or just that the backup script did not continue after all services stopped.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 25
Joined: Sun Aug 04, 2019 8:29 am

Re: Dietpi Backup broken in 6.29.2?

Post by Totila »

I stopped proftpd manually and launched backup giving me the same result. For completeness reasons:

Output:

Code: Select all

 DietPi-Backup
─────────────────────────────────────────────────────
 Mode: Backup

[  OK  ] DietPi-Backup | DietPi-Userdata validation: /mnt/media1/dietpi_userdata
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : rpimonitor
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php7.3-fpm
[  OK  ] DietPi-Services | stop : mariadb
[  OK  ] DietPi-Services | stop : redis-server
[  OK  ] DietPi-Services | stop : proftpd
How do I exclude proftpd from being stopped during backup?
User avatar
Joulinar
Posts: 2072
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi Backup broken in 6.29.2?

Post by Joulinar »

go to dietpi-services and select proftpd. Than you should be able to exclude proftpd from automated DietPi-Services control. This affects starts/stops/restarts during DietPi-Software installs, DietPi-Update, DietPi-Backup and similar maintenance tasks.

Code: Select all

┌─────────────────────────────────────────────────┤ DietPi-Services ├──────────────────────────────────────────────────┐
│ Please select an option for proftpd:                                                                                 │
│                                                                                                                      │
│                                               ●─ Service Control ───────────────────────────●                        │
│                       State                   : [active]                                                             │
│                       Mode                    : [DietPi controlled]                                                  │
│                       Include/Exclude         : [excluded]                                                           │
│                       Status                  : Display systemd status log                                           │
│                       Edit                    : [/run/systemd/generator.late/proftpd.service]                        │
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply