backup icon indicating copy to clipboard operation
backup copied to clipboard

Backup not starting, stucks at "The creation of a restoring point as been requested and will be initiated soon."

Open marcel151 opened this issue 3 years ago • 14 comments

Unfortunately, the initial Backup is not starting. I also can't get rid of the message above, even after uninstalling and reinstalling the backup app. Issue is described here: https://help.nextcloud.com/t/new-backup-app-setup/129889/3

marcel151 avatar Jan 09 '22 10:01 marcel151

Stuck for how long? In my case it was like this and then started a few hours later at precisely 5pm local time.

mueslo avatar Jan 09 '22 11:01 mueslo

It's now 7 days since I started the initial backup. I don't think that it's doing anything.

marcel151 avatar Jan 09 '22 11:01 marcel151

Did you changed the background jobs from AJAX to Cron ? (https://docs.nextcloud.com/server/23/admin_manual/configuration_server/background_jobs_configuration.html#cron) This solved a similar problem for me.

havi05 avatar Jan 09 '22 11:01 havi05

No, it was still on AJAX and I tried to change it to cron. However, cron don't seem to be working correctly: "Last job execution ran 31 minutes ago. Something seems wrong."

I am running Nextcloud as a Docker container.

EDIT: Ok it seems that triggering the cron file from the host is working. Not very intuitive, but doesn't have something to do with this app. Nervertheless, I am getting Errors in the log.

Error: Undefined variable $user at /var/www/html/custom_apps/backup/lib/Service/ExternalFolderService.php#900
Error: Undefined variable $user at /var/www/html/custom_apps/backup/lib/Service/ExternalFolderService.php#899

marcel151 avatar Jan 09 '22 11:01 marcel151

I also got those error messages, they seem to not directly cause any failures though.

mueslo avatar Jan 09 '22 13:01 mueslo

These errors make the backup process not work entirely. See previous issue #152

Mister-Muffin avatar Jan 09 '22 14:01 Mister-Muffin

These errors make the backup process not work entirely. See previous issue #152

Can also confirm, I'm having the same issue: backup never completes, and I get the error listed in https://github.com/nextcloud/backup/issues/152#issuecomment-1017542650

arg avatar Jan 20 '22 14:01 arg

  • I have just set "cron"
  • I run 23.0.0.10
  • backup App version 1.0.4
  • Enabled files_external app (configured a local dir)

nextcloud.log gives:

I get too: Error: Undefined variable: user at /var/www/nextcloud/apps/backup/lib/Service/ExternalFolderService.php#900

erik78se avatar Jan 31 '22 22:01 erik78se

No, it was still on AJAX and I tried to change it to cron. However, cron don't seem to be working correctly: "Last job execution ran 31 minutes ago. Something seems wrong."

I am running Nextcloud as a Docker container.

EDIT: Ok it seems that triggering the cron file from the host is working. Not very intuitive, but doesn't have something to do with this app. Nervertheless, I am getting Errors in the log.

Error: Undefined variable $user at /var/www/html/custom_apps/backup/lib/Service/ExternalFolderService.php#900
Error: Undefined variable $user at /var/www/html/custom_apps/backup/lib/Service/ExternalFolderService.php#899

Hi,

I have the same issue on docker, can you please tell me which cron file has to be triggered?

thanks

nlovrens avatar Feb 04 '22 09:02 nlovrens

I changed next cloud to cron and used the following container and the following settings to get cron working, but I still have the same issue with the backup not running.

https://hub.docker.com/r/rcdailey/nextcloud-cronjob/

update your docker-compose (or stack if you are using portainer):

  cron:
    image: rcdailey/nextcloud-cronjob
    restart: always
    network_mode: none
    depends_on:
    - app
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock:ro
    - /etc/localtime:/etc/localtime:ro
    environment:
    - NEXTCLOUD_CONTAINER_NAME=app
    - NEXTCLOUD_PROJECT_NAME=nextcloud

dkleehammer avatar Feb 04 '22 17:02 dkleehammer

The problem seems to be related to the user variable not been set. This would happen for example for local storage where authentication is not needed or available?

I'm not an expert so I could be wrong

erik78se avatar Feb 04 '22 18:02 erik78se

Correct, this issue doesn’t seem to be related to cron or any other background jobs implementation. See #152 for details.

On 4 Feb 2022, at 19:13, Erik Lönroth @.***> wrote:

 The problem seems to be related to the user variable not been set. This would happen for example for local storage where authentication is not needed or available?

I'm not an expert so I could be wrong

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

arg avatar Feb 04 '22 18:02 arg

Hi, I think this issue is now opened in another id https://github.com/nextcloud/backup/issues/186 hope, the $user parameter problem will be solved by an expert, because backup is not working at all in my setup. self hosted ubunty php 8.0, NC23 ...

cybergitti avatar Feb 15 '22 16:02 cybergitti

issue with $user parameter is fixed with PR #206.

Vrumf0ndel avatar Mar 21 '22 19:03 Vrumf0ndel