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

Bug restoring database in 2.4.4 #1651

Closed
saulowulhynek opened this issue Jan 9, 2017 · 7 comments
Closed

Bug restoring database in 2.4.4 #1651

saulowulhynek opened this issue Jan 9, 2017 · 7 comments
Milestone

Comments

@saulowulhynek
Copy link

I try restore a database with tar.gz extension and I get the folow error:

ERROR!
Error making API Call to: /churchcrm/api/database/restore

Error text: unable to decompress gzipped phar archive "/......./public_html/churchcrm/tmp_attach/ChurchCRM-20170109-192219.tar.gz" to temporary file

Stack Trace:

[
"#0 /......./public_html/churchcrm/ChurchCRM/Service/SystemService.php(61): PharData->__construct('/......./...')",
"#1 /......./public_html/churchcrm/api/routes/database.php(14): ChurchCRM\Service\SystemService->restoreDatabaseFromBackup(Array)",
"#2 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#3 /......./public_html/churchcrm/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#4 /......./public_html/churchcrm/vendor/slim/slim/Slim/Route.php(325): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#5 /......./public_html/churchcrm/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#6 /......./public_html/churchcrm/vendor/slim/slim/Slim/Route.php(297): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#7 /......./public_html/churchcrm/vendor/slim/slim/Slim/App.php(443): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#8 /......./public_html/churchcrm/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#9 /......./public_html/churchcrm/vendor/slim/slim/Slim/App.php(337): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#10 /......./public_html/churchcrm/vendor/slim/slim/Slim/App.php(298): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#11 /......./public_html/churchcrm/api/index.php(52): Slim\App->run()",
"#12 {main}"
]

@saulowulhynek saulowulhynek changed the title Bug restoring database Bug restoring database in 2.4.4 Jan 9, 2017
@DawoudIO
Copy link
Contributor

are you sure the software has file access to create that file.

@saulowulhynek
Copy link
Author

ok, @DawoudIO . Good question. I repeated the test with other installation. I saw that i can restore a database without photos and the same problem occurs when I try restore database with photos.

For my hosting service, the default permissions are 755 for folders and 644 for files. I understand that the 755 folder permission gives to software access to write photos.

Is it correct?

@DawoudIO
Copy link
Contributor

DawoudIO commented Jan 16, 2017

I'm having the same issue with the demo data zip... but I don't get the same error as you...

@DawoudIO
Copy link
Contributor

@saulowulhynek do you have php-phar installed?

@DawoudIO
Copy link
Contributor

looks like .tar.gz file do not work... i added an else and all code goes to else for me..

@saulowulhynek
Copy link
Author

No, I don't have php-phar installed. My host don't have this module and don't have any way to install it.

Sorry, i don't understand you other comment ....

@DawoudIO
Copy link
Contributor

@crossan007 we may want to add exec back for people who do not have php-phar

@DawoudIO DawoudIO added this to the 2.5.0 milestone Apr 7, 2017
@DawoudIO DawoudIO closed this as completed Apr 7, 2017
@ghost ghost removed the bug label Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants