# Agent 1.33.0 won't start after successful installation

**URL:** <https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477>\
**Category:** Help\
**Tags:** agent\
**Created:** [January 27, 2022, 2:24pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477 "2022-01-27T14:24:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 2:24pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/1 "2022-01-27T14:24:34Z")

</div>

We have updated around 50 hosts to version 1.33.0 today, all of which are running Ubuntu with different versions ranging from 16 to 20. All updates went well except for one.

The installation with `kickerstart.sh` works through the whole process without any errors until it’s trying to start the service. It takes for ages and then fails with a timeout. Here is the relevant log from journalctl:

```auto
-- Unit netdata.service has begun starting up.
Jan 27 14:49:28 pcweb1 netdata[5368]: CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
Jan 27 14:49:28 pcweb1 netdata[5368]: 2022-01-27 14:49:28: netdata INFO : MAIN : CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
Jan 27 14:49:28 pcweb1 systemd[1]: netdata.service: Can't open PID file /var/run/netdata.pid (yet?) after start: No such file or directory
Jan 27 14:49:28 pcweb1 ebpf.plugin[5642]: Does not have a configuration file inside `/etc/netdata/ebpf.d.conf. It will try to load stock file.
Jan 27 14:49:28 pcweb1 ebpf.plugin[5642]: Name resolution is disabled, collector will not parser "hostnames" list.
Jan 27 14:49:28 pcweb1 ebpf.plugin[5642]: The network value of CIDR 127.0.0.1/8 was updated for 127.0.0.0 .
Jan 27 14:49:28 pcweb1 ebpf.plugin[5642]: PROCFILE: Cannot open file '/etc/netdata/apps_groups.conf'
Jan 27 14:49:28 pcweb1 ebpf.plugin[5642]: Cannot read process groups configuration file '/etc/netdata/apps_groups.conf'. Will try '/usr/lib/netdata/conf.d/apps_groups.conf'
Jan 27 14:49:28 pcweb1 ebpf.plugin[5642]: PROCFILE: Cannot open file '/proc/4142/status'
Jan 27 14:49:28 pcweb1 ebpf.plugin[5642]: Cannot open /proc/4142/status
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Start operation timed out. Terminating.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5370 (netdata) with signal SIGKILL.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5372 (netdata) with signal SIGKILL.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5627 (bash) with signal SIGKILL.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5629 (python3) with signal SIGKILL.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5630 (apps.plugin) with signal SIGKILL.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5642 (ebpf.plugin) with signal SIGKILL.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5648 (nfacct.plugin) with signal SIGKILL.
Jan 27 14:50:58 pcweb1 systemd[1]: netdata.service: Killing process 5650 (go.d.plugin) with signal SIGKILL.
Jan 27 14:51:01 pcweb1 systemd[1]: netdata.service: Failed with result 'timeout'.
Jan 27 14:51:01 pcweb1 systemd[1]: Failed to start Linux real time system monitoring, over the web.

```

The error log of netdata doesn’t tell anything specific and I have no idea why this should be timing out.

How can I further debug this or is anyone having an idea what could be wrong?

---

<div class="post-metadata">

**Author:** ![Austin\_Hemmelgarn](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/austin_hemmelgarn/32/4495_2.png) [@Austin\_Hemmelgarn](https://community.netdata.cloud/u/Austin_Hemmelgarn)\
**Post date:** [January 27, 2022, 2:33pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/2 "2022-01-27T14:33:20Z")

</div>

Can you please share the output of `netdata -W buildinfo` from the affected system? I _think_ I know what0s wrong, and the info there should help confirm it.

---

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 2:43pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/3 "2022-01-27T14:43:56Z")

</div>

> [@Austin\_Hemmelgarn](#):
>
> netdata -W buildinfo

```auto
Version: netdata v1.33.0
Configure options: '--build=x86_64-linux-gnu' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--with-user=netdata' '--with-math' '--with-zlib' '--with-webdir=/var/lib/netdata/www' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/usr/src/netdata=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/usr/src/netdata=. -fstack-protector-strong -Wformat -Werror=format-security'
Install type: binpkg-deb
    Binary architecture: x86_64
    Packaging distro:  
Features:
    dbengine: YES
    Native HTTPS: YES
    Netdata Cloud: YES 
    ACLK Next Generation: YES
    ACLK-NG New Cloud Protocol: YES
    ACLK Legacy: NO
    TLS Host Verification: YES
    Machine Learning: YES
    Stream Compression: NO
Libraries:
    protobuf: YES (system)
    jemalloc: NO
    JSON-C: YES
    libcap: NO
    libcrypto: YES
    libm: YES
    tcalloc: NO
    zlib: YES
Plugins:
    apps: YES
    cgroup Network Tracking: YES
    CUPS: YES
    EBPF: YES
    IPMI: YES
    NFACCT: YES
    perf: YES
    slabinfo: YES
    Xen: NO
    Xen VBD Error Tracking: NO
Exporters:
    AWS Kinesis: NO
    GCP PubSub: NO
    MongoDB: NO
    Prometheus Remote Write: YES

```

Here you go.

---

<div class="post-metadata">

**Author:** ![Austin\_Hemmelgarn](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/austin_hemmelgarn/32/4495_2.png) [@Austin\_Hemmelgarn](https://community.netdata.cloud/u/Austin_Hemmelgarn)\
**Post date:** [January 27, 2022, 3:23pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/4 "2022-01-27T15:23:43Z")

</div>

Thanks for the quick reply.

I _think_ what’s going on here is an issue we’ve seen intermittently with our binary packages where systemd does not try to use the correct path when looking for Netdata’s PID file.

On further inspection, it looks like this is actually a bug on our end.

Until we get if fixed on our end, you should be able to fix it by using `systemctl edit netdata.service` to create an override file containing the following:

```auto
[Service]
PIDFile=/var/run/netdata/netdata.pid
ExecStart=/usr/sbin/netdata -P /var/run/netdata/netdata.pid -D

```

---

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 3:28pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/5 "2022-01-27T15:28:04Z")

</div>

> [@Austin\_Hemmelgarn](#):
>
> ```auto
> [Service]
> PIDFile=/var/run/netdata/netdata.pid
> ExecStart=/usr/sbin/netdata -P /var/run/netdata/netdata.pid -D
> 
> ```

When I then start the service, it fails with the error message `netdata.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.`

---

<div class="post-metadata">

**Author:** ![Austin\_Hemmelgarn](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/austin_hemmelgarn/32/4495_2.png) [@Austin\_Hemmelgarn](https://community.netdata.cloud/u/Austin_Hemmelgarn)\
**Post date:** [January 27, 2022, 4:22pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/6 "2022-01-27T16:22:13Z")

</div>

Ah, yes, I forgot that systemd _overrides_ don’t actually override things, so special handling is needed

```auto
[Service]
PIDFile=/var/run/netdata/netdata.pid
ExecStart=
ExecStart=/usr/sbin/netdata -P /var/run/netdata/netdata.pid -D

```

should do it instead.

---

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 4:30pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/7 "2022-01-27T16:30:32Z")

</div>

Thanks @Austin_Hemmelgarn for your support on this. Unfortunately it still doesn’t work. With the latest changes in the service config, the override issue disappeared again. But the timeout issue came back.

I’ve checked and saw that `/var/run/netdata/` was missing, so I created it with netdata as the owner. But still, the issue persists.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 27, 2022, 4:44pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/8 "2022-01-27T16:44:10Z")

</div>

@jurgenhaas, hi.

Can you show `systemctl cat netdata`?

---

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 4:45pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/9 "2022-01-27T16:45:03Z")

</div>

> [@ilyam8](#):
>
> systemctl cat netdata

Sure, it’s this:

```auto
# /etc/systemd/system/netdata.service
[Unit]
Description=Linux real time system monitoring, over the web
After=network.target httpd.service squid.service nfs-server.service mysqld.service named.service postfix.service

[Service]
Type=forking
WorkingDirectory=/tmp
User=root
Group=root
PIDFile=/var/run/netdata.pid
ExecStart=/usr/sbin/netdata -pidfile /var/run/netdata.pid
KillMode=mixed
KillSignal=SIGTERM
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/netdata.service.d/override.conf
[Service]
PIDFile=/var/run/netdata/netdata.pid
ExecStart=
ExecStart=/usr/sbin/netdata -P /var/run/netdata/netdata.pid -D

```

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 27, 2022, 5:03pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/10 "2022-01-27T17:03:12Z")

</div>

What OS/version is on that host?

On a debian/ubuntu with systemd is [supposed to be](https://github.com/netdata/netdata/blob/7c1613d400914febfae3265f6273a978f4198edd/contrib/debian/rules#L12-L16) one of:

- [netdata.service.v235](https://github.com/netdata/netdata/blob/master/system/netdata.service.v235.in)
- [netdata.service](https://github.com/netdata/netdata/blob/master/system/netdata.service.v235.in)

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 27, 2022, 5:06pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/11 "2022-01-27T17:06:06Z")

</div>

> [@jurgenhaas](#):
>
> `/etc/systemd/system/netdata.service`

Is that your custom systemd unit file? I think the system’s copy is under `/lib/systemd/system/`

---

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 5:07pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/12 "2022-01-27T17:07:03Z")

</div>

It’s Ubuntu 18.04 but that systemd file dates back to 2016, the date when NetData was first installed on that host. At the time this was Ubuntu 14.

Is it possible, that the systemd file got created back then and the installer isn’t overwriting or updating that? If so, what’s your suggestion on how to clean that up?

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 27, 2022, 5:07pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/13 "2022-01-27T17:07:32Z")

</div>

Does `/lib/systemd/system/netdata.service` exist?

---

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 5:08pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/14 "2022-01-27T17:08:26Z")

</div>

Yes, and that looks more like the one you linked to in the source above.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 27, 2022, 5:11pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/15 "2022-01-27T17:11:21Z")

</div>

Not an expert, but I hope the following will do:

```auto
rm /etc/systemd/system/netdata.service
rm /etc/systemd/system/netdata.service.d/override.conf
systemctl daemon-reload
systemctl restart netdata

```

---

<div class="post-metadata">

**Author:** ![jurgenhaas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/jurgenhaas/32/126_2.png) [@jurgenhaas](https://community.netdata.cloud/u/jurgenhaas)\
**Post date:** [January 27, 2022, 5:14pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/16 "2022-01-27T17:14:04Z")

</div>

That’s it, thanks so much. This is now resolved.

So I should add such cleanup tasks to our Ansible deployment, unless this is something that goes into the update script of netdata?

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 27, 2022, 5:20pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/17 "2022-01-27T17:20:41Z")

</div>

To be honest I have no idea how come `netdata.service` ended up in `/etc/systemd/system/`.

But yeah, you need to remove `/etc/systemd/system/netdata.service` if `/lib/systemd/system/netdata.service` exists.

---

<div class="post-metadata">

**Author:** ![AW\_datanet](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@AW\_datanet](https://community.netdata.cloud/u/AW_datanet)\
**Post date:** [March 15, 2022, 4:24pm UTC](https://community.netdata.cloud/t/agent-1-33-0-wont-start-after-successful-installation/2477/18 "2022-03-15T16:24:18Z")

</div>

Same problem as per systemctl status netdata:

Process: 69xx ExecStart=/opt/netdata/usr/sbin/netdata -P /opt/netdata/var/run/netdata/netdata.pid -D (code=exited, status=1/FAILURE)

Is this override.conf needed?

```auto
# /etc/systemd/system/netdata.service.d/override.conf
[Service]
PIDFile=/var/run/netdata/netdata.pid
ExecStart=
ExecStart=/usr/sbin/netdata -P /var/run/netdata/netdata.pid -D

```

Please clarify: What is where needed(to be removed) to start netdata?

Version: netdata v1.33.1-165-g0ac6b4000 on Arch Linux reinstalled with  
“wget -O /tmp/netdata-kickstart.sh [https://my-netdata.io/kickstart.sh](https://my-netdata.io/kickstart.sh) && sh /tmp/netdata-kickstart.sh --reinstall”
