NEWS
Grafana per Browser nicht mehr erreichbar
-
@gmt94 Stimmt denn die IP-Adresse noch? Nicht, dass z.B. das Lesezeichen auf eine falsche IP verweist ...
Ansonsten in
/var/log/grafana/grafana.log
Nachschauen, ob sich etwas Auffälliges findet ...
-
@gmt94 sagte in Grafana per Browser nicht mehr erreichbar:
Hab dann per SSH Grafana wieder gelöscht und neuinstalliert
wie bzw mit welchen Befehlen?
entscheidend ist das löschen, den "einfaches" löschen, entfernt nur grafana, nicht aber die config -
@martinp said in Grafana per Browser nicht mehr erreichbar:
/var/log/grafana/grafana.log
da kommt das hier:
Henning@Henning:~ $ /var/log/grafana/grafana.log -bash: /var/log/grafana/grafana.log: Permission denied
-
ich habe das hier im Internet gefunden:
sudo apt-get remove --auto-remove grafana sudo apt-get purge --auto-remove grafana sudo apt-get autoclean sudo apt-get autoremove
was wären die Befehle um Grafana komplett vom System zu bekommen?
-
@gmt94 ja ist ok, würde auch so reichen
sudo apt-get remove --purge grafana sudo apt-get autoremove
was sagt denn der grafana status?
sudo systemctl status grafana-server
-
@crunchip said in Grafana per Browser nicht mehr erreichbar:
sudo systemctl status grafana-server
Da kommt failed:
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Dec 14 12:50:58 2024 from 192.168.178.15 Wi-Fi is currently blocked by rfkill. Use raspi-config to set the country before use. Henning@Henning:~ $ sudo systemctl status grafana-server × grafana-server.service - Grafana instance Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; prese> Active: failed (Result: exit-code) since Sat 2024-12-14 13:15:06 CET; 8min> Duration: 111ms Docs: http://docs.grafana.org Process: 3663 ExecStart=/usr/share/grafana/bin/grafana server --config=${CO> Main PID: 3663 (code=exited, status=1/FAILURE) CPU: 141ms Dec 14 13:15:06 Henning systemd[1]: grafana-server.service: Scheduled restart j> Dec 14 13:15:06 Henning systemd[1]: Stopped grafana-server.service - Grafana in> Dec 14 13:15:06 Henning systemd[1]: grafana-server.service: Start request repea> Dec 14 13:15:06 Henning systemd[1]: grafana-server.service: Failed with result > Dec 14 13:15:06 Henning systemd[1]: Failed to start grafana-server.service - Gr> lines 1-14/14 (END)
-
Mach das Mäusekino mal auf Breitformat.
Dann sieht man auch mehr von den Meldugen. -
@gmt94 sagte in Grafana per Browser nicht mehr erreichbar:
Da kommt failed:
erst später!
Das dazwischen ist alles abgeschnitten
-
sorry, jetzt auch gesehen:
Henning@Henning:~ $ sudo systemctl status grafana-server × grafana-server.service - Grafana instance Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sat 2024-12-14 13:30:29 CET; 17min ago Duration: 121ms Docs: http://docs.grafana.org Process: 4521 ExecStart=/usr/share/grafana/bin/grafana server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid --packaging=deb cfg:default.paths.logs=${LOG_DIR} cfg:d> Main PID: 4521 (code=exited, status=1/FAILURE) CPU: 147ms Dec 14 13:30:29 Henning systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE Dec 14 13:30:29 Henning systemd[1]: grafana-server.service: Failed with result 'exit-code'. Dec 14 13:30:29 Henning systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 5. Dec 14 13:30:29 Henning systemd[1]: Stopped grafana-server.service - Grafana instance. Dec 14 13:30:29 Henning systemd[1]: grafana-server.service: Start request repeated too quickly. Dec 14 13:30:29 Henning systemd[1]: grafana-server.service: Failed with result 'exit-code'. Dec 14 13:30:29 Henning systemd[1]: Failed to start grafana-server.service - Grafana instance. lines 1-16/16 (END)
-
Da wird der Service zu schnell versucht wieder herzustellen.
Das kann eine Folge von falschen Token / Passworten sein.
Dann startet der nämlich durch und ein Neustart wird versucht. -
und wie kann ich das unterbinden oder reparieren?
-
@gmt94 sagte in Grafana per Browser nicht mehr erreichbar:
Henning@Henning:~ $ /var/log/grafana/grafana.log
-bash: /var/log/grafana/grafana.log: Permission deniedless /var/log/grafana/grafana.log
wäre ein richtiges Kommando an der Stelle.
-
@thomas-braun said in Grafana per Browser nicht mehr erreichbar:
less /var/log/grafana/grafana.log
Henning@Henning:~ $ less /var/log/grafana/grafana.log /var/log/grafana/grafana.log: Permission denied Henning@Henning:~ $
-
@gmt94 sagte in Grafana per Browser nicht mehr erreichbar:
und wie kann ich das unterbinden oder reparieren?
Richtiges PW verwenden (wenn es denn an den Credentials liegt)
-
@gmt94 dass die Grafana log files von einem normalen User nicht gelesen dürfen ist merkwürdig.
Versuche es mal mit vorangestelltem sudo -
Henning@Henning:~ $ sudo less /var/log/grafana/grafana.log logger=settings t=2024-12-14T11:42:28.980263952+01:00 level=info msg="Starting Grafana" version=11.2.0 commit=c57667e4481563f5e6cf945b03bc0626caa4dbeb branch=HEAD compiled=2024-12-14T11:42:28+01:00 logger=settings t=2024-12-14T11:42:28.980816251+01:00 level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini logger=settings t=2024-12-14T11:42:28.980858548+01:00 level=info msg="Config loaded from" file=/etc/grafana/grafana.ini logger=settings t=2024-12-14T11:42:28.980869288+01:00 level=info msg="Config overridden from command line" arg="default.paths.data=/var/lib/grafana" logger=settings t=2024-12-14T11:42:28.980878807+01:00 level=info msg="Config overridden from command line" arg="default.paths.logs=/var/log/grafana" logger=settings t=2024-12-14T11:42:28.98088664+01:00 level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins" logger=settings t=2024-12-14T11:42:28.980894752+01:00 level=info msg="Config overridden from command line" arg="default.paths.provisioning=/etc/grafana/provisioning" logger=settings t=2024-12-14T11:42:28.980903381+01:00 level=info msg=Target target=[all] logger=settings t=2024-12-14T11:42:28.980925752+01:00 level=info msg="Path Home" path=/usr/share/grafana logger=settings t=2024-12-14T11:42:28.980933085+01:00 level=info msg="Path Data" path=/var/lib/grafana logger=settings t=2024-12-14T11:42:28.980940363+01:00 level=info msg="Path Logs" path=/var/log/grafana logger=settings t=2024-12-14T11:42:28.980947733+01:00 level=info msg="Path Plugins" path=/var/lib/grafana/plugins logger=settings t=2024-12-14T11:42:28.98100553+01:00 level=info msg="Path Provisioning" path=/etc/grafana/provisioning logger=settings t=2024-12-14T11:42:28.981014345+01:00 level=info msg="App mode production" logger=featuremgmt t=2024-12-14T11:42:28.981466069+01:00 level=info msg=FeatureToggles lokiQueryHints=true alertingNoDataErrorExecution=true prometheusDataplane=true topnav=true prometheusConfigOverhaulAuth=true logsContextDatasourceUi=true addFieldFromCalculationStatFunctions=true logsExploreTableVisualisation=true annotationPermissionUpdate=true recordedQueriesMulti=true managedPluginsInstall=true dashgpt=true alertingSimplifiedRouting=true angularDeprecationUI=true nestedFolders=true prometheusAzureOverrideAudience=true transformationsRedesign=true recoveryThreshold=true cloudWatchRoundUpEndTime=true lokiStructuredMetadata=true transformationsVariableSupport=true groupToNestedTableTransformation=true dataplaneFrontendFallback=true prometheusMetricEncyclopedia=true awsAsyncQueryCaching=true logsInfiniteScrolling=true formatString=true logRowsPopoverMenu=true correlations=true exploreMetrics=true tlsMemcached=true panelMonitoring=true publicDashboards=true influxdbBackendMigration=true ssoSettingsApi=true cloudWatchNewLabelParsing=true alertingInsights=true cloudWatchCrossAccountQuerying=true lokiMetricDataplane=true autoMigrateXYChartPanel=true lokiQuerySplitting=true kubernetesPlaylists=true logger=sqlstore t=2024-12-14T11:42:28.981636774+01:00 level=info msg="Connecting to DB" dbtype=sqlite3 logger=sqlstore t=2024-12-14T11:42:28.981669422+01:00 level=info msg="Creating SQLite database file" path=/var/lib/grafana/grafana.db logger=migrator t=2024-12-14T11:42:28.984510714+01:00 level=info msg="Locking database" logger=migrator t=2024-12-14T11:42:28.984566955+01:00 level=info msg="Starting DB migrations" logger=migrator t=2024-12-14T11:42:28.985813369+01:00 level=info msg="Executing migration" id="create migration_log table" logger=migrator t=2024-12-14T11:42:28.988262455+01:00 level=info msg="Migration successfully executed" id="create migration_log table" duration=2.446456ms logger=migrator t=2024-12-14T11:42:28.994678727+01:00 level=info msg="Executing migration" id="create user table" logger=migrator t=2024-12-14T11:42:28.996875479+01:00 level=info msg="Migration successfully executed" id="create user table" duration=2.195715ms logger=migrator t=2024-12-14T11:42:29.00007505+01:00 level=info msg="Executing migration" id="add unique index user.login" logger=migrator t=2024-12-14T11:42:29.001292001+01:00 level=info msg="Migration successfully executed" id="add unique index user.login" duration=1.218414ms logger=migrator t=2024-12-14T11:42:29.005608041+01:00 level=info msg="Executing migration" id="add unique index user.email" logger=migrator t=2024-12-14T11:42:29.006858899+01:00 level=info msg="Migration successfully executed" id="add unique index user.email" duration=1.251839ms logger=migrator t=2024-12-14T11:42:29.009465189+01:00 level=info msg="Executing migration" id="drop index UQE_user_login - v1" logger=migrator t=2024-12-14T11:42:29.010295879+01:00 level=info msg="Migration successfully executed" id="drop index UQE_user_login - v1" duration=831.004µs logger=migrator t=2024-12-14T11:42:29.016269779+01:00 level=info msg="Executing migration" id="drop index UQE_user_email - v1" logger=migrator t=2024-12-14T11:42:29.017043171+01:00 level=info msg="Migration successfully executed" id="drop index UQE_user_email - v1" duration=773.207µs logger=migrator t=2024-12-14T11:42:29.019526258+01:00 level=info msg="Executing migration" id="Rename table user to user_v1 - v1" logger=migrator t=2024-12-14T11:42:29.022404809+01:00 level=info msg="Migration successfully executed" id="Rename table user to user_v1 - v1" duration=2.876588ms logger=migrator t=2024-12-14T11:42:29.025288416+01:00 level=info msg="Executing migration" id="create user table v2" logger=migrator t=2024-12-14T11:42:29.026734701+01:00 level=info msg="Migration successfully executed" id="create user table v2" duration=1.445748ms logger=migrator t=2024-12-14T11:42:29.02972879+01:00 level=info msg="Executing migration" id="create index UQE_user_login - v2" logger=migrator t=2024-12-14T11:42:29.030753554+01:00 level=info msg="Migration successfully executed" id="create index UQE_user_login - v2" duration=1.026264ms logger=migrator t=2024-12-14T11:42:29.0333339+01:00 level=info msg="Executing migration" id="create index UQE_user_email - v2" logger=migrator t=2024-12-14T11:42:29.034199608+01:00 level=info msg="Migration successfully executed" id="create index UQE_user_email - v2" duration=865.486µs logger=migrator t=2024-12-14T11:42:29.036884585+01:00 level=info msg="Executing migration" id="copy data_source v1 to v2" logger=migrator t=2024-12-14T11:42:29.037544273+01:00 level=info msg="Migration successfully executed" id="copy data_source v1 to v2" duration=658.744µs logger=migrator t=2024-12-14T11:42:29.040558918+01:00 level=info msg="Executing migration" id="Drop old table user_v1" logger=migrator t=2024-12-14T11:42:29.04135607+01:00 level=info msg="Migration successfully executed" id="Drop old table user_v1" duration=797.319µs logger=migrator t=2024-12-14T11:42:29.044195213+01:00 level=info msg="Executing migration" id="Add column help_flags1 to user table" logger=migrator t=2024-12-14T11:42:29.045865592+01:00 level=info msg="Migration successfully executed" id="Add column help_flags1 to user table" duration=1.669638ms logger=migrator t=2024-12-14T11:42:29.048629254+01:00 level=info msg="Executing migration" id="Update user table charset" logger=migrator t=2024-12-14T11:42:29.048692606+01:00 level=info msg="Migration successfully executed" id="Update user table charset" duration=65.316µs /var/log/grafana/grafana.log
-
ja okay, wo soll ich das richtige PW eingeben? Sorry ich stehe da gerade auf dem Schlauch
-
@gmt94 sagte in Grafana per Browser nicht mehr erreichbar:
wo soll ich das richtige PW eingeben?
Keine Ahnung. Ich verwende kein grafana.
-
@gmt94 lösch doch nochmal grafana, vllt hatte es vorhin nicht funktioniert und die fehlerhafte config, bzw Datenbank war noch vorhanden, dann kommt ebenfalls die Meldung
@gmt94 sagte in Grafana per Browser nicht mehr erreichbar:
Start request repeated too quickly.
-
Probiere ich nachher nochmal wenn ich wieder zuhause bin.