Closed samosquito closed 3 years ago
There was an error with the nextcloud.log. Her is the most recent, should be at the same time the error occurs:
I got the same error with 22.1.0, when trying to copy/move a file from the Files apps, but also when trying to open the file selector to insert an image the Text app.
@samosquito actually my problem was with the wrong nginx custom configuration.
1) Test that you can load https://<your_nextcloud_host>/core/templates/filepicker.html
(should return a static HTML template)
2) Otherwise check your nginx configuration: https://docs.nextcloud.com/server/22/admin_manual/installation/nginx.html
You may want to try to add this block above the location ~ \.php(/|$)
block, this solved my problem but your mileage may vary
location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {
try_files $uri /index.php$request_uri;
# Optional: Don't log access to other assets
access_log off;
}
Based on stissot's comment, I a closing this. Feel free to reopen if you still can reproduce this with the correct webserver configuration and on NC22.1.0 Thanks!
Okay Thank you so much @stissot !
This solved the problem. How did you find that this was the problem? But anyway, very happy to have this solved. :)
Now there ocurred another problem: With the new location block in the vHost of nginx, there cannot be uploaded any images anymore (.jpg, .jpeg, etc.).
*193 rewrite or internal redirection cycle while internally redirecting to "/index.php/remote.php/dav/avat...
Any ideas?
How to use GitHub
Steps to reproduce
Expected behaviour
The files app should ask you for the place you want to copy the file to.
Actual behaviour
An error occurs: "Error loading file picker template: {error}"
Server configuration
Operating system: Linux 5.4.0-80-generic x86_64
Web server: nginx
Database: PostgreSQL 13.3 (Ubuntu 13.3-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
PHP version: 7.4.3
Nextcloud version: 22.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Fresh Install
Where did you install Nextcloud from: https://download.nextcloud.com/server/releases/latest
Signing status: No errors have been found.
Signing status
``` Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here. ```List of activated apps:
App list
``` 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 ```Nextcloud configuration: { "system": { "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "domain.de" ], "datadirectory": "REMOVED SENSITIVE VALUE", "dbtype": "pgsql", "version": "22.0.0.11", "overwrite.cli.url": "https:\/\/domain.de", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "memcache.local": "\OC\Memcache\APCu", "overwriteprotocol": "https", "logtimezone": "Europe\/Berlin", "auth.bruteforce.protection.enabled": false, "filelocking.enabled": "true", "memcache.locking": "\OC\Memcache\Redis", "redis": { "host": "REMOVED SENSITIVE VALUE", "port": 0, "timeout": 0 }, "maintenance": false, "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtpauthtype": "PLAIN", "mail_smtpauth": 1, "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "587", "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "mail_smtpsecure": "tls", "loglevel": 0, "updater.release.channel": "stable", "theme": "", "app_install_overwrite": [ "files_fulltextsearch_tesseract", "bookmarks_fulltextsearch", "whiteboard", "sharerenamer" ], "default_phone_region": "DE" } }
Config report
``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder or Insert your config.php content here. Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …) ```Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: Webdav
Client configuration
Browser: Firefox
Operating system: Linux Mint
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
``` {"reqId":"mYr06ESCgxgSAQSXvZit","level":2,"time":"2021-07-27T20:50:30+00:00","remoteAddr":"77.7.63.164","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.16.1","version":""} {"reqId":"mYr06ESCgxgSAQSXvZit","level":2,"time":"2021-07-27T20:50:30+00:00","remoteAddr":"77.7.63.164","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.16.1","version":""} {"reqId":"gx5KkiNorGRW67IG1Gwn","level":2,"time":"2021-07-27T20:52:47+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":""} {"reqId":"gx5KkiNorGRW67IG1Gwn","level":2,"time":"2021-07-27T20:52:47+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":""} {"reqId":"KGFUBKXzNxcNp1MLkXEx","level":2,"time":"2021-07-27T20:52:47+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"GET","url":"/core/img/background.png?v=2","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":""} {"reqId":"KGFUBKXzNxcNp1MLkXEx","level":2,"time":"2021-07-27T20:52:47+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"GET","url":"/core/img/background.png?v=2","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":""} {"reqId":"JQqIyRniZtifi23FWdCm","level":2,"time":"2021-07-27T20:53:04+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.16.1","version":""} {"reqId":"JQqIyRniZtifi23FWdCm","level":2,"time":"2021-07-27T20:53:04+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.16.1","version":""} {"reqId":"EI2yVwX51UKwinwJjLs5","level":2,"time":"2021-07-27T20:53:51+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":""} {"reqId":"EI2yVwX51UKwinwJjLs5","level":2,"time":"2021-07-27T20:53:51+00:00","remoteAddr":"89.1.181.16","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0","version":""} ```Browser log
Browser log
``` Insert your browser log here, this could for example include: a) jQuery.Deferred exception: c.$filePicker.data(...) is undefined filepicker/<@https://domain.de/core/js/dist/main.js?v=6d65fb5d-0:235:6738 u@https://domain.de/core/js/dist/main.js?v=6d65fb5d-0:25:25700 a/