-
Notifications
You must be signed in to change notification settings - Fork 57
app.CRITICAL: [dizda-backup] Unexpected exception. #83
Comments
Hello, Can you please format your conf, help can be found here https://guides.github.com/features/mastering-markdown/ |
What do your logs say? |
When i execute this command : "app/console dizda:backup:start" or this one : "php app/console --env=prod dizda:backup:start" I have this error : "[2015-11-09 10:50:55] app.CRITICAL: [dizda-backup] Unexpected exception. prod.log : dev.log thanks, |
I think my way is wrong but i don't know which way is the good one. |
Start debugging MySQL.php on line 55 and see where it crashes. @dizda I believe we need to start throwing a lot more (and different kind of) exceptions. |
When i dump getCommand in mysql.php i have this: |
Now i have this error : It's better than before |
@Nyholm Agree. Unexpected exception is a way too large. |
@yohann-teisseire What did you change? |
In Database.php $this->dataPath = C:\wamp\www\trunkRefonte\app\cache\prod/backup/mysql/symfony.sql" |
In Database.php, when i dump this function, send null |
Yeah, I figured it had something to do with windows =) PS. When pasting code in you should use the "backticks". See under Syntax highlitning |
Yeah, i use windows, so now my problem is just after "Compressing to archive using Tar" |
When i add a var_dump " var_dump($this->getCommand());die;", i have a folder created in "app/cache/prod/backup/mysql" but it's empty, without var_dump, the folder isn't created.
|
After multiple dump, preparePath send 'null', i think the problem is here.
|
I have put my symfony app on my server, now it's better, errors of yesterday have disappeared. I think i'm very close now |
You've can not copy to a HTTP url, you should provide the local path of the server. |
i have put : path: 'var/www/html/recette/web/uploads', but the issue is still the same PHP Warning: copy(var/www/html/recette/web/uploads/hostname_2015-11-10_12-05-46.tar): failed to open stream: No such file or directory in /var/www/html/recette/vendor/dizda/cloud-backup-bundle/Dizda/CloudBackupBundle/Client/LocalClient.php on line 30 [Symfony\Component\Debug\Exception\ClassNotFoundException] |
Ok 2 things, you've forget a slash in front of your path, it should be Then, you just pointed out an error on LocalClient file, https://github.com/dizda/CloudBackupBundle/blob/master/Client/LocalClient.php#L32 should be \Exception with an anti-slash. |
Great, my backup is ok. thank you very much to both of you for your help |
FYI https://github.com/dizda/CloudBackupBundle/releases/tag/3.2.1 released for the exception's namespace. |
Hi,
This is my conf :
config.xml
dizda_cloud_backup:
# By default backup files will have your servers hostname as prefix
# such as: hostname_2014-01-01_21-08-39.tar
output_file_prefix: hostname
timeout: 300
processor:
type: tar # Required: tar|zip|7z
options:
compression_ratio: 6
password: qwerty
# Split into many files of
split_size
bytessplit:
enable: false # Default false
split_size: 1000 # Make each zip files no larger than "split_size" in bytes
storages: [ Gaufrette ] # Which cloud storages will upload split files
folders: [ web/bdd ]
cloud_storages:
# Local storage definition
local:
path: C:\wamp\www\trunkRefonte
gaufrette:
service_name: # Gaufrette filesystem(s) service name
- foo_filesystem
databases:
mysql: # When no parameters is specified under mysql, the bundle taking those from parameters.yml
knp_gaufrette:
adapters:
foo:
local:
directory: 'C:\wamp\www\trunkRefonte'
filesystems:
bar:
adapter: foo
alias: foo_filesystem
I would like to backup my bdd in localhost, but i think my problem is in adapters/foo/local/directory or cloud_storages/local/path. I do not know which path I ought to put in this section.
Could you help me ?
Thanks
The text was updated successfully, but these errors were encountered: