Skip to content
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

Invalid form authenticity token error #555

Open
Mikolaj98p opened this issue Apr 21, 2024 · 11 comments
Open

Invalid form authenticity token error #555

Mikolaj98p opened this issue Apr 21, 2024 · 11 comments

Comments

@Mikolaj98p
Copy link

Hello,
On fresh install on my qnap i have error on login: Invalid form authenticity token error.

Hardware: Qnap TS-431P
Soft generated from tag: 5.1.2-1

Inspect from docker Config.Env:

"REDMINE_HTTPS=true"
"GEM_HOME=/usr/local/bundle"
"RAILS_ENV=production"
"REDMINE_LOG_DIR=/var/log/redmine"
"RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.xz"
"DB_HOST=<HIDDEN>"
"DB_PASS=<HIDDEN>"
"DB_NAME=redmine_production"
"BUNDLE_SILENCE_ROOT_WARNING=1"
"REDMINE_ASSETS_DIR=/etc/docker-redmine"
"REDMINE_INSTALL_DIR=/home/redmine/redmine"
"RUBY_VERSION=3.2"
"DB_ENCODING=utf8"
"REDMINE_BUILD_ASSETS_DIR=/etc/docker-redmine/build"
"REDMINE_RUNTIME_ASSETS_DIR=/etc/docker-redmine/runtime"
"REDMINE_USER=redmine"
"REDMINE_VERSION=5.1.2"
"DB_USER=redmine"
"BUNDLE_APP_CONFIG=/usr/local/bundle"
"LANG=C.UTF-8"
"PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
"REDMINE_DATA_DIR=/home/redmine/data"
"REDMINE_HOME=/home/redmine"
"RUBY_DOWNLOAD_SHA256=cfb231954b8c241043a538a4c682a1cca0b2016d835fee0b9e4a0be3ceba476b"
"DB_ADAPTER=mysql2"
@jcormier
Copy link
Collaborator

jcormier commented Apr 21, 2024 via email

@Mikolaj98p
Copy link
Author

production.log

@jcormier
Copy link
Collaborator

jcormier commented Apr 21, 2024 via email

@Mikolaj98p
Copy link
Author

Okay looks like your browser did fetch a fresh copy of the login page and then sent the login details. However the server responded with the following... Can't verify CSRF token authenticity. Did older versions of the image work? I suspect this is not a version issue and has something to do with your setup.

On Sun, Apr 21, 2024, 8:14 AM Mikolaj98p @.> wrote: production.log https://github.com/sameersbn/docker-redmine/files/15053013/production.log — Reply to this email directly, view it on GitHub <#555 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABK2RGOQLWIOQEHLWNXUIG3Y6P6YFAVCNFSM6AAAAABGRR32T2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYGE2TGNRXGA . You are receiving this because you commented.Message ID: @.>

Oryginal from https://hub.docker.com/_/redmine/ works fine but without ssl.

@jcormier
Copy link
Collaborator

jcormier commented Apr 21, 2024 via email

@Mikolaj98p
Copy link
Author

Mikolaj98p commented Apr 22, 2024

Without ssl working.
I using cert files from Let's encrypt, copied from path /mnt/HDA_ROOT/.config/stunnel

@Mikolaj98p
Copy link
Author

I changed certificate from oryginal from qnap to generated via openssl command and working.
Can I use Lets encrypt certs from qnap?

@jcormier
Copy link
Collaborator

jcormier commented Apr 25, 2024 via email

@Mikolaj98p
Copy link
Author

At first time I used certs from my qnap, but login page returned error in that issue, generated self signed working.
How I can apply qnap lets encrypt certs?

@jcormier
Copy link
Collaborator

jcormier commented Apr 26, 2024 via email

@Mikolaj98p
Copy link
Author

Ok, qnap update helped.
Thanx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants