[Solved] WriteFreely: impossible to login

My YunoHost server

Hardware: Debian VM on Internet box (Freebox Delta)
YunoHost version: 11.2.20.2
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : not particularly

Description of my issue

Hello y’all, I’ve been using WriteFreely successfully until now, but I can’t seem to log in anymore. Clicking on Menu > Log in gives a 500 error.

I tried to do it without being logged in into Yunohost, being logged in, deleting cache, deleting cookies, all the usual stuff.

I restarted the writefreely service and it gives that log when I try to log in:

LOGFILE: journalctl
-- Journal begins at Sun 2024-04-14 20:14:10 UTC, ends at Thu 2024-07-18 15:11:50 UTC. --
Jul 18 15:08:35 writefreely[1376566]: 2024/07/18 15:08:35 "GET /" 200 164.336845ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:08:37 writefreely[1376566]: 2024/07/18 15:08:37 "GET /" 200 194.433034ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:08:38 writefreely[1376566]: ERROR: 2024/07/18 15:08:38 handle.go:513: Handler: Unable to get session (for user permission 2); ignoring: securecookie: expired timestamp
Jul 18 15:08:38 writefreely[1376566]: ERROR: 2024/07/18 15:08:38 account.go:319: Unable to get session; ignoring: securecookie: expired timestamp
Jul 18 15:08:38 writefreely[1376566]: ERROR: 2024/07/18 15:08:38 account.go:351: Unable to render login: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:08:38 writefreely[1376566]: ERROR: 2024/07/18 15:08:38 handle.go:539: [Web handler] 500: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:08:38 writefreely[1376566]: 2024/07/18 15:08:38 Web internal error render
Jul 18 15:08:38 writefreely[1376566]: 2024/07/18 15:08:38 "GET /login" 500 226.523µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:08:54 writefreely[1376566]: 2024/07/18 15:08:54 "GET /" 200 164.790131ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:08:54 writefreely[1376566]: 2024/07/18 15:08:54 "GET /" 200 165.201016ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:08:56 writefreely[1376566]: 2024/07/18 15:08:56 "GET /" 200 205.074492ms "http.rb/5.2.0 (Mastodon/4.3.0-alpha.5+glitch; +https://oomfie.world/)"
Jul 18 15:08:56 writefreely[1376566]: ERROR: 2024/07/18 15:08:56 handle.go:513: Handler: Unable to get session (for user permission 2); ignoring: securecookie: expired timestamp
Jul 18 15:08:56 writefreely[1376566]: ERROR: 2024/07/18 15:08:56 account.go:319: Unable to get session; ignoring: securecookie: expired timestamp
Jul 18 15:08:56 writefreely[1376566]: ERROR: 2024/07/18 15:08:56 account.go:351: Unable to render login: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:08:56 writefreely[1376566]: ERROR: 2024/07/18 15:08:56 handle.go:539: [Web handler] 500: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:08:56 writefreely[1376566]: 2024/07/18 15:08:56 Web internal error render
Jul 18 15:08:56 writefreely[1376566]: 2024/07/18 15:08:56 "GET /login" 500 224.003µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:09:01 writefreely[1376566]: 2024/07/18 15:09:01 "GET /" 200 185.571719ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:09:04 writefreely[1376566]: 2024/07/18 15:09:04 "GET /" 200 161.63657ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:09:04 writefreely[1376566]: 2024/07/18 15:09:04 "GET /favicon.ico" 200 259.244µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:09:05 writefreely[1376566]: ERROR: 2024/07/18 15:09:05 handle.go:513: Handler: Unable to get session (for user permission 2); ignoring: securecookie: expired timestamp
Jul 18 15:09:05 writefreely[1376566]: ERROR: 2024/07/18 15:09:05 account.go:319: Unable to get session; ignoring: securecookie: expired timestamp
Jul 18 15:09:05 writefreely[1376566]: ERROR: 2024/07/18 15:09:05 account.go:351: Unable to render login: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:09:05 writefreely[1376566]: ERROR: 2024/07/18 15:09:05 handle.go:539: [Web handler] 500: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:09:05 writefreely[1376566]: 2024/07/18 15:09:05 Web internal error render
Jul 18 15:09:05 writefreely[1376566]: 2024/07/18 15:09:05 "GET /login" 500 234.163µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:09:24 writefreely[1376566]: 2024/07/18 15:09:24 "GET /" 200 170.759008ms "http.rb/5.1.1 (Mastodon/4.2.9; +https://social.piweb.be/)"
Jul 18 15:09:48 writefreely[1376566]: ERROR: 2024/07/18 15:09:48 handle.go:513: Handler: Unable to get session (for user permission 2); ignoring: securecookie: expired timestamp
Jul 18 15:09:48 writefreely[1376566]: ERROR: 2024/07/18 15:09:48 account.go:319: Unable to get session; ignoring: securecookie: expired timestamp
Jul 18 15:09:48 writefreely[1376566]: ERROR: 2024/07/18 15:09:48 account.go:351: Unable to render login: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:09:48 writefreely[1376566]: ERROR: 2024/07/18 15:09:48 handle.go:539: [Web handler] 500: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:09:48 writefreely[1376566]: 2024/07/18 15:09:48 Web internal error render
Jul 18 15:09:48 writefreely[1376566]: 2024/07/18 15:09:48 "GET /login" 500 220.283µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:11:07 writefreely[1376566]: 2024/07/18 15:11:07 "GET /.well-known/nodeinfo" 200 299.483µs "FediList Agent/2 (https://fedilist.com/)"
Jul 18 15:11:07 writefreely[1376566]: 2024/07/18 15:11:07 "GET /api/nodeinfo" 200 4.498138ms "FediList Agent/2 (https://fedilist.com/)"
Jul 18 15:11:24 writefreely[1376566]: 2024/07/18 15:11:24 "GET /" 200 163.297992ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:11:24 writefreely[1376566]: 2024/07/18 15:11:24 "GET /favicon.ico" 200 224.602µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:11:26 writefreely[1376566]: ERROR: 2024/07/18 15:11:26 handle.go:513: Handler: Unable to get session (for user permission 2); ignoring: securecookie: expired timestamp
Jul 18 15:11:26 writefreely[1376566]: ERROR: 2024/07/18 15:11:26 account.go:319: Unable to get session; ignoring: securecookie: expired timestamp
Jul 18 15:11:26 writefreely[1376566]: ERROR: 2024/07/18 15:11:26 account.go:351: Unable to render login: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:11:26 writefreely[1376566]: ERROR: 2024/07/18 15:11:26 handle.go:539: [Web handler] 500: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:11:26 writefreely[1376566]: 2024/07/18 15:11:26 Web internal error render
Jul 18 15:11:26 writefreely[1376566]: 2024/07/18 15:11:26 "GET /login" 500 227.003µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:11:48 writefreely[1376566]: 2024/07/18 15:11:48 "GET /" 200 230.385419ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Jul 18 15:11:50 writefreely[1376566]: ERROR: 2024/07/18 15:11:50 handle.go:513: Handler: Unable to get session (for user permission 2); ignoring: securecookie: expired timestamp
Jul 18 15:11:50 writefreely[1376566]: ERROR: 2024/07/18 15:11:50 account.go:319: Unable to get session; ignoring: securecookie: expired timestamp
Jul 18 15:11:50 writefreely[1376566]: ERROR: 2024/07/18 15:11:50 account.go:351: Unable to render login: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:11:50 writefreely[1376566]: ERROR: 2024/07/18 15:11:50 handle.go:539: [Web handler] 500: html/template:base: "<" in attribute name: "\t\t<meta name=\"application-name\" "
Jul 18 15:11:50 writefreely[1376566]: 2024/07/18 15:11:50 Web internal error render
Jul 18 15:11:50 writefreely[1376566]: 2024/07/18 15:11:50 "GET /login" 500 284.924µs "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"

I’d appreciate a heads-up!
Thank you in advance and peace <3

Johann

Hi Johann,

Reading the logs I notice

Have you checked the clock on your server and your client machine?

Alright: there was a weird <li inserted randomly in /var/www/writefreely/templates/base.tmpl

Getting rid of it and restarting writefreely service made everything right again. (No idea why this broken tag appeared?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.