linuxserver/docker-wikijs

[BUG] Can't log in

RoryNesbitt opened this issue · 8 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When trying to log in the page appears to do nothing.
If you then reload the login screen has no content, just the background image.

Even after the log in screen goes empty the site is not logged in, it is possible that I'm doing this with the wrong credentials but I'm using a password manager so it's not likely.
This does not change even after restarting the container.

There are no logs when the login attempt is made

Expected Behavior

To log in

Steps To Reproduce

Install on unraid, use a local account (not tested others, ldap won't work for me and I don't know if it's a me problem or a wikijs problem yet)
Try to log in
refresh the page

Environment

- OS:Unraid
- How docker service was installed: via community applications

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='WikiJS'
  --net='rnd'
  -e TZ="Europe/London"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="XXXX"
  -e HOST_CONTAINERNAME="WikiJS"
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:3000]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/wikijs-logo.png'
  -l 'traefik.enable'='true'
  -l 'traefik.http.routers.docs.rule'='Host(`docs.XXXXX.XXX`)'
  -p '9090:3000/tcp'
  -v '/mnt/user/data/wiki':'/data':'rw'
  -v '/mnt/user/appdata/wikijs':'/config':'rw' 'lscr.io/linuxserver/wikijs'

Container logs

Logs
```bash

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

  ██╗     ███████╗██╗ ██████╗
  ██║     ██╔════╝██║██╔═══██╗
  ██║     ███████╗██║██║   ██║
  ██║     ╚════██║██║██║   ██║
  ███████╗███████║██║╚██████╔╝
  ╚══════╝╚══════╝╚═╝ ╚═════╝

Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID: 99
User GID: 100
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Loading configuration from /app/wiki/config.yml... OK
2023-04-15T18:02:30.673Z [MASTER] info: =======================================
2023-04-15T18:02:30.675Z [MASTER] info: = Wiki.js 2.5.298 =====================
2023-04-15T18:02:30.675Z [MASTER] info: =======================================
2023-04-15T18:02:30.675Z [MASTER] info: Initializing...
2023-04-15T18:02:31.176Z [MASTER] info: Using database driver sqlite3 for sqlite [ OK ]
2023-04-15T18:02:31.180Z [MASTER] info: Connecting to database...
2023-04-15T18:02:31.187Z [MASTER] info: Database Connection Successful [ OK ]
2023-04-15T18:02:31.772Z [MASTER] info: Loading GraphQL Schema...
2023-04-15T18:02:32.530Z [MASTER] info: GraphQL Schema: [ OK ]
2023-04-15T18:02:32.734Z [MASTER] info: HTTP Server on port: [ 3000 ]
(node:150) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./public/" in the "exports" field module resolution of the package at /app/wiki/node_modules/extract-files/package.json.
Update this package.json to use a subpath pattern like "./public/*".
(Use node --trace-deprecation ... to show where the warning was created)
2023-04-15T18:02:32.750Z [MASTER] info: HTTP Server: [ RUNNING ]
2023-04-15T18:02:32.834Z [MASTER] info: No new analytics providers found: [ SKIPPED ]
2023-04-15T18:02:32.849Z [MASTER] info: Loaded 21 authentication strategies: [ OK ]
2023-04-15T18:02:32.856Z [MASTER] info: No new comment providers found: [ SKIPPED ]
2023-04-15T18:02:32.863Z [MASTER] info: No new editors found: [ SKIPPED ]
2023-04-15T18:02:32.875Z [MASTER] info: No new loggers found: [ SKIPPED ]
2023-04-15T18:02:32.893Z [MASTER] info: No new renderers found: [ SKIPPED ]
2023-04-15T18:02:32.902Z [MASTER] info: No new search engines found: [ SKIPPED ]
2023-04-15T18:02:32.918Z [MASTER] info: No new storage targets found: [ SKIPPED ]
2023-04-15T18:02:32.919Z [MASTER] info: Checking for installed optional extensions...
2023-04-15T18:02:32.937Z [MASTER] info: Optional extension git is installed. [ OK ]
2023-04-15T18:02:32.949Z [MASTER] info: Optional extension pandoc was not found on this system. [ SKIPPED ]
2023-04-15T18:02:32.957Z [MASTER] info: Optional extension puppeteer was not found on this system. [ SKIPPED ]
2023-04-15T18:02:32.958Z [MASTER] info: Optional extension sharp was not found on this system. [ SKIPPED ]
2023-04-15T18:02:32.962Z [MASTER] info: Authentication Strategy Local: [ OK ]
2023-04-15T18:02:33.009Z [MASTER] info: Authentication Strategy LDAP / Active Directory: [ OK ]
[ls.io-init] done.
2023-04-15T18:02:33.575Z [MASTER] info: (COMMENTS/DEFAULT) Initializing...
2023-04-15T18:02:33.576Z [MASTER] info: (COMMENTS/DEFAULT) Initialization completed.
2023-04-15T18:02:33.599Z [MASTER] info: (STORAGE/GIT) Initializing...
2023-04-15T18:02:33.601Z [MASTER] info: (STORAGE/GIT) Checking repository state...
2023-04-15T18:02:33.629Z [MASTER] info: (STORAGE/GIT) Initializing local repository...
2023-04-15T18:02:33.897Z [MASTER] info: (STORAGE/GIT) Listing existing remotes...
2023-04-15T18:02:33.959Z [MASTER] info: (STORAGE/GIT) Setting SSL Verification config...
2023-04-15T18:02:34.021Z [MASTER] info: (STORAGE/GIT) Setting SSH Command config...
2023-04-15T18:02:34.088Z [MASTER] info: (STORAGE/GIT) Adding origin remote via SSH...
2023-04-15T18:02:34.151Z [MASTER] info: (STORAGE/GIT) Fetch updates from remote...
2023-04-15T18:02:36.082Z [MASTER] info: (STORAGE/GIT) Checking out branch main...
2023-04-15T18:02:36.110Z [MASTER] info: (STORAGE/GIT) Performing pull rebase from origin on branch main...
2023-04-15T18:02:37.611Z [MASTER] info: (STORAGE/GIT) Performing push to origin on branch main...
2023-04-15T18:02:39.095Z [MASTER] info: (STORAGE/GIT) Initialization completed.
2023-04-15T18:02:39.108Z [MASTER] info: Purging orphaned upload files...
2023-04-15T18:02:39.109Z [MASTER] info: Syncing locales with Graph endpoint...
2023-04-15T18:02:39.110Z [MASTER] info: Fetching latest updates from Graph endpoint...
2023-04-15T18:02:39.145Z [MASTER] info: Purging orphaned upload files: [ COMPLETED ]
Loading configuration from /app/wiki/config.yml... OK
2023-04-15T18:02:39.303Z [JOB] info: Rebuilding page tree...
2023-04-15T18:02:39.365Z [MASTER] info: Fetching latest updates from Graph endpoint: [ COMPLETED ]
2023-04-15T18:02:39.657Z [MASTER] info: Pulled latest locale updates for English from Graph endpoint: [ COMPLETED ]
2023-04-15T18:02:39.659Z [MASTER] info: Syncing locales with Graph endpoint: [ COMPLETED ]
2023-04-15T18:02:39.874Z [JOB] info: Using database driver sqlite3 for sqlite [ OK ]
2023-04-15T18:02:39.923Z [JOB] info: Rebuilding page tree: [ COMPLETED ]

</details>

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

The issue seems to also effect a lot of the buttons on the main page

Are you connecting through traefik or direct via host ip?

Through Traefik, also proxied by cloudflare

Local access seems to work fine, although I've been using the traefik url up until now perfectly fine

Well, then either one of those is most likely causing your issue and it's out of our hands.

Appears to be the cloadflare proxy, setting it to direct is working. This is a new issue and I don't know what changed but it means I found a solution so I'll close this.

I found these js files being blocked in the network debugger
image

If you guys know anything I can do to fix this without losing the proxy then I would always appreciate the info

Make sure you turn off their JavaScript/CSS optimisation thing, rocket something or other, it breaks basically everything it touches.

I'll give that a go. Thanks