nextcloud / maps

🌍🌏🌎 The whole world fits inside your cloud!
https://apps.nextcloud.com/apps/maps
GNU Affero General Public License v3.0
481 stars 88 forks source link

[Bug]: unable to clear photos cache #1123

Open DuneJeeper opened 10 months ago

DuneJeeper commented 10 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Error "Failed to clear photos cache" message.

Steps to reproduce

  1. Click on "clear photo cache"

Expected behavior

Photo cache clears

Installation method

Official Docker image

Operating system

None

PHP engine version

None

Web server

None

Database engine version

MariaDB

Is this bug present after an update or on a fresh install of the server?

None

Is this bug present after an update or on a fresh install of the app?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

"system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.86.23:444",
            "nextcloud.XXXXXX.com",
            "XXXXXX.duckdns.org"
        ],
        "default_phone_region": "US",
        "dbtype": "mysql",
        "version": "27.0.2.1",
        "overwrite.cli.url": "https:\/\/192.168.86.23:444",
        "overwriteprotocol": "https",
        "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\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "filelocking.enabled": "true",
        "mail_smtpmode": "smtp",
        "mail_smtpauth": 1,
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memories.exiftool": "\/config\/www\/nextcloud\/apps\/memories\/exiftool-bin\/exiftool-amd64-musl",
        "memories.vod.path": "\/config\/www\/nextcloud\/apps\/memories\/exiftool-bin\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "loglevel": 2,
        "maintenance": false

List of activated Apps

maps
memories
calendar
deck
photos

Nextcloud Signing status

No response

Nextcloud Logs

No response

Browser Console

No response

Additional info

fail

tacruc commented 9 months ago

@DuneJeeper this mostly happens when the cache was already empty. I agree that the message is misleading.

wargreen commented 4 months ago

Same here, with this in the firefox console :

code: "ERR_BAD_REQUEST"
config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
message: "Request failed with status code 400"
name: "AxiosError"
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
mozAnon: false
mozSystem: false
onabort: function onabort()​​
onerror: function onerror()
onload: null
onloadend: function h()
onloadstart: null
onprogress: null
ontimeout: function ontimeout()
readyState: 4
response: '"Failed to clear Cache"'
responseText: '"Failed to clear Cache"'
responseType: ""
responseURL: "https://cloud.*****.org/apps/maps/photos/clearCache"
responseXML: null
status: 400
statusText: ""
timeout: 0