Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup via WebDAV failing #5688

Closed
ChurchCRMBugReport opened this issue Mar 6, 2021 · 8 comments
Closed

Backup via WebDAV failing #5688

ChurchCRMBugReport opened this issue Mar 6, 2021 · 8 comments

Comments

@ChurchCRMBugReport
Copy link

Trying to make a backup to a WebDAV location I get this error
Error making API Call to: /api/database/backupRemote
Error text: Slim Application Error
The php.log has this message:
Message: Too few arguments to function ChurchCRM\Backup\BackupJob::__construct(), 3 passed in /home/xxxxxxx/ChurchCRM/api/routes/system/system-database.php on line 45 and exactly 5 expected

Collected Value Title Data
Page Name /v2/dashboard
Screen Size 1080x1920
Window Size 843x1421
Page Size 1506x1421
Platform Information Linux pincushion 4.14.117-grsec-grsec+ #1 SMP Sat May 11 00:40:24 UTC 2019 x86_64
PHP Version 7.4.15
SQL Version 5.7.29-log
ChurchCRM Version 4.3.2
Reporting Browser Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
Prerequisite Status Missing Prerequisites: ["Mod Rewrite or Equivalent"]
Integrity check status {"status":"success"}
@meichthys
Copy link
Contributor

Can you verify that you've enabled WebDAV backups in Admin > System Settings?
image

@RandomSDF
Copy link

RandomSDF commented Oct 17, 2021 via email

@meichthys
Copy link
Contributor

Ok, I just tested it with my Nextcloud instance and can confirm that I get the same issue.

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Nov 15, 2023
@meichthys
Copy link
Contributor

meichthys commented Nov 15, 2023

This still doesn't seem to work for me.
I see the following in the app log (anonymized domain/user/password/ip):

[2023-11-15T02:27:40.460238+00:00] defaultLogger.ERROR: Error copying backup: Exception: Error backing up to remote: necessary data rewind wasn't possible in /home/myuser/church.mychurch.org/ChurchCRM/Backup/BackupJob.php:93 Stack trace: #0 /home/myuser/church.mychurch.org/ChurchCRM/Service/SystemService.php(103): ChurchCRM\Backup\BackupJob->copyToWebDAV('https://nextclo...', 'myuser', 'password...') #1 /home/myuser/church.mychurch.org/api/routes/background.php(22): ChurchCRM\Service\SystemService::runTimerJobs() #2 [internal function]: runTimerJobsAPI(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #3 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func('runTimerJobsAPI', Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #4 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke('runTimerJobsAPI', Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #5 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 /home/myuser/church.mychurch.org/ChurchCRM/Slim/Middleware/VersionMiddleware.php(13): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #9 [internal function]: ChurchCRM\Slim\Middleware\VersionMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #10 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ChurchCRM\Slim\Middleware\VersionMiddleware), Array) #11 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #12 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #13 /home/myuser/church.mychurch.org/ChurchCRM/Slim/Middleware/AuthMiddleware.php(32): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #14 [internal function]: ChurchCRM\Slim\Middleware\AuthMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #15 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(ChurchCRM\Slim\Middleware\AuthMiddleware), Array) #16 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #17 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #18 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #19 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #20 /home/myuser/church.mychurch.org/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #21 /home/myuser/church.mychurch.org/api/index.php(83): Slim\App->run() #22 {main} [] {"url":"/api/background/timerjobs","remote_ip":"97.122.111.22","correlation_id":"65542c9a42502"}

@DAcodedBEAT DAcodedBEAT removed the Stale label Nov 15, 2023
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Dec 16, 2023
@meichthys
Copy link
Contributor

Ping.

@MrClever
Copy link
Collaborator

MrClever commented Dec 16, 2023

This issue is referring to ChurchCRM 4.3.2 which is unsupported now. Does this still happen in on the current release? If so, please open a new issue for that version with any new log information/errors etc (our logging and error reporting has undergone some overhaul since 4.3.2). Then link this issue to the new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants