-
-
Notifications
You must be signed in to change notification settings - Fork 761
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
Class 'Spatie\Backup\BackupServiceProvider' not found #569
Comments
Did you install the service provide? Try running php artisan cache:clear
On Tue, 14 Nov 2017 at 08:11, lytesout2376 ***@***.***> wrote:
Hello, I'm getting this error:
Symfony\Component\Debug\Exception\FatalThrowableError: Class
'Spatie\Backup\BackupServiceProvider' not found in
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:208
Stack trace: l#0
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(144):
Illuminate\Foundation\ProviderRepository->createProvider('Spatie\Backup\B...')
#1 <#1>
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(61):
Illuminate\Foundation\ProviderRepository->compileManifest(Array) #2
<#2>
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(549):
Illuminate\Foundation\ProviderRepository->load(Array) #3
<#3>
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17):
Illuminate\Foundation\Application->registerConfiguredProviders() #4
<#4>
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(208):
Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#5 <#5>
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(267):
Illuminate\Foundation\Application->bootstrapWith(Array) #6
<#6>
/home/forge/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(114):
Illuminate\Foundation\Console\Kernel->bootstrap() #7
<#7>
/home/forge/myapp/artisan(35):
Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput),
Object(Symfony\Component\Console\Output\ConsoleOutput)) #8
<#8> {main} [] []
larval-backup.php:
`<?php
return [
'backup' => [
/*
* The name of this application. You can use this name to monitor
* the backups.
*/
'name' => env('APP_URL'),
'source' => [
'files' => [
/*
* The list of directories that should be part of the backup. You can
* specify individual files as well.
*/
'include' => [
base_path('storage'),
],
/*
* These directories will be excluded from the backup.
* You can specify individual files as well.
*/
'exclude' => [
base_path('vendor'),
base_path('node_modules'),
storage_path(),
],
/*
* Determines if symlinks should be followed.
*/
'followLinks' => false,
],
/*
* The names of the connections to the databases that should be part of the backup.
* Currently only MySQL and PostgreSQL databases are supported.
*/
'databases' => [
'mysql',
],
],
'destination' => [
/*
* The disk names on which the backups will be stored.
*/
'disks' => [
'local',
],
],
],
'cleanup' => [
/*
* The strategy that will be used to cleanup old backups.
* The youngest backup will never be deleted.
*/
'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class,
'defaultStrategy' => [
/*
* The number of days for which all backups must be kept.
*/
'keepAllBackupsForDays' => 7,
/*
* The number of days for which all daily backups must be kept.
*/
'keepDailyBackupsForDays' => 16,
/*
* The number of weeks for which all one weekly backup must be kept.
*/
'keepWeeklyBackupsForWeeks' => 8,
/*
* The number of months for which one monthly backup must be kept.
*/
'keepMonthlyBackupsForMonths' => 4,
/*
* The number of years for which one yearly backup must be kept.
*/
'keepYearlyBackupsForYears' => 2,
/*
* After cleaning up backups, remove the oldest backup until
* this number of megabytes has been reached.
*/
'deleteOldestBackupsWhenUsingMoreMegabytesThan' => 5000,
],
],
/*
* In this array you can specify which backups should be monitored.
* If a backup does not meet the specified requirements, the
* UnHealthyBackupWasFound event will be fired.
*/
'monitorBackups' => [
[
'name' => env('APP_URL'),
'disks' => ['local'],
'newestBackupsShouldNotBeOlderThanDays' => 1,
'storageUsedMayNotBeHigherThanMegabytes' => 5000,
],
/*
[
'name' => 'name of the second app',
'disks' => ['local', 's3'],
'newestBackupsShouldNotBeOlderThanDays' => 1,
'storageUsedMayNotBeHigherThanMegabytes' => 5000,
],
*/
],
'notifications' => [
/*
* This class will be used to send all notifications.
*/
'handler' => Spatie\Backup\Notifications\Notifier::class,
/*
* Here you can specify the ways you want to be notified when certain
* events take place. Possible values are "log", "mail", "slack",
* "pushover", and "telegram".
*
* Slack requires the installation of the maknz/slack package.
* Telegram requires the installation of the irazasyed/telegram-bot-sdk package.
*/
'events' => [
'whenBackupWasSuccessful' => ['log'],
'whenCleanupWasSuccessful' => ['log'],
'whenHealthyBackupWasFound' => ['log'],
'whenBackupHasFailed' => ['log', 'mail'],
'whenCleanupHasFailed' => ['log', 'mail'],
'whenUnhealthyBackupWasFound' => ['log', 'mail'],
],
/*
* Here you can specify how emails should be sent.
*/
'mail' => [
'from' => ***@***.***',
'to' => ***@***.***',
],
/*
* Here you can specify how messages should be sent to Slack.
*/
'slack' => [
'channel' => '#backups',
'username' => 'Backup bot',
'icon' => ':robot:',
],
/*
* Here you can specify how messages should be sent to Pushover.
*/
'pushover' => [
'token' => env('PUSHOVER_APP_TOKEN'),
'user' => env('PUSHOVER_USER_KEY'),
'sounds' => [
'success' => env('PUSHOVER_SOUND_SUCCESS', 'pushover'),
'error' => env('PUSHOVER_SOUND_ERROR', 'siren'),
],
],
/*
* Here you can specify how messages should be sent to Telegram Bot API.
*/
'telegram' => [
'bot_token' => env('TELEGRAM_BOT_TOKEN'),
'chat_id' => env('TELEGRAM_CHAT_ID'),
'async_requests' => env('TELEGRAM_ASYNC_REQUESTS', false),
'disable_web_page_preview' => env('TELEGRAM_DISABLE_WEB_PAGE_PREVIEW', true),
],
],
];
`
Running Laravel 5.4.24 and Version 3 of spatie/laravel-backup (I tried
running Version 4, but it wouldn't let me with Laravel 5.4)
Any help would be appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#569>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAdiDbL4ax8Q_rGtsCjff-5KmZRUhlpCks5s2T0ygaJpZM4Qc5Yk>
.
--
Freek Van der Herten https://spatie.be +32 495 84 27 91
|
solved the problem. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, the database dump works just fine, but I'm noticing that the files are not being backed up. When I look at the logs, I'm getting this error:
larvel-backup.php:
`<?php
return [
];
`
config/app.php:
`'providers' => [
Spatie\Backup\BackupServiceProvider::class,
Running Laravel 5.4.24 and Version 3 of spatie/laravel-backup (I tried running Version 4, but it wouldn't let me with Laravel 5.4)
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: