Fresh install filebackup fails with "prefilebackup script failed with error code 1"

Hi there,

I ran into a filebackup-not-starting issue, I hope someone can help me with.

last week I installed a fresh urbackup server instance (v2.2.8 Debian armhf) on a new RaspberryPi 3B+. On my Windows 10 machine I installed the latest Windows client (v2.2.5). Server and client are seeing each other fine and a backup of the system partition already went through without problems.

Unfortunately whenever I try to start a filebackup, the client is not able to index the files. I always get an error finished with "error - prefilebackup script failed with error code 1".

What I’ve already tried so far:

  • Installed the client on an different Windows 10 machine: Filebackup was created with no problem.
  • Removed and reinstalled client with default settings (full file backup): Always getting the same error.
  • Searched the forum but found no comparable issue.
  • Tinkered with the prefilebackup.bat script: No results.

These are the log files:

Client:

2018-03-23 09:01:01: ClientService cmd: START BACKUP FULL#pw=YPiq<...>1ukk
2018-03-23 09:01:01: rc=0 hasError=true state=0
2018-03-23 09:01:01: ClientService cmd: #Iol<...>Kzy#2PING RUNNING pc_done=&status_id=4&speed_bpms=0&total_bytes=-1&done_bytes=0&paused_fb=1#token=JEr<...>8MWCl
2018-03-23 09:01:01: ClientService cmd: #Iol<...>Kzy#3START FULL BACKUP group=0&running_jobs=1&sha=528&with_permissions=1&with_scripts=1&with_orig_path=1&with_sequence=1&with_proper_symlinks=1&status_id=4&async=1#token=JEr<...>8MWCl
2018-03-23 09:01:01: Async index 9a48<...>22cf
2018-03-23 09:01:01: Removing VSS log data...
2018-03-23 09:01:01: rc=0 hasError=true state=0
2018-03-23 09:01:01: Final path: D:\Work
2018-03-23 09:01:01: Script list at "C:\Program Files\_system\UrBackup\backup_scripts\list.bat" does not exist. Skipping.
2018-03-23 09:01:01: Deleting files... doing full index...
2018-03-23 09:01:01: ClientService cmd: #Iol<...>Kzy#WAIT FOR INDEX async_id=9a48<...>22cf#token=JEr<...>8MWCl
2018-03-23 09:01:01: Wait for async index 9a48<...>22cf
2018-03-23 09:01:02: Async index 9a48<...>22cf finished with "error - prefilebackup script failed with error code 1"
2018-03-23 09:01:02: ClientService cmd: #Iol<...>Kzy#GET VSSLOG
2018-03-23 09:01:02: VSS logdata - 14 bytes
2018-03-23 09:01:02: rc=0 hasError=true state=0
2018-03-23 09:01:02: rc=0 hasError=true state=0
2018-03-23 09:01:03: ClientService cmd: STATUS#pw=YPiq<...>1ukk
2018-03-23 09:01:11: rc=0 hasError=true state=0
2018-03-23 09:01:12: ClientService cmd: #Iol<...>Kzy#2LOGDATA 1521792072 0-1521792062-Starting unscheduled full file backup...
2-1521792063-Constructing of filelist of "Quboid" failed: error - prefilebackup script failed with error code 1
2-1521792072-Backup had an early error. Deleting partial backup.

2018-03-23 09:01:12: rc=0 hasError=true state=0
2018-03-23 09:01:50: ClientService cmd: PONG
2018-03-23 09:01:55: ClientService cmd: STATUS#pw=YPiq<...>1ukk
2018-03-23 09:02:14: ClientService cmd: STATUS DETAIL#pw=YPiq<...>1ukk
<...>
2018-03-23 09:03:31: rc=0 hasError=true state=0
<...>

Server:

2018-03-23 09:01:03: ERROR: Constructing of filelist of "Quboid" failed: error - prefilebackup script failed with error code 1
2018-03-23 09:01:12: ERROR: Backup had an early error. Deleting partial backup.
2018-03-23 09:01:13: WARNING: Exponential backoff: Waiting at least 2h 40m before next file backup

I guess you could try deleting the perfilebackup.bat file. Is there a special virus scanner or something active that prevents that file from being executed?

Hi uroni, thanks for answering,

I am just running Windows Defender, so pretty standard. Nonetheless, the deletion of the prefilebackup.bat file seems to have solved the issue. Funny though, since it came as it were with the standard installation of the client.

Some background info maybe for the devs to help understand the issue*s background: I’m using Windows with a standard user account. I have a separate administrative account, which I use for elevation. I had to explicitly run the client setup as well as the client itself with admin rights. (Obviously the software itself does not check the account priviliges thoroughly.) But the initially mentioned issue with prefilebackup.bat occurred nonetheless.

However I think the initial issue is solved with deleting the prefilebackup.bat. Let’s hope the filebackup works now. (The client is indexing files for 15 minutes now - seems like a good sign.)

So once again, thanks for the hint. :smile: