Dietpi Backup broken in 6.29.2?

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

Can you stop proftpd manually without hanging?
Can you stop all services without hanging?
Is there any log for proftpd or any other service?

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.

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

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?

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?

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#

I updated to 6.30 to no avail.

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

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:

DietPi-Backup | Free space check

This is where it stops for me.

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.

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

Output:

 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?

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.

┌─────────────────────────────────────────────────┤ 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]                        │

Thanks for the explanation.

I did exclude proftpd successfully.

Now the line for proftpd is gone and the backup stops at the second last service (redisserver in my case).

Shall I exclude all other services as well?

Well you could try to exclude all services but honestly I don’t think it will bring anything. Looks like your backup is going to fail somewhere between stopping the services and checking the space. Maybe you can try to change backup location? I guess it’s a mounted HDD currently. If you would have sufficient space on your SD card, you could select this as backup location?

I picked the SD card as location with the same result as before. :frowning:

It all started going wrong with the update to 6.29.2 fwiw.

Any other Idea?

hmm quite strange. For me it was working on 6.29.2 as well as on 6.30 now.

MichaIng would have an idea where it could stuck

Looking forward to hear some thoughts.

At minimum it would be helpful to know where to look for logs to (try to) troubleshoot in the meantime.

Many thanks.

I thought i was encountering the same issue in 6.31, was about to post here. Dietpi backup would hang on stopping services.

I checked htop for services, tried running again, no luck. Then it just suddenly started backing up. Probably took around 15 minutes or so hanging around stopping services.

probably it took quite some time to scan all files and directories.

Yes, perhaps, but perhaps Totila might fix his own issue if he simply left the backup run for a while?