You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open Log in administrator settings, see empty log and HTTP Status 500 for apps/logreader/api/poll?lastReqId= request in browser console
Expected behaviour
Log should be filled with log entries
Actual behaviour
Log stays empty and i see this in docker logs:
NOTICE: PHP message: {"reqId":"hjr6qSydnYtY9pfRvwuj","level":3,"time":"2024-04-16T12:08:16+00:00","remoteAddr":"62.214.75.82","user":"marco","app":"index","method":"GET","url":"/apps/logreader/api/poll?lastReqId=","message":"Error while opening /dev/stdout","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.4.1","exception":{"Exception":"Exception","Message":"Error while opening /dev/stdout","Code":0,"Trace":[{"file":"/var/www/html/apps/logreader/lib/Controller/LogController.php","line":83,"function":"getLogIterator","class":"OCA\\LogReader\\Log\\LogIteratorFactory","type":"->","args":[[0,1,2,3,4]]},{"file":"/var/www/html/apps/logreader/lib/Controller/LogController.php","line":110,"function":"getLastItem","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"poll","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[""]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\LogReader\\Controller\\LogController"],"poll"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\LogReader\\Controller\\LogController"],"poll"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\LogReader\\Controller\\LogController","poll",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["logreader.log.poll"]]},{"file":"/var/www/html/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/logreader/api/poll"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/apps/logreader/lib/Log/LogIteratorFactory.php","Line":58,"message":"Error while opening /dev/stdout","exception":{},"CustomMessage":"Error while opening /dev/stdout"}}
Server configuration
Official Nextcloud FPM docker image
Database:
Postgresql
PHP version:
8.2.18
Nextcloud version: (see Nextcloud admin page)
Where did you install Nextcloud from:
Official Nextcloud FPM docker image
List of activated apps:
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
NOTICE: PHP message: {"reqId":"tynzh2mm5bakBwyJHpYe","level":3,"time":"2024-04-16T12:15:57+00:00","remoteAddr":"XXX","user":"marco","app":"PHP","method":"GET","url":"/apps/logreader/api/poll?lastReqId=","message":"fopen(/dev/stdout): Failed to open stream: No such file or directory at /var/www/html/apps/logreader/lib/Log/LogIteratorFactory.php#51","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.4.1","data":{"app":"PHP"}}
NOTICE: PHP message: {"reqId":"tynzh2mm5bakBwyJHpYe","level":3,"time":"2024-04-16T12:15:57+00:00","remoteAddr":"XXX","user":"marco","app":"index","method":"GET","url":"/apps/logreader/api/poll?lastReqId=","message":"Error while opening /dev/stdout","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.4.1","exception":{"Exception":"Exception","Message":"Error while opening /dev/stdout","Code":0,"Trace":[{"file":"/var/www/html/apps/logreader/lib/Controller/LogController.php","line":83,"function":"getLogIterator","class":"OCA\\LogReader\\Log\\LogIteratorFactory","type":"->","args":[[0,1,2,3,4]]},{"file":"/var/www/html/apps/logreader/lib/Controller/LogController.php","line":110,"function":"getLastItem","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"poll","class":"OCA\\LogReader\\Controller\\LogController","type":"->","args":[""]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\LogReader\\Controller\\LogController"],"poll"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\LogReader\\Controller\\LogController"],"poll"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\LogReader\\Controller\\LogController","poll",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["logreader.log.poll"]]},{"file":"/var/www/html/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/logreader/api/poll"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/apps/logreader/lib/Log/LogIteratorFactory.php","Line":58,"message":"Error while opening /dev/stdout","exception":{},"CustomMessage":"Error while opening /dev/stdout"}}
Browser log
From browser console:
XHRGET
https://NEXTCLOUD_URL/apps/logreader/api/poll?lastReqId=
[HTTP/2 500 256ms]
[WARN] logreader: Unexpected error while polling for new log entries
Object { app: "logreader", level: 1, error: {…} }
app: "logreader"
error: Object { stack: "ge@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:153625\nwv@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:164964\nm@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:168156\nEventHandlerNonNull*Pv</<@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:168228\nPv<@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:167133\ni1@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:170929\nrequest@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:174594\nv0.prototype[e]@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:174899\na4/<@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:148348\nf1@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:193078\nm@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:421878\nsetTimeout handler*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\nasync*m@https://NEXTCLOUD_URL/apps/logreader/js/logreader-main.mjs?v=7b303b73-14:2:422219\n", message: "Request failed with status code 500", name: "AxiosError", … }
The text was updated successfully, but these errors were encountered:
Steps to reproduce
apps/logreader/api/poll?lastReqId=
request in browser consoleExpected behaviour
Log should be filled with log entries
Actual behaviour
Log stays empty and i see this in docker logs:
Server configuration
Official Nextcloud FPM docker image
Database:
Postgresql
PHP version:
8.2.18
Nextcloud version: (see Nextcloud admin page)
Where did you install Nextcloud from:
Official Nextcloud FPM docker image
List of activated apps:
Nextcloud configuration:
Client configuration
Browser:
Operating system:
Logs
Nextcloud log (data/owncloud.log)
Browser log
From browser console:
The text was updated successfully, but these errors were encountered: