Closed AlfredSK closed 5 years ago
I changed APP_ENV to production and reloaded the config but it didn't help.
Maybe related? Found some stack traces in my PHP error log:
[20-Apr-2019 07:03:00 UTC] PHP Fatal error: Uncaught InvalidArgumentException: Route [timeline.personal] not defined. in /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:388
Stack trace:
#0 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(779): Illuminate\Routing\UrlGenerator->route('timeline.person...', Array, true)
pixelfed/pixelfed#1 /var/www/pixelfed/storage/framework/views/72cb0445eb3b08a213d5e9d99e08b715d8d97def.php(3): route('timeline.person...')
pixelfed/pixelfed#2 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(43): include('/var/www/pixelf...')
pixelfed/pixelfed#3 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/pixelf...', Array)
pixelfed/pixelfed#4 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/View/View.php(142): Illuminate\View\Engines\CompilerEngine->get('/var/www/pixelf...', Array)#5 /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/View/View.php(125): Illuminate\View\View->getCon in /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 388
And from the Apache error log:
"GET /storage/ HTTP/2.0" 403 301 "https://pixel.libranet.de/discover" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:66.0) Gecko/20100101 Firefox/66.0"
[autoindex:error] [pid 2645:tid 140061133682432] [client 77.64.XXX.XXX:5386] AH01276: Cannot serve directory /var/www/pixelfed/public/storage/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive, referer: https://pixel.libranet.de/discover
From your Apache error log it looks like you have Apache's PHP support misconfigured?
From my understanding it just tells that there is no index.html, index.php, .... In the storage directory. This is in fact the case and it is ok because storage isn't served directly but via the app itself. My general Apache/PHP config works. The other applications on the server are working well with the exact same config. Maybe there is an issue with the .htaccess file. I'll check that again.
@AlfredSK /storage/
is not a valid url, which means the thumbnails are not being generated properly or you did not run php artisan storage:link
.
Hello, I don't know where to ask for some help with the configuration of a Pixelfed instance. If this isn't the right place, please tell me.
I have managed to install a new instance and it seems to work in general. But there are some issues. I tried to follow every documentation I could find but...
First of all I cannot follow my Pixelfed user from Mastodon, Friendica and Pleroma. I can send contact requests to Pixelfed. But on the remote AP nodes the requests remain as 'waiting for approval'. On Pixelfed there is no indication that someone is trying to follow me. When I probe my user from the remote side the result looks ok.
Second issue is about the mail configuration. I wasn't able to find a working config. I tried that 'log' setting (default) and sendmail and SMTP (local postfix and a remote one on another server). Nothing worked. No mails were sent. Nothing in the mail logs. There is another PHP application running on the same machine that is able to send mails w/o issues. So I think I simply don't understand the config in '.env'.
Pixelfed 0.9.0 Installed via composer PHP 7.2.15 Apache2 2.4.29 PHP-FPM MariaDB 10.3.14 (with support for json fields) Redis 4.0.9
My config file:
Output of artisan self-diagnosis:
Any help or hint appreciated.
Regards, Steffen
Edit: updated the content of my config and added the self-diagnosis output.