Lost access to notes after upgrade

My version of HedgeDoc is: 1.9.9 -> 1.12.2

What I expected to happen:
Upgraded today and expected no changes.

What actually happened:
Lost access to a bunch - but not all - notes, giving a 403.

I already tried:

Checked the Docker logs:

2026-11-05T10:45:35.694Z warn: Session secret not set. Using random generated one. Please set sessionSecret in your config.json file. All users will be logged out.
2026-11-05T10:45:36.312Z info: All migrations performed successfully
2026-11-05T10:45:36.318Z info: HTTP Server listening at 0.0.0.0:3000
(node:1) [DEP0044] DeprecationWarning: The util.isArray API is deprecated. Please use Array.isArray() instead.
(Use node --trace-deprecation … to show where the warning was created)

That’s the start of the logs, nothing afterwards (other than the actual page hits with 200/403 depending on working/non working notes).

It’s a very simple and small installation with maybe 10-15 notes and with just two users most of the time, two friends had accessed two single notes before. It’s restricted to manually created users.

Docker compose file:

version: '3'
services:
  database:
    image: postgres:13.4-alpine
    environment:
      - POSTGRES_USER=hedgedoc
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=hedgedoc
    volumes:
      - database:/var/lib/postgresql/data
    restart: always
  app:
    # Make sure to use the latest release from https://hedgedoc.org/latest-release
    image: quay.io/hedgedoc/hedgedoc:1.12.2
    environment:
      - CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc
      - CMD_DOMAIN=mydomain.tld
      - CMD_HOST=0.0.0.0
      - CMD_PORT=3000
      - CMD_PROTOCOL_USESSL=true
      - CMD_HSTS_ENABLE=true
      - CMD_URL_ADDPORT=false
      - CMD_ALLOW_ANONYMOUS=false
      - CMD_DEFAULT_PERMISSION=limited
      - CMD_ALLOW_FREEURL=true
      - CMD_ALLOW_EMAIL_REGISTER=false
      - CMD_SESSION_SECRET=mysecret_only_added_today
    volumes:
      - uploads:/hedgedoc/public/uploads
    ports:
      - "3000:3000"
    restart: always
    depends_on:
      - database
volumes:
  database:
    driver: local
    driver_opts:
      o: bind
      type: none
      device: ./database
  uploads:
    driver: local
    driver_opts:
      o: bind
      type: none
      device: ./uploads

Only change was setting the image from 1.9.9 to 1.12.2, docker-compose down, docker-compose up -d and that’s it. Afterwards I added the SESSION_SECRET, but not on the first run that already had the issue.

I am not sure, but it feels like all the affected notes (403) are the ones set to “Limited”, while all the notes I manually set to “Editable” for others to look at seem to be fine.

I’m completely out of ideas what might have happened here, anyone have a clue?

Cheers,
Chris

As some people in the community reported follow-up bugs with the 1.12.1 and 1.12.2 releases, we have withdrawn the release, reverted the docker tag latest back to 1.12.0 and currently recommend everyone to not do anything with their instances.

We’re currently assessing the problems and are working on fixes.
We are very sorry for the inconveniences.

A proper post-mortem will be released here in the community forum once everything’s resolved.

Thanks! Reverted to the backup and then upgraded from 1.9.9 to 1.12.0 and it works :slight_smile: