Skip to content

Unable to start Pulse: Authentication forced off via environment #678

@jwgn

Description

@jwgn

Describe the bug
Had authentication previously disabled, now unable to open the UI.

I am greeted with this message:

Authentication forced off via environment

Pulse detected the legacy DISABLE_AUTH flag. Complete the setup below to rotate credentials, then remove the environment variable and restart Pulse.

If you still need a temporary bypass after rotating, create .auth_recoveryin the Pulse data directory and restart. Remove the file and restart again once you regain access.

I had auth disabled via .env and unit override. Removed both. But the message does not disappear. Where does the env variable come from? I cannot see it here:

root@pulse:/opt/pulse# cat /proc/452/environ | tr '\0' '\n'
LANG=C.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER=pulse
LOGNAME=pulse
HOME=/opt/pulse
INVOCATION_ID= some string, no idea if it's some kind of secret
JOURNAL_STREAM=9:126411001
SYSTEMD_EXEC_PID=452
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/pulse.service/memory.pressure
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
PULSE_DATA_DIR=/etc/pulse

When trying to set the password on the initial setup page beneath the quoted message, nothing happens. Browser console:

Error: Permission denied to access property "ownerDocument"

XHRPOST
http://pulse.home.arpa:7655/api/security/quick-setup
[HTTP/1.1 401 Unauthorized 2ms]

[INFO] [toast:error] Failed to setup security: Error: {"error":"Authentication required"} <empty string>

Environment:

  • Pulse Version: v4.27.1
  • Installation Type: ProxmoxVE LXC

Additional context

Restoring my backup from working version 4.25 again. Please provide a working upgrade path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions