Skip to content

I get stuck at the login page of the FlaskMonitoring Dashboard #550

@MoranHanane

Description

@MoranHanane

Describe the bug
I get stuck at the login page of the FlaskMonitoring Dashboard. I tried many ways to overcome it but none of them worked. I tried to find some help on this page as well, but it did not much: #413

To Reproduce
Steps to reproduce the behavior:

  1. Set up 3 files: one Dashboard.cfg, one .env and one main.py file as following:

*Dashboard.cfg:
#Ce fichier configure le monitoring via SQLite local
[dashboard]
APP_VERSION=1.0
CUSTOM_LINK=dashboard
DATABASE=sqlite:////r'C:\Users\Utilisateur\Documents\Simplon_avant_crash\Python_notebooks\Bertrand\application_a_debugger\app\app\dashboard.db'
USERNAME=admin
PASSWORD=admin
GUEST_USERNAME=guest
GUEST_PASSWORD=['dashboardguest!', 'second_pw!']
GIT=https://github.com/MoranHanane/app_debug
OUTLIER_DETECTION_CONSTANT=2.5
TEST_DIR=//tests/
N=5
SUBMIT_RESULTS_URL=http://0.0.0.0:5000/dashboard/submit-test-results
COLORS={'main':[0,97,255], 'static':[255,153,0]}

[monitoring]
enabled = true
storage = sqlite:///flask_monitoringdashboard.db

[security]

basic_auth_enabled = true

basic_auth_username = admin

basic_auth_password = admin

*.env containing:
FLASK_SECRET_KEY=mykey

*main.py containing:
app = Flask(name)
app.secret_key = os.getenv("FLASK_SECRET_KEY")

config.init_from(os.path.join(os.path.dirname(file), "dashboard.cfg"))
dashboard.bind(app)

  1. remove "flask_monitoringdashboard.db" (same repo as ;env and .main.py)
    3.run again main.py on VS-Code
    4 Launch Flask (Running on http://127.0.0.1:5000)
  2. Open http://127.0.0.1:5000/dashboard
  3. Login with admin/admin
  4. http://127.0.0.1:5000/dashboard reloads exactly as if I hadn't tried any password.

Expected behavior
I expect someone to help me pass the login page and acess the real Flask monitoring Dashboardwith the expected admin/admin logins.

Screenshots
Here is where I get stuck:
Image

Desktop (please complete the following information):

  • OS: [e.g. Windows 11 Professionnal - 24H2]
  • Browser [e.g. Opera AND Firefox]
  • FMD Version: 5.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions