-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cannot purge deleted files #8264
Comments
Can you please provide a more complete stack trace from the logs? This info doesn't really tell us very much |
Hi thanks for responding, you mean like enable debugs in .env ? |
administrator@ms001it-inv001:/var/www/snipeit$ tail -f storage/logs/laravel.log |
I notice that I can successfully purge from CLI , php artisan snipeit:purge |
any idea ? |
I have the same issue .I can successfully purge from CLI , php artisan snipeit:purge but not from the webgui. Fresh install. |
I'd need more log info here - the info provided in the stack trace above relates to sending email, which isn't involved in the purging process. |
The entirety of that method just calls the Artisan purge command, so I'm not sure why it would work for cli but not web GUI. public function postPurge()
{
if (! config('app.lock_passwords')) {
if ('DELETE' == Input::get('confirm_purge')) {
// Run a backup immediately before processing
Artisan::call('backup:run');
Artisan::call('snipeit:purge', ['--force' => 'true', '--no-interaction' => true]);
$output = Artisan::output();
return view('settings/purge')
->with('output', $output)->with('success', trans('admin/settings/message.purge.success'));
} else {
return redirect()->back()->with('error', trans('admin/settings/message.purge.validation_failed'));
}
} else {
return redirect()->back()->with('error', trans('general.feature_disabled'));
}
} |
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. |
Please confirm you have done the following before posting your bug report:
I have enabled debug mode
[ x] I have read checked the Common Issues page
Describe the bug
when i tried to purge I get the whoops something went wrong
To Reproduce
try to purge
Expected behavior
purge deleted assets
Server (please complete the following information):
Snipe-IT Version 4.9.4
OS: [Ubuntu18.04]
Web Server: [Apache II]
PHP Version 7.2.32
Desktop (please complete the following information):
OS: [Windows]
Browser [chrome]
Version [84]
Error Messages
tail -f /var/www/snipeit/storage/logs/laravel.log
#97 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#98 /var/www/snipeit/vendor/barryvdh/laravel-cors/src/HandlePreflight.php(29): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#99 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\Cors\HandlePreflight->handle(Object(Illuminate\Http\Request), Object(Closure))
#100 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#101 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#102 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#103 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#104 /var/www/snipeit/public/index.php(58): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#105 {main}
"}
Additional context
Is this a fresh install or an upgrade? fresh
The text was updated successfully, but these errors were encountered: