Can't Get Past Webconf Login Screen

Yes, cleared cookies and caches for all.

Can you login using ssh?

I will try tonight with ssh:
ssh root@Zynthian.local
password: raspberry

As i told, the bug is also connection-related. How are you connecting your zynthian?

Regards

With an ethernet cable from the Raspberry pi 4 to the Mac

Hi. A couple of years ago a twisted pair RJ45 cable was needed to connect directly two computers. But I don’t know if it still accurate.

Can’t you try to connect zynthian to a kind of router and not directly from computer to computer ?

or use small switch…

Auto MDI-X is considered standard a of 1000Base-T and is pretty well supported these days.

But does MacOS act as a DHCP server or handle other mechanism for accessing Zynthian via IP without e.g. using APIPA?

Have you set a static IP on either the Mac or the Raspberry Pi?

Please check what IP address each has when directly connected together.

Did you manage to get ssh access?

:wave:Hi there :wave:

So, I took the time to solve the issue :partying_face: :partying_face:

1/ I am connected with an ethernet cable from Mac to Pi with a static IP set manually.

2/ I did connect via ssh (& set the date)
Screen Shot 4

3/ I’ve been reading the Wiki > Command Line User Guide - ZynthianWiki
Very helpful to understand and tried different command lines especially this one

systemctl stop zynthian-webconf
systemctl start zynthian-webconf

4/ I tried to connect via Safari browser…
And it worked!

:+1:Thank you all for you replies and advices!:+1:
:heart_eyes:Great community here :heart_eyes:

3 Likes

Leaving but one simple issue . . . :face_with_monocle:

3 Likes

Yyyyeees! Setting correct date did it.

Thanks for that hint!

1 Like

Faced the same problem today, but ssh’ing in and setting the date fixed the issue. I grabbed a log for you as per earlier request.

You can tell you got the password right because it doesn’t give the “Incorrect Password” error. I hadn’t used my zynthian in a while. Had the issue. Reinstalled brand new image, same issue. Found this thread, saw that people have the same issue, set the date with:

date -s '2021-09-10 18:34:00'

and hey presto! She works. Hope this helps chase the ghost in the machine.

root@zynthian:/# systemctl stop zynthian-webconf
root@zynthian:/# cd /zynthian/zynthian-webconf
root@zynthian:/zynthian/zynthian-webconf# ./zynthian_webconf.sh
lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#extended> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#simple> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
lilv_world_load_bundle(): warning: Ignoring bundle <file:///zynthian/zynthian-plugins/lv2/b_synth.lv2/>
lilv_world_load_bundle(): note: Newer version of <http://gareus.org/oss/lv2/b_synth> loaded from <file:///zynthian/zynthian-plugins/lv2/b_synth/>
INFO:root:ZYNTHIAN-UI CONFIG ...
INFO:root:Wiring Layout MCP23017_ZynScreen
DEBUG:root:ZYNCODER A: [102, 105, 110, 113]
DEBUG:root:ZYNCODER B: [101, 104, 109, 112]
DEBUG:root:SWITCHES layout: [100, 103, 108, 111, 106, 107, 114, 115]
DEBUG:root:DISABLED_MIDI_IN = ['']
DEBUG:root:ENABLED_MIDI_OUT = ['ttymidi:MIDI_out']
DEBUG:root:ENABLED_MIDI_FB = ['']
DEBUG:root:MMC Bank Change CCNum: 32
DEBUG:root:MMC Bank Change UP: None
DEBUG:root:MMC Bank Change DOWN: None
DEBUG:root:MMC Program Change UP: None
DEBUG:root:MMC Program Change DOWN: None
INFO:tornado.access:304 GET /login?next=%2F (fe80::cee:57f5:6d1a:400d) 29.83ms
INFO:tornado.access:304 GET /bower_components/bootstrap/dist/css/bootstrap.min.css (fe80::cee:57f5:6d1a:400d) 15.14ms
INFO:tornado.access:304 GET /bower_components/bootstrap/dist/css/bootstrap-theme.min.css (fe80::cee:57f5:6d1a:400d) 2.53ms
INFO:tornado.access:304 GET /bower_components/bootstrap-treeview/dist/bootstrap-treeview.min.css (fe80::cee:57f5:6d1a:400d) 2.22ms
INFO:tornado.access:304 GET /bower_components/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css (fe80::cee:57f5:6d1a:400d) 2.22ms
INFO:tornado.access:304 GET /bower_components/bootstrap-table/dist/bootstrap-table.min.css (fe80::cee:57f5:6d1a:400d) 2.08ms
INFO:tornado.access:304 GET /bower_components/font-awesome/css/font-awesome.min.css (fe80::cee:57f5:6d1a:400d) 2.42ms
INFO:tornado.access:304 GET /css/style.css (fe80::cee:57f5:6d1a:400d) 2.11ms
INFO:tornado.access:304 GET /css/default.css (fe80::cee:57f5:6d1a:400d) 1.95ms
INFO:tornado.access:304 GET /css/zynthian.css (fe80::cee:57f5:6d1a:400d) 2.41ms
INFO:tornado.access:304 GET /bower_components/jquery/dist/jquery.js (fe80::cee:57f5:6d1a:400d) 3.82ms
INFO:tornado.access:304 GET /bower_components/js-cookie/src/js.cookie.js (fe80::cee:57f5:6d1a:400d) 2.15ms
INFO:tornado.access:304 GET /css/fonts.css (fe80::cee:57f5:6d1a:400d) 2.05ms
INFO:tornado.access:304 GET /bower_components/modernizr/modernizr.js (fe80::cee:57f5:6d1a:400d) 2.71ms
INFO:tornado.access:304 GET /bower_components/bootstrap/dist/js/bootstrap.min.js (fe80::cee:57f5:6d1a:400d) 2.53ms
INFO:tornado.access:304 GET /bower_components/bootstrap-treeview/dist/bootstrap-treeview.min.js (fe80::cee:57f5:6d1a:400d) 2.07ms
INFO:tornado.access:304 GET /bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.min.js (fe80::cee:57f5:6d1a:400d) 2.28ms
INFO:tornado.access:304 GET /bower_components/bootstrap-table/dist/bootstrap-table.min.js (fe80::cee:57f5:6d1a:400d) 2.96ms
INFO:tornado.access:304 GET /bower_components/websocket/build/websocket.min.js (fe80::cee:57f5:6d1a:400d) 2.06ms
INFO:tornado.access:304 GET /js/zynthian-websocket.js (fe80::cee:57f5:6d1a:400d) 1.97ms
INFO:tornado.access:200 GET /img/logo/zynthian_logo_black_trans_320.png (fe80::cee:57f5:6d1a:400d) 2.42ms
INFO:tornado.access:200 GET /img/loading.gif (fe80::cee:57f5:6d1a:400d) 2.60ms
DEBUG:root:PASSWD: $6$B4dWJoGEHcrQfClS$ynw/mFJ5P6zrz1JErBOE4zK6gfOiZDnB85oiA/bgFRoBlKgw.IPxgGLh8Gpz8QZp5.LFPIu4Sbn4pP1ce/BHQ. <=> $6$B4dWJoGEHcrQfClS$ynw/mFJ5P6zrz1JErBOE4zK6gfOiZDnB85oiA/bgFRoBlKgw.IPxgGLh8Gpz8QZp5.LFPIu4Sbn4pP1ce/BHQ.
INFO:tornado.access:302 POST /login?next=%2F (fe80::cee:57f5:6d1a:400d) 49.46ms
DEBUG:root:CONFIG VAR: CFLAGS_UNSAFE=
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_03__UI_SHORT=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_ENCODER_A=102,105,110,113
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_ENCODER_B=101,104,109,112
DEBUG:root:CONFIG VAR: SOUNDCARD_CONFIG=dtoverlay=hifiberry-dacplusadcpro
DEBUG:root:CONFIG VAR: ZYNTHIAN_PLUGINS_SRC_DIR=/zynthian/zynthian-sw/plugins
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_01__UI_SHORT=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_RESTORE_LAST_STATE=1
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_FONT_SIZE=14
DEBUG:root:CONFIG VAR: ZYNTHIAN_DATA_DIR=/zynthian/zynthian-data
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_03__MIDI_CHAN=Active
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_01__UI_LONG=NONE
DEBUG:root:CONFIG VAR: JACKD_OPTIONS=-P 70 -t 2000 -s -d alsa -d hw:sndrpihifiberry -r 44100 -p 256 -n 2 -X raw
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_SNAPSHOT_MIXER_SETTINGS=0
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_04__MIDI_NUM=4
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_COLOR_TX=#ffffff
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_03=MIDI_PROG_CHANGE
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_02=MIDI_PROG_CHANGE
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_01=MIDI_PROG_CHANGE
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_04=MIDI_PROG_CHANGE
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_SWITCH_LONG_MS=2000
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_04__MIDI_CHAN=Active
DEBUG:root:CONFIG VAR: ZYNTHIAN_SCRIPT_MIDI_PROFILE=/zynthian/config/midi-profiles/default.sh
DEBUG:root:CONFIG VAR: CXXFLAGS=-mcpu=cortex-a53 -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mneon-for-64bits -mfloat-abi=hard -mlittle-endian -munaligned-access -mvectorize-with-neon-quad -ftree-vectorize
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_COLOR_ON=#ff0000
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_02__UI_BOLD=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_02__MIDI_CHAN=Active
DEBUG:root:CONFIG VAR: ZYNTHIAN_EX_DATA_DIR=/media/usb0
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_03__MIDI_NUM=3
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_SWITCHES=100,103,108,111,106,107,114,115
DEBUG:root:CONFIG VAR: ZYNTHIAN_PLUGINS_DIR=/zynthian/zynthian-plugins
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_MCP23017_INTB_PIN=7
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_01__MIDI_NUM=1
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_03__UI_BOLD=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_COLOR_BG=#000000
DEBUG:root:CONFIG VAR: ZYNTHIAN_SYS_DIR=/zynthian/zynthian-sys
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_02__MIDI_NUM=2
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_04__UI_BOLD=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_ENABLE_CURSOR=0
DEBUG:root:CONFIG VAR: SOUNDCARD_MIXER=Digital Left,ADC Left,Digital Right,ADC Right,ADC Left Input,ADC Right Input
DEBUG:root:CONFIG VAR: DISPLAY_WIDTH=480
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_TOUCH_WIDGETS=0
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_MCP23017_INTA_PIN=2
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIFI_MODE=hotspot
DEBUG:root:CONFIG VAR: ZYNTHIAN_KIT_VERSION=V4
DEBUG:root:CONFIG VAR: RASPI=true
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_03__UI_LONG=NONE
DEBUG:root:CONFIG VAR: DISPLAY_HEIGHT=320
DEBUG:root:CONFIG VAR: MACHINE_HW_NAME=armv7l
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_DIR=/zynthian/zynthian-ui
DEBUG:root:CONFIG VAR: ZYNTHIAN_SW_DIR=/zynthian/zynthian-sw
DEBUG:root:CONFIG VAR: SOUNDCARD_NAME=HifiBerry DAC+ ADC PRO
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_01__MIDI_CHAN=Active
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_01__UI_BOLD=NONE
DEBUG:root:CONFIG VAR: RBPI_VERSION=Raspberry Pi 3 Model B Plus Rev 1.3
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_02__UI_LONG=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_LAYOUT=MCP23017_ZynScreen
DEBUG:root:CONFIG VAR: ZYNTHIAN_CONFIG_DIR=/zynthian/config
DEBUG:root:CONFIG VAR: ZYNTHIAN_MY_DATA_DIR=/zynthian/zynthian-my-data
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_COLOR_PANEL_BG=#3a424d
DEBUG:root:CONFIG VAR: DISPLAY_NAME=ZynScreen 3.5 (v1)
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_02__UI_SHORT=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_SETUP_APT_CLEAN=TRUE
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_04__UI_SHORT=NONE
DEBUG:root:CONFIG VAR: CFLAGS=-mcpu=cortex-a53 -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mneon-for-64bits -mfloat-abi=hard -mlittle-endian -munaligned-access -mvectorize-with-neon-quad -ftree-vectorize
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_SWITCH_BOLD_MS=300
DEBUG:root:CONFIG VAR: ZYNTHIAN_UI_FONT_FAMILY=Audiowide
DEBUG:root:CONFIG VAR: DISPLAY_CONFIG=dtoverlay=piscreen2r-notouch,rotate=270\ndtoverlay=ads7846,speed=2000000,cs=1,penirq=17,penirq_pull=2,swapxy=1,xohms=100,pmax=255
DEBUG:root:CONFIG VAR: LV2_PATH=/usr/lib/lv2:/usr/lib/arm-linux-gnueabihf/lv2:/usr/local/lib/lv2:/zynthian/zynthian-plugins/lv2:/zynthian/zynthian-data/presets/lv2:/zynthian/zynthian-my-data/presets/lv2
DEBUG:root:CONFIG VAR: ZYNTHIAN_DIR=/zynthian
DEBUG:root:CONFIG VAR: FRAMEBUFFER=/dev/fb1
DEBUG:root:CONFIG VAR: ZYNTHIAN_WIRING_CUSTOM_SWITCH_04__UI_LONG=NONE
DEBUG:root:CONFIG VAR: ZYNTHIAN_RECIPE_DIR=/zynthian/zynthian-sys/scripts/recipes
DEBUG:root:CONFIG VAR: ZYNTHIAN_AUBIONOTES_OPTIONS=-O complex -t 0.5 -s -88  -p yinfft -l 0.5
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_MASTER_BANK_CHANGE_UP=
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_SYS_ENABLED=1
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_MASTER_PROGRAM_CHANGE_DOWN=
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_SINGLE_ACTIVE_CHANNEL=1
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_RTPMIDI_ENABLED=0
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_TOUCHOSC_ENABLED=0
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_PORTS=DISABLED_IN=\nENABLED_OUT=ttymidi:MIDI_out\nENABLED_FB=
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_MASTER_CHANNEL=16
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_NETWORK_ENABLED=0
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_FILTER_RULES=
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_PROG_CHANGE_ZS3=1
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_MASTER_PROGRAM_CHANGE_UP=
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_MASTER_BANK_CHANGE_CCNUM=0
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_MASTER_BANK_CHANGE_DOWN=
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_PRESET_PRELOAD_NOTEON=1
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_AUBIONOTES_ENABLED=0
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_FINE_TUNING=440
DEBUG:root:CONFIG VAR: ZYNTHIAN_MIDI_MASTER_PROGRAM_CHANGE_TYPE=Custom
INFO:tornado.access:302 GET / (fe80::cee:57f5:6d1a:400d) 85.42ms
INFO:tornado.access:200 GET /login?next=%2F (fe80::cee:57f5:6d1a:400d) 2.02ms
INFO:tornado.access:304 GET /bower_components/bootstrap/dist/css/bootstrap.min.css (fe80::cee:57f5:6d1a:400d) 2.19ms
INFO:tornado.access:304 GET /bower_components/font-awesome/css/font-awesome.min.css (fe80::cee:57f5:6d1a:400d) 1.78ms
INFO:tornado.access:304 GET /bower_components/bootstrap-table/dist/bootstrap-table.min.css (fe80::cee:57f5:6d1a:400d) 2.10ms
INFO:tornado.access:304 GET /bower_components/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css (fe80::cee:57f5:6d1a:400d) 1.87ms
INFO:tornado.access:304 GET /bower_components/bootstrap-treeview/dist/bootstrap-treeview.min.css (fe80::cee:57f5:6d1a:400d) 1.93ms
INFO:tornado.access:304 GET /bower_components/bootstrap/dist/css/bootstrap-theme.min.css (fe80::cee:57f5:6d1a:400d) 2.00ms
INFO:tornado.access:304 GET /css/fonts.css (fe80::cee:57f5:6d1a:400d) 2.16ms
INFO:tornado.access:304 GET /css/style.css (fe80::cee:57f5:6d1a:400d) 1.90ms
INFO:tornado.access:304 GET /css/default.css (fe80::cee:57f5:6d1a:400d) 1.92ms
INFO:tornado.access:304 GET /css/zynthian.css (fe80::cee:57f5:6d1a:400d) 1.75ms
INFO:tornado.access:304 GET /bower_components/jquery/dist/jquery.js (fe80::cee:57f5:6d1a:400d) 2.17ms
INFO:tornado.access:304 GET /bower_components/js-cookie/src/js.cookie.js (fe80::cee:57f5:6d1a:400d) 1.89ms
INFO:tornado.access:304 GET /bower_components/bootstrap/dist/js/bootstrap.min.js (fe80::cee:57f5:6d1a:400d) 1.74ms
INFO:tornado.access:304 GET /bower_components/bootstrap-treeview/dist/bootstrap-treeview.min.js (fe80::cee:57f5:6d1a:400d) 2.11ms
INFO:tornado.access:304 GET /bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.min.js (fe80::cee:57f5:6d1a:400d) 1.82ms
INFO:tornado.access:304 GET /bower_components/bootstrap-table/dist/bootstrap-table.min.js (fe80::cee:57f5:6d1a:400d) 1.77ms
INFO:tornado.access:304 GET /bower_components/websocket/build/websocket.min.js (fe80::cee:57f5:6d1a:400d) 1.95ms
INFO:tornado.access:304 GET /bower_components/modernizr/modernizr.js (fe80::cee:57f5:6d1a:400d) 1.83ms
INFO:tornado.access:304 GET /js/zynthian-websocket.js (fe80::cee:57f5:6d1a:400d) 2.02ms
INFO:tornado.access:304 GET /img/loading.gif (fe80::cee:57f5:6d1a:400d) 2.02ms
INFO:tornado.access:304 GET /img/logo/zynthian_logo_black_trans_320.png (fe80::cee:57f5:6d1a:400d) 1.77ms

Just a small observation that I have the same issue when trying to access through the WiFi Hotspot. Connecting to ethernet did not help. Things started to work only when turning off the WiFi Hotspot.

I’m new to this myself but from the comments above it seems to me that to log in from the web interface the Pi’s clock must be set to the current time within some tolerance. Pis do not have a battery backed real time clock but sets the time from the wider internet (ntp) at each boot. It must ‘see’ the www to be able to do this.
So Pi needs to have access to the www to set its time before access to the web interface is possible, or alternatively use an ssh login to manually set the time. As a hotspot the Pi does not see the www.

Are you accessing via http or https?
Also, you should try to update your zynthian because there are some changes that could fix the problem.
Note: don’t miss to use ctrl+F5 to totally reload the webconf :wink:

Regards,

Feels like @Doug is spot on. I can only log into webconf when the zynthian clock is no more than ~30 days behind current time. This seems to be related to the following found at https://www.tornadoweb.org/en/stable/guide/security.html:

By default, Tornado’s secure cookies expire after 30 days. To change this, use the expires_days keyword argument to set_secure_cookie and the max_age_days argument to get_secure_cookie . These two values are passed separately so that you may e.g. have a cookie that is valid for 30 days for most purposes, but for certain sensitive actions (such as changing billing information) you use a smaller max_age_days when reading the cookie.

If I set expires_days and max_age_days to 365, the cutoff for not being able to login becomes zynthian clock behind current by 365 days.

Maybe we could use datetimectl to check if we are NTP synchronised. When not, increasing expires_days and max_age_days should make login possible. Got to figure out what the clock is at on first boot of a fresh image, to cover all cases…

3 Likes

That’s good research. We should probably set the expiry a few years beyond the image build date. @jofemodo maybe this could be scripted in the build process?

1 Like