Получение 502 Bad Gateway от CouchDB v2.2.0 и beam.smp перезапускается каждый раз с новым PID - PullRequest
0 голосов
/ 27 мая 2019

Получение 502 Bad Gateway от CouchDB ( v2.2.0 ) и beam.smp перезапускается каждый раз с новым PID. Иногда я получаю 200 OK ответ.

Я столкнулся с этой проблемой за последние 2 дня (примечание: я использовал эту систему с последних 1,5 лет без каких-либо проблем) и получаю сообщение об ошибке ниже couchdb.log .

Я предпринял следующее действие: «Перезагрузите компьютер вместе с CouchDB». Но это мне не помогло.

     state: {os_proc,"bash /tmp/baby",#Port<0.8007>,#Fun<couch_os_process.writejson.2>,#Fun<couch_os_process.readjson.1>,5000,300000}
[error] 2019-05-27T09:25:22.821551Z couchdb@127.0.0.1 <0.1306.0> -------- Update notificatio process <0.1307.0> died: {exit_status,127}
[error] 2019-05-27T09:25:22.821834Z couchdb@127.0.0.1 <0.1307.0> -------- CRASH REPORT Process  (<0.1307.0>) with 0 neighbors exited with reason: {exit_status,127} at gen_server:terminate/7(line:826) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_os_process,init,['Argument__1']}, ancestors: [<0.1306.0>,couch_event_os_sup,couch_event_sup2,...], messages: [], links: [<0.1306.0>], dictionary: [], trap_exit: false, status: running, heap_size: 987, stack_size: 27, reductions: 807
[error] 2019-05-27T09:25:22.821948Z couchdb@127.0.0.1 <0.1199.0> -------- Supervisor couch_event_os_sup had child "index-updater" started with couch_event_os_listener:start_link("bash /tmp/baby") at <0.1306.0> exit with reason normal in context child_terminated
[error] 2019-05-27T09:25:22.834620Z couchdb@127.0.0.1 <0.1317.0> -------- OS Process died with status: 127
[error] 2019-05-27T09:25:22.834864Z couchdb@127.0.0.1 <0.1317.0> -------- gen_server <0.1317.0> terminated with reason: {exit_status,127}
  last msg: {#Port<0.8012>,{exit_status,127}}
     state: {os_proc,"bash /tmp/baby",#Port<0.8012>,#Fun<couch_os_process.writejson.2>,#Fun<couch_os_process.readjson.1>,5000,300000}
[error] 2019-05-27T09:25:22.834934Z couchdb@127.0.0.1 <0.1316.0> -------- Update notificatio process <0.1317.0> died: {exit_status,127}
[error] 2019-05-27T09:25:22.835131Z couchdb@127.0.0.1 <0.1317.0> -------- CRASH REPORT Process  (<0.1317.0>) with 0 neighbors exited with reason: {exit_status,127} at gen_server:terminate/7(line:826) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_os_process,init,['Argument__1']}, ancestors: [<0.1316.0>,couch_event_os_sup,couch_event_sup2,...], messages: [], links: [<0.1316.0>], dictionary: [], trap_exit: false, status: running, heap_size: 987, stack_size: 27, reductions: 807
[error] 2019-05-27T09:25:22.835279Z couchdb@127.0.0.1 <0.1199.0> -------- Supervisor couch_event_os_sup had child "index-updater" started with couch_event_os_listener:start_link("bash /tmp/baby") at <0.1316.0> exit with reason normal in context child_terminated
[error] 2019-05-27T09:25:22.835602Z couchdb@127.0.0.1 <0.1199.0> -------- Supervisor couch_event_os_sup had child "index-updater" started with couch_event_os_listener:start_link("bash /tmp/baby") at <0.1316.0> exit with reason reached_max_restart_intensity in context shutdown
[error] 2019-05-27T09:25:22.835963Z couchdb@127.0.0.1 <0.181.0> -------- Supervisor couch_event_sup2 had child couch_event_os_sup started with couch_event_os_sup:start_link() at <0.1199.0> exit with reason shutdown in context child_terminated
[error] 2019-05-27T09:25:22.836219Z couchdb@127.0.0.1 <0.181.0> -------- Supervisor couch_event_sup2 had child couch_event_os_sup started with couch_event_os_sup:start_link() at <0.1199.0> exit with reason reached_max_restart_intensity in context shutdown
[info] 2019-05-27T09:25:22.838955Z couchdb@127.0.0.1 <0.7.0> -------- Application couch_event exited with reason: shutdown
[error] 2019-05-27T09:25:22.853663Z couchdb@127.0.0.1 <0.323.0> -------- gen_server <0.323.0> terminated with reason: killed

1 Ответ

0 голосов
/ 28 мая 2019

Я удалил нижнюю строку из этого файла /opt/couchdb/etc/local.d/10-admins.ini и перезапустил CouchDB.Тогда это сработало.

[update_notification]
index-updater = bash /tmp/baby

Причина:

Вероятно, это было вызвано тем, что кто-то пытался использовать вашу машину в качестве майнера биткойнов или подобного через одну из известных уязвимостей в CouchDB 2.2.0.Они суммированы здесь: http://docs.couchdb.org/en/stable/cve/index.html

Лучше обновить как можно скорее до CouchDB 2.3.0 или 2.3.1.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...