"Unknown error" on log in page

Context

The site is up and running normally but I can’t log in randomly in the admin panel.
It’s good to know that I run a lot of Ghost site in parallel using docker. It’s impacting this site only.
I empty my cache browser and tried to log again.

Error

Failed to load resource: the server responded with a status of 403 ().
Autofocus processing was blocked because a document already has a focused elements.

Screenshot GUI

general info

  • What’s your URL? https://mediaarts.org.au/
  • What version of Ghost are you using? 3.42.4
  • How was Ghost installed and configured? In docker-alpine
  • What Node version, database, OS & browser are you using? node 12, ubuntu 16, chrome
  • What errors or information do you see in the console? see above

Thank you in advance!

logs

{
  "name": "Log",
  "hostname": "10000025-mediaarts-ghost",
  "pid": 7,
  "level": 50,
  "err": {
    "id": "4b2fd5f0-9cb2-11eb-82cf-5d54206da306",
    "domain": "https://mediaarts.org.au",
    "code": null,
    "name": "BadRequestError",
    "statusCode": 400,
    "level": "normal",
    "message": "Error parsing filter",
    "stack": "BadRequestError: Error parsing filter\n    at new BadRequestError (/var/lib/ghost/versions/3.42.4/node_modules/@tryghost/errors/node_modules/ghost-ignition/lib/errors/index.js:113:23)\n    at Child.applyDefaultAndCustomFilters (/var/lib/ghost/versions/3.42.4/core/server/models/plugins/filter.js:122:23)\n    at Function.getFilteredCollection (/var/lib/ghost/versions/3.42.4/core/server/models/base/index.js:852:28)\n    at Function.findPage (/var/lib/ghost/versions/3.42.4/core/server/models/base/index.js:928:37)\n    at Object.query (/var/lib/ghost/versions/3.42.4/core/server/api/v3/posts-public.js:33:32)\n    at Object.query (/var/lib/ghost/versions/3.42.4/core/server/api/shared/pipeline.js:156:24)\n    at /var/lib/ghost/versions/3.42.4/core/server/api/shared/pipeline.js:243:35\n    at tryCatcher (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:547:31)\n    at Promise._settlePromise (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:604:18)\n    at Promise._settlePromise0 (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:649:10)\n    at Promise._settlePromises (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:729:18)\n    at _drainQueueStep (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/async.js:93:12)\n    at _drainQueue (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/async.js:86:9)\n    at Async._drainQueues (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/async.js:102:5)\n    at Immediate.Async.drainQueues [as _onImmediate] (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/async.js:15:14)\n    at processImmediate (internal/timers.js:461:21)\n\nError: Query Error: unexpected character in filter at char 31\n...c2cd800065d8393+tag:)+type:post\n-----------------------^\nExpecting 'NOT', 'LBRACKET', 'NULL', 'TRUE', 'FALSE', 'NUMBER', 'LITERAL', 'STRING', 'GT', 'LT', 'GTE', 'LTE', got 'RPAREN'\n    at Parser.parser.parseError (/var/lib/ghost/versions/3.42.4/node_modules/@nexes/nql-lang/dist/parser.js:328:12)\n    at Parser.parse (/var/lib/ghost/versions/3.42.4/node_modules/@nexes/nql-lang/dist/parser.js:245:22)\n    at Object.exports.parse (/var/lib/ghost/versions/3.42.4/node_modules/@nexes/nql-lang/lib/nql.js:18:44)\n    at Object.api.parse (/var/lib/ghost/versions/3.42.4/node_modules/@nexes/nql/lib/nql.js:15:31)\n    at Object.api.querySQL (/var/lib/ghost/versions/3.42.4/node_modules/@nexes/nql/lib/nql.js:49:44)\n    at Builder.<anonymous> (/var/lib/ghost/versions/3.42.4/core/server/models/plugins/filter.js:119:24)\n    at Object.query (/var/lib/ghost/versions/3.42.4/node_modules/bookshelf/lib/helpers.js:57:14)\n    at Child.query (/var/lib/ghost/versions/3.42.4/node_modules/bookshelf/lib/model.js:1256:22)\n    at Child.applyDefaultAndCustomFilters (/var/lib/ghost/versions/3.42.4/core/server/models/plugins/filter.js:112:22)\n    at Function.getFilteredCollection (/var/lib/ghost/versions/3.42.4/core/server/models/base/index.js:852:28)\n    at Function.findPage (/var/lib/ghost/versions/3.42.4/core/server/models/base/index.js:928:37)\n    at Object.query (/var/lib/ghost/versions/3.42.4/core/server/api/v3/posts-public.js:33:32)\n    at Object.query (/var/lib/ghost/versions/3.42.4/core/server/api/shared/pipeline.js:156:24)\n    at /var/lib/ghost/versions/3.42.4/core/server/api/shared/pipeline.js:243:35\n    at tryCatcher (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:547:31)\n    at Promise._settlePromise (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:604:18)\n    at Promise._settlePromise0 (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:649:10)\n    at Promise._settlePromises (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/promise.js:729:18)\n    at _drainQueueStep (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/async.js:93:12)\n    at _drainQueue (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/async.js:86:9)\n    at Async._drainQueues (/var/lib/ghost/versions/3.42.4/node_modules/bluebird/js/release/async.js:102:5)"
  },
  "msg": "Error parsing filter",
  "time": "2021-04-13T23:45:14.451Z",
  "v": 0
}

Can you see if you can find the 500 error? The error you shared is a 400 error :wink:

Usually, a 500 error will have the name InternalServerError

Aside: It looks like the 400 error is caused by an API request with a malformed filter:

Error: Query Error: unexpected character in filter at char 31
...c2cd800065d8393+tag:)+type:post
-----------------------^
Expecting 'NOT', 'LBRACKET', 'NULL', 'TRUE', 'FALSE', 'NUMBER', 'LITERAL', 'STRING', 'GT', 'LT', 'GTE', 'LTE', got 'RPAREN'

I am experiencing this right now and don’t know where it’s coming from. Can you help?