# Sidecar confgurations lost

**URL:** https://community.graylog.org/t/sidecar-confgurations-lost/15045
**Category:** Graylog Central (peer support)
**Tags:** sidecar
**Created:** [April 20, 2020, 5:31am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045 "2020-04-20T05:31:57Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 20, 2020, 5:31am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/1 "2020-04-20T05:31:57Z")

</div>

Hi,  
I am doing the installation and testing. I created a test linux host and installed sidecar. I did all the configuration and started receiving logs. Then I switched to Windows host did some configurations to sidecar. Was not directly successful and It was late in the night and I said “ok I will continue tomorrow”

When I came in the morning there was nothing left from sidecars on the interface.  
All the inputs were gone also.

I checked logs but could not see anything.  
Mongodb seems to be ok rs.status() showed all good.

what happened to my configurations why are they lost?

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 20, 2020, 5:38am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/2 "2020-04-20T05:38:29Z")

</div>

I found only this error : 2020-04-20T00:50:29+02:00 [07e0b5f1 / graylogpr1](http://123.456.789.111/system/nodes/07e0b5f1-5d71-4dc4-a413-d06078aa2861) Notification condition [NO\_MASTER] has been fixed.

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 24, 2020, 9:42am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/3 "2020-04-24T09:42:23Z")

</div>

this has happened again as of now I was working on the sidecar configuration and both sidecar configs got deleted suddenly. Where should I look for problem?

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 24, 2020, 9:43am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/4 "2020-04-24T09:43:50Z")

</div>

Here is the logs from graylog-server  
2020-04-24T00:32:45.546+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T01:32:45.542+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T02:32:45.542+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T03:32:45.549+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T04:32:45.541+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T05:32:45.545+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T06:32:45.546+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T07:32:45.543+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T08:32:45.553+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T09:32:45.541+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T10:32:45.542+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T11:32:45.548+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
2020-04-24T11:38:02.368+02:00 WARN [NodePingThread] Did not find meta info of this node. Re-registering.  
2020-04-24T11:38:02.373+02:00 ERROR [NodePingThread] Uncaught exception in periodical  
2020-04-24T11:38:03.359+02:00 WARN [NodePingThread] Did not find meta info of this node. Re-registering.

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 24, 2020, 9:49am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/5 "2020-04-24T09:49:03Z")

</div>

and a bit more from the logs

> 2020-04-24T10:32:45.542+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
> com.mongodb.DuplicateKeyException: Write failed with error code 11000 and error message 'E11000 duplicate key error collection: graylog.inde  
> x\_field\_types index: index\_name\_1 dup key: { : “graylog\_0” }

> 020-04-24T11:32:45.548+02:00 ERROR [IndexFieldTypePollerPeriodical] Uncaught exception in periodical  
> com.mongodb.DuplicateKeyException: Write failed with error code 11000 and error message ‘E11000 duplicate key error collection: graylog.inde  
> x\_field\_types index: index\_name\_1 dup key: { : “graylog\_0” }’

> 2020-04-24T11:38:02.368+02:00 WARN [NodePingThread] Did not find meta info of this node. Re-registering.  
> 2020-04-24T11:38:02.373+02:00 ERROR [NodePingThread] Uncaught exception in periodical  
> com.mongodb.WriteConcernException: Write failed with error code 215 and error message ‘Cannot create collection graylog.nodes - database is in the process of being dropped.’

Please Help.

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 24, 2020, 10:06am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/6 "2020-04-24T10:06:23Z")

</div>

seems like this problem is still not solved ?

> <https://github.com/Graylog2/graylog2-server/issues/7258>
>
> MongoDB upserts are not happen atomically and should be retried on failures.
> This is described here https://jira.mongodb.org/browse/SERVER-14322
> and only fixed in mongodb version...

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 24, 2020, 10:12am UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/7 "2020-04-24T10:12:52Z")

</div>

@bernd  
I have the version Graylog 3.2.4+a407287 and ssadly I still get this error ☹

---

<div class="post-metadata">

### Author: ![lcosta](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/lcosta/32/6109_2.png) [@lcosta](https://community.graylog.org/u/lcosta)
#### Post date: [April 24, 2020, 9:13pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/8 "2020-04-24T21:13:14Z")

</div>

Did you check the Index mencioned? “Graylog\_0” ? Is there an “Graylog\_1” without being the active index? you may try to drop the index in mongod and then try to reindex. This action you may lose all the index information. What´s the Mongodb logs says?

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 25, 2020, 1:45pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/9 "2020-04-25T13:45:34Z")

</div>

I could not find the index “Graylog\_0” or 1  
graylog:PRIMARY\> db.collection.  
… getFullName()  
test.collection  
graylog:PRIMARY\> db.collection.getFullName()  
test.collection  
graylog:PRIMARY\> db.collection.getIndexes()  
  
graylog:PRIMARY\> db.collection.getIndices()

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 25, 2020, 1:50pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/10 "2020-04-25T13:50:00Z")

</div>

@lcosta  
but I found this  
graylog:PRIMARY\> show dbs  
READ\_ME\_TO\_RECOVER\_YOUR\_DATA 0.000GB  
admin 0.000GB  
config 0.000GB  
graylog 0.002GB  
local 0.531GB

so graylog exists

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 25, 2020, 2:03pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/11 "2020-04-25T14:03:18Z")

</div>

seems like everything is deleted and dbs are defaulted  
I could not see anything in the logs

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [April 25, 2020, 2:19pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/12 "2020-04-25T14:19:24Z")

</div>

So I found something like this  
Seems like someone has connecte somehow to my unsecure server [conn83] and did drop Databese  
can it be because of this?

> 2020-04-24T11:38:01.976+0200 I NETWORK **[conn83]** received client metadata from **195.54.160.225** :33308 conn83: { driver: { name: “PyMongo”, version: “3.10.1” }, os: { type: “Linux”, name: “Linux”, architecture: “x86\_64”, version: “4.9.0-12-amd64” }, platform: “CPython 3.5.3.final.0” }  
> 2020-04-24T11:38:02.240+0200 I COMMAND [conn83] **dropDatabase graylog - starting**  
> 2020-04-24T11:38:02.240+0200 I COMMAND [conn83] dropDatabase graylog - dropping 40 collections  
> 2020-04-24T11:38:02.240+0200 I COMMAND [conn83] dropDatabase graylog - dropping collection: graylog.content\_packs  
> 2020-04-24T11:38:02.240+0200 I STORAGE [conn83] dropCollection: graylog.content\_packs (25443518-8f79-4e55-bb2a-aee8ad8fb402) - renaming to drop-pending collection: graylog.system.drop.1587721082i3t18.content\_packs with drop optime { ts: Timestamp(1587721082, 3), t: 18 }  
> 2020-04-24T11:38:02.240+0200 I STORAGE [conn83] renameCollection: renaming collection 25443518-8f79-4e55-bb2a-aee8ad8fb402 from graylog.content\_packs to graylog.system.drop.1587721082i3t18.content\_packs  
> 2020-04-24T11:38:02.242+0200 I COMMAND [conn83] dropDatabase graylog - dropping collection: graylog.streams  
> 2020-04-24T11:38:02.242+0200 I STORAGE [conn83] dropCollection: graylog.streams (ebe2de9f-ed25-4f53-9377-407864a35de6) - renaming to drop-pending collection: graylog.system.drop.1587721082i4t18.streams with drop optime { ts: Timestamp(1587721082, 4), t: 18 }  
> 2020-04-24T11:38:02.242+0200 I STORAGE [conn83] renameCollection: renaming collection ebe2de9f-ed25-4f53-9377-407864a35de6 from graylog.streams to graylog.system.drop.1587721082i4t18.streams  
> 2020-04-24T11:38:02.243+0200 I COMMAND [conn83] dropDatabase graylog - dropping collection: graylog.index\_field\_types  
> 2020-04-24T11:38:02.243+0200 I STORAGE [conn83] dropCollection: graylog.index\_field\_types (19deee44-b18e-49f8-94b5-bd4e5c33d4a4) - renaming to drop-pending collection: graylog.system.drop.1587721082i5t18.index\_field\_types with drop optime { ts: Timestamp(1587721082, 5), t: 18 }  
> 2020-04-24T11:38:02.243+0200 I STORAGE [conn83] **renameCollection: renaming collection 19deee44-b18e-49f8-94b5-bd4e5c33d4a4 from graylog.index\_field\_types to** graylog.system.drop.1587721082i5t18.index\_field\_types  
> 2020-04-24T11:38:02.246+0200 I COMMAND [conn83] dropDatabase graylog - dropping collection: graylog.sidecar\_collector\_actions

---

<div class="post-metadata">

### Author: ![lcosta](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/lcosta/32/6109_2.png) [@lcosta](https://community.graylog.org/u/lcosta)
#### Post date: [April 27, 2020, 12:03pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/13 "2020-04-27T12:03:37Z")

</div>

Someone drop the database you must reindex (recalculate index ranges) if not work, you can create manually

---

<div class="post-metadata">

### Author: ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)
#### Post date: [May 6, 2020, 2:11pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/14 "2020-05-06T14:11:33Z")

</div>

your public available mongodb is deleted by a random guy.

---

<div class="post-metadata">

### Author: ![CanBuyukburc](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@CanBuyukburc](https://community.graylog.org/u/CanBuyukburc)
#### Post date: [May 6, 2020, 2:23pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/15 "2020-05-06T14:23:34Z")

</div>

it takes less than 6 hours to be hacked without security 😅

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)
#### Post date: [May 20, 2020, 2:34pm UTC](https://community.graylog.org/t/sidecar-confgurations-lost/15045/16 "2020-05-20T14:34:01Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
