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

DATABASE_PATH cannot be changed without error "Authentication request could not be processed due to a system problem." #7352

Open
GiovanH opened this issue Mar 18, 2024 · 12 comments

Comments

@GiovanH
Copy link

GiovanH commented Mar 18, 2024

Locally testing the server using docker (as per https://github.com/wallabag/wallabag/blob/master/.github/CONTRIBUTING.md#using-docker) always throws the error "Authentication request could not be processed due to a system problem." when trying to authenticate at the login page.

Confirmed with an existing database and also a brand new sqlite database created with new user wallabag/wallabag.

As far as I can tell there is no useful output in any logs.

image
image

Wallabag is installed fresh and successfully through the installer:

image

Environment

  • Version: git master
  • Installation: N/A
My app/config/parameters.yml is:
parameters:
    database_driver: pdo_sqlite
    database_host: 127.0.0.1
    database_port: ~
    database_name: symfony
    database_user: root
    database_password: ~
    database_path: 'wallabag.sqlite'
    database_table_prefix: wallabag_
    database_socket: null
    database_charset: utf8

    domain_name: http://garnet:8002
    server_name: "Your wallabag instance"

    mailer_dsn: "smtp://127.0.0.1"

    locale: en

    # A secret key that's used to generate certain security-related tokens
    secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv

    # two factor stuff
    twofactor_sender: no-reply@wallabag.org

    # fosuser stuff
    fosuser_registration: false
    fosuser_confirmation: true

    fos_oauth_server_access_token_lifetime: 3600
    fos_oauth_server_refresh_token_lifetime: 1209600

    from_email: wallabag@example.com

    rss_limit: 50

    # RabbitMQ processing
    rabbitmq_host: rabbitmq
    rabbitmq_port: 5672
    rabbitmq_user: guest
    rabbitmq_password: guest
    rabbitmq_prefetch_count: 10

    # Redis processing
    redis_scheme: tcp
    redis_host: redis
    redis_port: 6379
    redis_path: ~
    redis_password: ~

    # Sentry
    sentry_dsn: ~

@GiovanH
Copy link
Author

GiovanH commented Mar 18, 2024

image

Is this anything?

@GiovanH
Copy link
Author

GiovanH commented Mar 20, 2024

I was able to resolve this: the database_path absolutely must be DATABASE_PATH="%kernel.project_dir%/data/db/wallabag.sqlite", or this error is reported with no explanation.

This is still an issue: why is this? Can it be fixed? If not, should this be a user-configurable variable at all? (Probably not.)

@GiovanH GiovanH changed the title Development docker image always reports "Authentication request could not be processed due to a system problem." DATABASE_PATH cannot be changed without error "Authentication request could not be processed due to a system problem." Mar 20, 2024
@j0k3r
Copy link
Member

j0k3r commented Mar 20, 2024

Can't this be a permission issue? Maybe wallabag can't write on the file you defined before?

@airdogvan
Copy link

same error, docker on Ubuntu 20.04 LTS after Wallabag update.

Been running this for years without problems.

@j0k3r
Copy link
Member

j0k3r commented Mar 21, 2024

@airdogvan from what version to what version?

@airdogvan
Copy link

not sure, last time I updated was about 6 months ago. Any way to get the current version? I can run docker exec -it wallabag_container sh.

@j0k3r
Copy link
Member

j0k3r commented Mar 21, 2024

It's available in the /about page

@airdogvan
Copy link

https://my_wallabag/about

results in

https://my_wallabag/login

Cannot login ...

@j0k3r
Copy link
Member

j0k3r commented Mar 21, 2024

Otherwise cat app/config/wallabag.yml

@airdogvan
Copy link

version: 2.6.8

@airdogvan
Copy link

ok, problem solved. Hadn't update in a while and forgot to do:

docker exec wallabag_container_name /var/www/wallabag/bin/console doctrine:migrations:migrate --env=prod --no-interaction

Now works fine.

Sorry for the trouble.

@arvigeus
Copy link

@airdogvan I executed that command, and now I get attempt to write a readonly database when trying to login. Weirdly enough, when I refresh the page I am logged in!

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

4 participants