zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.52k stars 1.88k forks source link

Cannot write to trilium #2975

Open amar-g72 opened 2 years ago

amar-g72 commented 2 years ago

For bug reports, PLEASE mention version of Trilium you're using and also include log files from following location:

OS: Debian 11.4 Trilium version: 0.53.4 Installation method: Pure Docker

JS Error: Error when calling PUT notes/XgqD2rooT2kl/change-title: error -

Stack: Error

at Object.logError (https://trilium.mydomain.com/app/services/ws.js:1:621)

at Object.throwError (https://trilium.mydomain.com/app/services/toast.js:20:33)

at reportError (https://trilium.mydomain.com/app/services/server.js:15:229)

at async Object.error (https://trilium.mydomain.com/app/services/server.js:16:435)

Error: Router not found for request /api/notes/XgqD2rooT2kl/change-title

at /usr/src/app/src/app.js:77:17

at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)

at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:328:13)

at /usr/src/app/node_modules/express/lib/router/index.js:286:9

at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:346:12)

at next (/usr/src/app/node_modules/express/lib/router/index.js:280:10)

at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:91:12)

at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:328:13)

at /usr/src/app/node_modules/express/lib/router/index.js:286:9

at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:346:12) {

status: 404

}

}

zadam commented 2 years ago

Hi, I don't recognize this error. Do you have some reverse proxy or something between the client and server? It looks like something is blocking the requests.

Minituff commented 2 years ago

I have this error too. It only happened after updating to 0.54. I reverted back to 0.52 (after restoring the old database) and I am still getting the error.

I am running Trilium in my home lab and using Cloudflare Tunnels and Cloudflare Access to only allow authorized users. I would be happy to help troubleshoot if we can figure out what's going on. Im guessing its a Cloudflare config issue and not a Trilium issue.

Edit: The weird thing is. I am only getting this error in Chrome. Everything works fine in Safari or Edge.

Screen Shot 2022-08-08 at 12 08 27 PM
amar-g72 commented 2 years ago

Hi, How have you configured cloudflare, I thought it could have been because I did it as a normal install rather than a docker install as I use it for nextcloud as well.

On Mon, 8 Aug 2022, 20:11 James Tufarelli, @.***> wrote:

I have this error too. It only happened after updating to 0.54. I reverted back to 0.52 (after restoring the old database) and I am still getting the error.

I am running Trilium in my home lab and using Cloudflare Tunnels and Cloudflare Access to only allow authorized users. I would be happy to help troubleshoot if we can figure out what's going on. Im guessing its a Cloudflare config issue and not a Trilium issue.

[image: Screen Shot 2022-08-08 at 12 08 27 PM] https://user-images.githubusercontent.com/8152401/183495125-a5dead84-04a7-4a88-82b0-8c71b92881d1.png

— Reply to this email directly, view it on GitHub https://github.com/zadam/trilium/issues/2975#issuecomment-1208505196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV4UPMZ5LR6GBAMPBYSQOPTVYFLXRANCNFSM53D2LYJQ . You are receiving this because you authored the thread.Message ID: @.***>