friendica - Link zum Originalbeitrag

!Friendica Support
Moin zusammen,
gestern bin ich mit meinem Testnode auf die Dev. umgezogen. Das sieht alles schon sehr gut aus. Derzeit habe ich aber Probleme mit den Profilbildern

#0 /var/www/html/friend/src/BaseModule.php(245): Friendica\Module\Photo->rawContent()
#1 /var/www/html/friend/src/Module/BaseApi.php(96): Friendica\BaseModule->run()
#2 /var/www/html/friend/src/App.php(543): Friendica\Module\BaseApi->run()
#3 /var/www/html/friend/src/App.php(180): Friendica\App->runFrontend()
#4 /var/www/html/friend/index.php(22): Friendica\App->processRequest()
#5 {main}

Rechte stimmen alle. Kann jemand das Problem bestätigen?

Als Antwort auf Matthias

Du könntest den Log-Level auf "debug" stellen. Dann rufst Du eine Datei ab, die in diesem Fehler endet. Den Pfad merkst Du Dir (der hintere Teil mit dem Pfad). Dann schaust Du in der Logdatei nach "Request received" in Verbindung mit dem Pfad. Da sollte es dann mindestens eine Zeile geben.

In dieser Zeile gibt es die Variable "request-id". Den Wert dahinter merkst Du Dir. (Das ist ein String wie "67a3d7b9f2b36"). Dann suchst Du in der Logdatei nach allen Einträgen mit diesem Wert. Dann sollte man erkennen, was das System tun wollte und woran es gescheitert ist.

Als Antwort auf Michael 🇺🇦

So was hier?

2025-02-08T11:05:10Z app [DEBUG]: Request received {"address":"2a02:2454:9930:ef00:6c62:bb75:4dc3:7a87","request":"GET /photo/contact/48/63cf76bb859e51959069f7a45c39f56ed9ab2337?ts=1736462958 HTTP/2.0","referer":"","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0"} - {"file":"App.php","line":429,"function":"runFrontend","request-id":"67a73a660e8e2","stack":"App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: Known frontend found - accept {"isCrawler":false,"agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0","method":"GET","uri":"/photo/contact/48/63cf76bb859e51959069f7a45c39f56ed9ab2337?ts=1736462958","parts":[]} - {"file":"blockbot.php","line":72,"function":"blockbot_init_1","request-id":"67a73a660e8e2","stack":"blockbot_init_1 (207), Hook::callSingle (183), Hook::callAll (109), HookEventBridge::callHook (72), HookEventBridge::onNamedEvent (230), EventDispatcher::callListeners (59), EventDispatcher::dispatch (35), EventDispatcher::dispatch (455), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: No HTTP_SIGNATURE header [] - {"file":"HTTPSignature.php","line":620,"function":"getSigner","request-id":"67a73a660e8e2","stack":"HTTPSignature::getSigner (461), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: No HTTP_SIGNATURE header [] - {"file":"HTTPSignature.php","line":620,"function":"getSigner","request-id":"67a73a660e8e2","stack":"HTTPSignature::getSigner (202), OpenWebAuth::addVisitorCookieForHTTPSigner (65), Photo::rawContent (245), BaseModule::run (96), BaseApi::run (571), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: Request start. {"url":"https://lemmy.ca/pictrs/image/lCsTSXQ1wA.jpg","method":"head"} - {"file":"HttpClient.php","line":60,"function":"request","request-id":"67a73a660e8e2","stack":"HttpClient::request (192), HttpClient::head (59), ParseUrl::getContentType (352), Photo::getPhotoById (111), Photo::rawContent (245), BaseModule::run (96), BaseApi::run (571), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: http request config. {"url":"https://lemmy.ca/pictrs/image/lCsTSXQ1wA.jpg","method":"head","options":{"headers":{"User-Agent":"Friendica/2025.02-dev DatabaseVersion/1577 Request/ContentTypeChecker/1 +https://libranet.de","Accept":"image/webp,image/png,image/jpeg,image/gif,image/*;q=0.9,*/*;q=0.8"},"on_headers":{},"sink":"/tmp/libranet.de/http-YPkkV7"}} - {"file":"HttpClient.php","line":165,"function":"request","request-id":"67a73a660e8e2","stack":"HttpClient::request (192), HttpClient::head (59), ParseUrl::getContentType (352), Photo::getPhotoById (111), Photo::rawContent (245), BaseModule::run (96), BaseApi::run (571), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: Request stop. {"url":"https://lemmy.ca/pictrs/image/lCsTSXQ1wA.jpg","method":"head"} - {"file":"HttpClient.php","line":183,"function":"request","request-id":"67a73a660e8e2","stack":"HttpClient::request (192), HttpClient::head (59), ParseUrl::getContentType (352), Photo::getPhotoById (111), Photo::rawContent (245), BaseModule::run (96), BaseApi::run (571), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: Expected Content-Type {"mime":"image/jpeg","url":"https://lemmy.ca/pictrs/image/lCsTSXQ1wA.jpg"} - {"file":"Photo.php","line":380,"function":"getPhotoById","request-id":"67a73a660e8e2","stack":"Photo::getPhotoById (111), Photo::rawContent (245), BaseModule::run (96), BaseApi::run (571), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: Invalid reference for photo {"photo":{"id":"","uid":"","contact-id":"","guid":"","resource-id":"","hash":"","created":"","edited":"","title":"","desc":"","album":"","photo-type":"","filename":"","type":"image/jpeg","height":48,"width":48,"datasize":"","blurhash":null,"scale":"","profile":"","allow_cid":"","allow_gid":"","deny_cid":"","deny_gid":"","accessible":"","backend-class":"ExternalResource","backend-ref":"{\"url\":\"\",\"uid\":0}","updated":"","cacheable":true},"exception":"Friendica\\Core\\Storage\\Exception\\ReferenceStorageException: Invalid reference {\"url\":\"\",\"uid\":0}, cannot retrieve URL in /var/www/html/libranet/src/Core/Storage/Type/ExternalResource.php:43\nStack trace:\n#0 /var/www/html/libranet/src/Model/Photo.php(258): Friendica\\Core\\Storage\\Type\\ExternalResource->get()\n#1 /var/www/html/libranet/src/Module/Photo.php(150): Friendica\\Model\\Photo::getImageDataForPhoto()\n#2 /var/www/html/libranet/src/BaseModule.php(245): Friendica\\Module\\Photo->rawContent()\n#3 /var/www/html/libranet/src/Module/BaseApi.php(96): Friendica\\BaseModule->run()\n#4 /var/www/html/libranet/src/App.php(571): Friendica\\Module\\BaseApi->run()\n#5 /var/www/html/libranet/src/App.php(187): Friendica\\App->runFrontend()\n#6 /var/www/html/libranet/index.php(22): Friendica\\App->processRequest()\n#7 {main}"} - {"file":"Photo.php","line":272,"function":"getImageDataForPhoto","request-id":"67a73a660e8e2","stack":"Photo::getImageDataForPhoto (150), Photo::rawContent (245), BaseModule::run (96), BaseApi::run (571), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: Request processed with exception {"response":404,"address":"2a02:2454:9930:ef00:6c62:bb75:4dc3:7a87","request":"GET /photo/contact/48/63cf76bb859e51959069f7a45c39f56ed9ab2337?ts=1736462958 HTTP/2.0","referer":"","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0","duration":"0.174"} - {"file":"App.php","line":583,"function":"runFrontend","request-id":"67a73a660e8e2","stack":"App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}
2025-02-08T11:05:10Z app [DEBUG]: Runtime {"method":"GET","module":"photo","runtime":"0.177","load":"10.59","origin":"exit","signature":false,"request":"/photo/contact/48/63cf76bb859e51959069f7a45c39f56ed9ab2337?ts=1736462958"} - {"file":"Page.php","line":109,"function":"logRuntime","request-id":"67a73a660e8e2","stack":"Page::logRuntime (407), System::exit (107), HTTPException::rawContent (585), App::runFrontend (187), App::processRequest (22)","uid":"03600a","process_id":214493}