Closed dallasgroot closed 3 years ago
/home/pi/www/pixelfed/storage/app/public/m/_v2/1/8fb78bfd7-ec88b5/iPUpaMJOhEke/vdGX3IAjgBoitwqhAGtqzo04hYnOUAuH2nYnPzVt.jpg
does exist as well
I've ran
cd pixelfed
sudo chown -R www-data:www-data . # change user/group to http user and http group
sudo find . -type d -exec chmod 755 {} \; # set all directories to rwx by user/group
sudo find . -type f -exec chmod 644 {} \; # set all files to rw by user/group
but i'm still stuck with the same error in my larvel.log.
run ls -la /home/pi/www/pixelfed/storage/app/public/m/_v2/1/8fb78bfd7-ec88b5/iPUpaMJOhEke/
for me?
Thanks for the reply.
$ ls -la /home/pi/www/pixelfed/storage/app/public/m/_v2/1/8fb78bfd7-ec88b5/iPUpaMJOhEke/
total 56
drwxrwxrwx 2 www-data www-data 4096 Jan 24 14:07 .
drwxrwxrwx 43 www-data www-data 4096 Jan 26 16:00 ..
-rwxrwxrwx 1 www-data www-data 48458 Jan 24 14:07 vdGX3IAjgBoitwqhAGtqzo04hYnOUAuH2nYnPzVt.jpg
Is the output.
I'm closing this with no solution. Somewhere along the way i messed up and wasn't able to pin point it, so i restarted from scratch, double checked everything and to my surprise, its working with image posting working woot! Now I just need to play around with settings.
System RP3b+ Raspbian 32-bit Buster
Hey, trying to trouble shoot as to why I cannot write to the public directory. The directories do exist.
`[2021-01-24 22:07:54] production.ERROR: Can't write image data to path (/home/pi/www/pixelfed/storage/app/public/m/_v2/1/8fb78bfd7-ec88b5/iPUpaMJOhEke/vdGX3IAjgBoitwqhAGtqzo04hYnOUAuH2nYnPzVt.jpg) {"exception":"[object] (Intervention\Image\Exception\NotWritableException(code: 0): Can't write image data to path (/home/pi/www/pixelfed/storage/app/public/m/_v2/1/8fb78bfd7-ec88b5/iPUpaMJOhEke/vdGX3IAjgBoitwqhAGtqzo04hYnOUAuH2nYnPzVt.jpg) at /home/pi/www/pixelfed/vendor/intervention/image/src/Intervention/Image/Image.php:150) [stacktrace]
0 /home/pi/www/pixelfed/app/Util/Media/Image.php(167): Intervention\Image\Image->save()
1 /home/pi/www/pixelfed/app/Util/Media/Image.php(93): App\Util\Media\Image->handleImageTransform()
2 /home/pi/www/pixelfed/app/Util/Media/Image.php(81): App\Util\Media\Image->handleResizeImage()
3 /home/pi/www/pixelfed/app/Jobs/ImageOptimizePipeline/ImageResize.php(54): App\Util\Media\Image->resizeImage()
4 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\ImageOptimizePipeline\ImageResize->handle()
5 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
6 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
7 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
8 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\Container\BoundMethod::call()
9 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call()
10 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
11 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
12 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
13 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(118): Illuminate\Bus\Dispatcher->dispatchNow()
14 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue\{closure}()
15 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
16 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(120): Illuminate\Pipeline\Pipeline->then()
17 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware()
18 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call()
19 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(406): Illuminate\Queue\Jobs\Job->fire()
20 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(356): Illuminate\Queue\Worker->process()
21 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(158): Illuminate\Queue\Worker->runJob()
22 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(116): Illuminate\Queue\Worker->daemon()
23 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(100): Illuminate\Queue\Console\WorkCommand->runWorker()
24 /home/pi/www/pixelfed/vendor/laravel/horizon/src/Console/WorkCommand.php(50): Illuminate\Queue\Console\WorkCommand->handle()
25 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel\Horizon\Console\WorkCommand->handle()
26 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
27 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
28 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
29 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\Container\BoundMethod::call()
30 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\Container\Container->call()
31 /home/pi/www/pixelfed/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute()
32 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run()
33 /home/pi/www/pixelfed/vendor/symfony/console/Application.php(971): Illuminate\Console\Command->run()
34 /home/pi/www/pixelfed/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
35 /home/pi/www/pixelfed/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
36 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\Component\Console\Application->run()
37 /home/pi/www/pixelfed/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Console\Application->run()
38 /home/pi/www/pixelfed/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
39 {main}
"} `