Salut!

First thing would be to look at the actual service logs of the Prometheus
service.

Something like :

journalctl -u  prometheus.service

That should tell you what is failing to start and forcing systemd to kill
the service.

On Tue, May 4, 2021 at 10:38 AM Support IT Adept <supp...@itadept.fr> wrote:

> Hi,
>
> I use Prometheus but didn't set it up myself. Today I noticed that after a
> system reboot that the service prometheus.service keeps crashing over and
> over (tries to restart non-stop).
>
> I searched online but being relatively new to Linux/shell I didn't find
> anything helpful.
>
> I joined this group after seeing it on the Prometheus Home Page, I hope
> I'm at the right place for troubleshouting...
>
> Okay so here are the error messages, I can upload some logs etc. if needed
> :) Oh and I don't think this should be caused by configuration files
> because it happened after a reboot. But again, what do I know ? I'm still
> learning.
>
> [root@ns511725 centos]# systemctl --no-pager -l status prometheus.service
> ● prometheus.service - Prometheus
>    Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor
> preset: disabled)
>    Active: failed (Result: exit-code) since Tue 2021-05-04 15:49:51 CEST;
> 43min ago
>      Docs: https://prometheus.io/docs/introduction/overview/
>   Process: 586199 ExecStart=/usr/local/bin/prometheus
> --config.file=/etc/prometheus/prometheus.yml
> --storage.tsdb.path=/var/lib/prometheus
> --web.console.templates=/etc/prometheus/consoles
> --web.console.libraries=/etc/prometheus/console_libraries
> --web.listen-address=0.0.0.0:9090 --web.external-url= (code=exited,
> status=1/FAILURE)
>  Main PID: 586199 (code=exited, status=1/FAILURE)
>
> May 04 15:49:51 ns511725.ip-167-114-117.net systemd[1]:
> prometheus.service: Service RestartSec=100ms expired, scheduling restart.
> May 04 15:49:51 ns511725.ip-167-114-117.net systemd[1]:
> prometheus.service: Scheduled restart job, restart counter is at 5.
> May 04 15:49:51 ns511725.ip-167-114-117.net systemd[1]: Stopped
> Prometheus.
> May 04 15:49:51 ns511725.ip-167-114-117.net systemd[1]:
> prometheus.service: Start request repeated too quickly.
> May 04 15:49:51 ns511725.ip-167-114-117.net systemd[1]:
> prometheus.service: Failed with result 'exit-code'.
> May 04 15:49:51 ns511725.ip-167-114-117.net systemd[1]: Failed to start
> Prometheus.
>
> I found that the "Start request repeated too quickly" was not the issue
> here, but was caused by the crash (Prometheus tries to restart over and
> over and systemctl blocks it because of too many tries).
>
> Sorry for the bad explainings or bad english, I'm french lol. Tell me if
> you need  any logs or configuration files, although as I said earlier, I
> didn't installed it myself, I just went and snooped around the
> configuration files to see how it was set up.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to prometheus-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/bc9d8254-26f1-4d5f-9855-c330e94349d8n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/bc9d8254-26f1-4d5f-9855-c330e94349d8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAOAKi8zUOdQnmP%2BuP1569CTyCc9WZrbzxQV01Z%3D9LoX_K2WzbQ%40mail.gmail.com.

Reply via email to