-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSRF verification failed. Request aborted. #772
Comments
Ah, this'll be a Django 5-ism after the upgrade. Thanks for the issue. Can you confirm that your |
First time installing this today, having the same issue, running in Docker. Been trying various TUBESYNC_HOSTS and CSRF_TRUSTED_ORIGINS configs to no avail. |
Try pulling an older image from before that change to get up and running: docker pull ghcr.io/meeb/tubesync:latest@sha256:d668a7f3cbbe4215773144fd88e1a8c0edef9cd0af46504a0e8b2f83569a0f25 We'll work on solving this for the newer version, but you shouldn't have to wait for that to finish. |
Thanks, managed to get this working for now by manually editing settings.py within the container. Added the following line, restarted the container: CSRF_TRUSTED_ORIGINS = ['http://192.168.1.20:4848'] Perhaps that's a new format required by Django? I'm not across this much at all, but just some things I've picked up working on this. |
That's interesting. Thanks. FYI, Something like this: mkdir -v -p ~/.config/tubesync/config
# copy from a running container named TubeSync
docker cp -a TubeSync:/app/tubesync/local_settings.py - | tar -C ~/.config/tubesync/ -xpv
# OR use curl to download the latest version from GitHub
curl -Lo ~/.config/tubesync/local_settings.py \
'https://github.com/meeb/tubesync/raw/refs/heads/main/tubesync/tubesync/local_settings.py.container'
# Edit ~/.config/tubesync/local_settings.py with any changes
editor ~/.config/tubesync/local_settings.py
# Stop and remove the old TubeSync container without the mount
docker stop TubeSync
docker rm TubeSync
# Temporarily pull a working version of the image
docker pull ghcr.io/meeb/tubesync:latest@sha256:d668a7f3cbbe4215773144fd88e1a8c0edef9cd0af46504a0e8b2f83569a0f25
# Start the TubeSync container with the new bind mount.
# Do NOT forget to change the source for your /downloads volume,
# in the example below.
docker run --name TubeSync -d -p 4848:4848 \
-v ~/.config/tubesync/local_settings.py:/app/tubesync/local_settings.py:ro \
-e PUID="$(id -u)" \
-e PGID="$(id -g)" \
-v ~/.config/tubesync/config:/config \
-v /some/directory/tubesync-downloads:/downloads \
ghcr.io/meeb/tubesync:latest |
I've not set |
After updating to version 0.13.7 I'm getting this when trying to add a new Youtube channel: (If it matters I'm using postgres)
The text was updated successfully, but these errors were encountered: