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

Getting static login page, unable to login from android application / wallabagger #7211

Open
Chickensoupwithrice opened this issue Jan 25, 2024 · 5 comments

Comments

@Chickensoupwithrice
Copy link

Environment

  • Version: 2.6.8
  • Installation: Nix
  • PHP version: 8.2.15
  • OS: NixOS
  • Database: Postgresql 15
  • Parameters:
My app/config/parameters.yml is:
        database_name: wallabag
        database_user: wallabag
        database_password: <hidden>
        database_path: ~
        database_table_prefix: wallabag_
        database_socket: null
        # with PostgreSQL and SQLite, you must set "utf8"
        database_charset: utf8

        domain_name: http://read.mossnet.lan
        server_name: "mossnet wallabag instance"

        mailer_dsn: null://
        locale: en

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

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

        # fosuser stuff
        fosuser_registration: false
        fosuser_confirmation: true

        # how long the access token should live in seconds for the API
        fos_oauth_server_access_token_lifetime: 3600
        # how long the refresh token should life in seconds for the API
        fos_oauth_server_refresh_token_lifetime: 1209600

        from_email: ops@sealight.xyz

        rss_limit: 50

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

        # Redis processing
        redis_scheme: tcp
        redis_host: localhost
        redis_port: 6379
        redis_path: null
        redis_password: null

        # sentry logging
        sentry_dsn: ~

What steps will reproduce the bug?

I have a systemd installation script for making the installation declarative, and am running it through a reverse nginx proxy on my LAN, as well a module for configuring wallabag which you can browse here. I can make this easier to reproduce if you're willing to install NixOS. The module also details my entire Nginx / phpfpm setup for inspection too (ie the root is set to /web)

The login page looks like this
image

I have little understanding of php, but reading through the autoload_real.php file I believe it may be related to static login page? As you can see, it's not attempting to load any of the other resources. When I try to login through the wallabag android app I get "no wallabag instance found at that URL", and the wallabagger extension fails without logs (I'm not sure where to find add-on debug logs to be fair).

I have had this installation since wallabag 2.6.6 and had previously ran this same setup with no issue, so I'm not sure what changed. Once I login, wallabag is working correctly, so I presume it's something going wrong with the login page, not the installation.

Happy to answer any other questions, would love some help getting this fixed, wallabag is crucial to my workflows

systemd installation script

        cd "${cfg.dataDir}"

        rm -rf var/cache/*
        rm -f app src translations
        ln -sf ${appDir}/app app
        ln -sf ${appDir}/src src
        ln -sf ${appDir}/translations translations
        ln -sf ${cfg.package}/composer.{json,lock} .

        export WALLABAG_DATA="${cfg.dataDir}"
        if [ ! -f installed ]; then
          echo "Install file not found, installing ..."
          php ${cfg.package}/bin/console --env=prod doctrine:database:create --if-not-exists --no-interaction
          php ${cfg.package}/bin/console --env=prod doctrine:migrations:migrate --no-interaction
          # Until https://github.com/wallabag/wallabag/issues/3662 is fixed
          # yes no | php ${cfg.package}/bin/console --env=prod wallabag:install
          touch installed
        else
          php ${cfg.package}/bin/console --env=prod doctrine:migrations:migrate --no-interaction
        fi
        php ${cfg.package}/bin/console --env=prod cache:clear

Thank you for making wallabag ♥️ it's great software

@j0k3r
Copy link
Member

j0k3r commented Jan 25, 2024

It's only the login page with is broken? Once logged in, styles are ok? Can you share the html of the login page?

@Chickensoupwithrice
Copy link
Author

Yes that's correct, only the login page is broken, styles load on login.

This is the html for the login page:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
    </head>
    <body>
        <div>
                            <a href="[/login](view-source:http://read.mossnet.lan/login)">Log in</a>
                    </div>

                            
        <div>
                

<form action="[/login_check](view-source:http://read.mossnet.lan/login_check)" method="post">
            <input type="hidden" name="_csrf_token" value="wQMwTVldiNC_KAnbeSetQeb0is5SuPuNOXdIvGwyesE" />
    
    <label for="username">Username</label>
    <input type="text" id="username" name="_username" value="" required="required" autocomplete="username" />

    <label for="password">Password</label>
    <input type="password" id="password" name="_password" required="required" autocomplete="current-password" />

    <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
    <label for="remember_me">Remember me</label>

    <input type="submit" id="_submit" name="_submit" value="Log in" />
</form>

        </div>
    </body>
</html>

@Chickensoupwithrice
Copy link
Author

Hey, did you manage to figure anything out? Anything you'd suggest I try? Would really love to get Wallabag up and running again.

@Chickensoupwithrice
Copy link
Author

Hey, sorry to bump, but would still really like some help woth this :)
Any ideas would be appreciated

@HolgerAusB
Copy link

Hi, I am not a dev and I haven't heard about NixOS yet. But I was wondering if there is also a webserver in front of wallabag? Apache2? Maybe you can post that webserver-config for wallabag. Some people like to change this, because wallabag is/was open for new user registration as a standard. So it is a good idea to prevent access to /register. I am just wild guessing if this config is blocking more, than it should.

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

3 participants