@diana here is a view of the logs for all the services
~/cht/upgrade-service$ sudo docker ps -q | xargs -I {} sudo docker logs --tail 40 {}
COUCHDB_USER: medic
COUCHDB_UUID: 39f3718d-92fc-471b-9e7b-5d5590edae8a
SVC_NAME: couchdb
image: public.ecr.aws/medic/cht-couchdb:4.10.0
logging:
driver: local
options:
max-file: "20"
max-size: 50m
networks:
cht-net: null
restart: always
volumes:
- type: bind
source: /home/ubuntu/cht/couchdb
target: /opt/couchdb/data
bind:
create_host_path: true
- type: volume
source: cht-credentials
target: /opt/couchdb/etc/local.d/
volume: {}
networks:
cht-net:
name: cht-net
volumes:
cht-credentials:
name: cht_cht-credentials
Running cmd: docker compose -p cht -f /docker-compose/cht-core.yml -f /docker-compose/cht-couchdb.yml up -d --remove-orphans
Container ea0efd135791_ea0efd135791_ea0efd135791_ea0efd135791_ea0efd135791_ea0efd135791_cht-nginx-1 Recreate
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /docker-compose/certs
Error while starting containers Error: Container ea0efd135791_ea0efd135791_ea0efd135791_ea0efd135791_ea0efd135791_ea0efd135791_cht-nginx-1 Recreate
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /docker-compose/certs
at ChildProcess.<anonymous> (/app/src/docker-compose-cli.js:35:25)
at ChildProcess.emit (node:events:513:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
' "./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}}',
reason: '{gen_server,call,[<0.30903.3>,{pread_iolist,295293},infinity]}',
ref: 4070966599,
status: 500,
name: '{bad_return_value,\n' +
' {file_truncate_error,eof,\n' +
' "./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}}',
message: '{gen_server,call,[<0.30903.3>,{pread_iolist,295293},infinity]}',
stack: 'Error\n' +
' at Object.generateErrorFromResponse (/service/api/node_modules/pouchdb-errors/lib/index.js:104:18)\n' +
' at /service/api/node_modules/pouchdb-adapter-http/lib/index.js:254:33\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'
}
Info: Starting CHT API
2024-10-08T14:49:59.004 INFO: Running server checks…
Node Version: 20.15.1
Node Mode: "development"
Node Environment Options: 'undefined'
CouchDB Version: 3.3.3
2024-10-08T14:49:59.099 INFO: Checks passed successfully
2024-10-08T14:49:59.184 INFO: Extracting initial documents…
2024-10-08T14:49:59.279 INFO: Extracting initial documents completed successfully
2024-10-08T14:49:59.279 INFO: Merging translations…
2024-10-08T14:49:59.439 ERROR: Fatal error initialising API
2024-10-08T14:49:59.442 ERROR: {
error: '{bad_return_value,\n' +
' {file_truncate_error,eof,\n' +
' "./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}}',
reason: '{gen_server,call,[<0.31633.3>,{pread_iolist,295293},infinity]}',
ref: 4070966599,
status: 500,
name: '{bad_return_value,\n' +
' {file_truncate_error,eof,\n' +
' "./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}}',
message: '{gen_server,call,[<0.31633.3>,{pread_iolist,295293},infinity]}',
stack: 'Error\n' +
' at Object.generateErrorFromResponse (/service/api/node_modules/pouchdb-errors/lib/index.js:104:18)\n' +
' at /service/api/node_modules/pouchdb-adapter-http/lib/index.js:254:33\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'
}
2024-10-08T14:40:10.194 INFO: Waiting for API to be ready...
2024-10-08T14:40:25.211 INFO: Waiting for API to be ready...
2024-10-08T14:40:40.226 INFO: Waiting for API to be ready...
2024-10-08T14:40:50.239 INFO: Waiting for API to be ready...
2024-10-08T14:41:05.251 INFO: Waiting for API to be ready...
2024-10-08T14:41:20.267 INFO: Waiting for API to be ready...
2024-10-08T14:41:35.283 INFO: Waiting for API to be ready...
2024-10-08T14:41:50.299 INFO: Waiting for API to be ready...
2024-10-08T14:42:05.313 INFO: Waiting for API to be ready...
2024-10-08T14:42:20.324 INFO: Waiting for API to be ready...
2024-10-08T14:42:35.341 INFO: Waiting for API to be ready...
2024-10-08T14:42:50.349 INFO: Waiting for API to be ready...
2024-10-08T14:43:05.366 INFO: Waiting for API to be ready...
2024-10-08T14:43:20.381 INFO: Waiting for API to be ready...
2024-10-08T14:43:35.398 INFO: Waiting for API to be ready...
2024-10-08T14:43:50.414 INFO: Waiting for API to be ready...
2024-10-08T14:44:05.430 INFO: Waiting for API to be ready...
2024-10-08T14:44:20.445 INFO: Waiting for API to be ready...
2024-10-08T14:44:35.461 INFO: Waiting for API to be ready...
2024-10-08T14:44:50.478 INFO: Waiting for API to be ready...
2024-10-08T14:45:05.493 INFO: Waiting for API to be ready...
2024-10-08T14:45:20.509 INFO: Waiting for API to be ready...
2024-10-08T14:45:35.525 INFO: Waiting for API to be ready...
2024-10-08T14:45:50.541 INFO: Waiting for API to be ready...
2024-10-08T14:46:05.549 INFO: Waiting for API to be ready...
2024-10-08T14:46:20.565 INFO: Waiting for API to be ready...
2024-10-08T14:46:35.581 INFO: Waiting for API to be ready...
2024-10-08T14:46:50.597 INFO: Waiting for API to be ready...
2024-10-08T14:47:05.613 INFO: Waiting for API to be ready...
2024-10-08T14:47:20.629 INFO: Waiting for API to be ready...
2024-10-08T14:47:35.645 INFO: Waiting for API to be ready...
2024-10-08T14:47:50.662 INFO: Waiting for API to be ready...
2024-10-08T14:48:05.679 INFO: Waiting for API to be ready...
2024-10-08T14:48:20.696 INFO: Waiting for API to be ready...
2024-10-08T14:48:35.712 INFO: Waiting for API to be ready...
2024-10-08T14:48:50.728 INFO: Waiting for API to be ready...
2024-10-08T14:49:05.744 INFO: Waiting for API to be ready...
2024-10-08T14:49:20.760 INFO: Waiting for API to be ready...
2024-10-08T14:49:35.777 INFO: Waiting for API to be ready...
2024-10-08T14:49:50.793 INFO: Waiting for API to be ready...
<150>Oct 8 14:46:56 haproxy[12]: 172.18.0.7,couchdb,200,1,141,0,POST,/_session,api,medic,'{"name":"medic","password":"***"}',399,1,54,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:46:56 haproxy[12]: 172.18.0.7,couchdb,200,6,13,0,GET,/medic/,api,0,'-',1116,6,893,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:46:56 haproxy[12]: 172.18.0.7,couchdb,200,3,3,0,GET,/medic/settings?,api,0,'-',124008,3,123742,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:46:56 haproxy[12]: 172.18.0.7,couchdb,500,45,117,0,GET,/medic/_all_docs?include_docs=true&startkey=%22messages-%22&endkey=%22messages-%EF%BF%B0%22,api,0,'-',493,11,223,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,2,0,0,GET,/,-,medic,'-',474,2,251,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,401,0,5,0,GET,/,-,-,'-',348,0,61,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,1,0,0,GET,/_membership,-,medic,'-',248,1,74,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,1,1,1,GET,/_membership,-,medic,'-',248,0,74,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,1,1,0,GET,/_membership,-,medic,'-',248,1,74,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,4,1,0,GET,/_users,-,medic,'-',1092,4,869,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,7,1,1,GET,/_replicator,-,medic,'-',1084,6,861,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,6,1,0,GET,/_global_changes,-,medic,'-',1122,6,899,'-'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,1,141,0,POST,/_session,api,medic,'{"name":"medic","password":"***"}',399,1,54,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,6,13,0,GET,/medic/,api,0,'-',1116,6,893,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,200,3,3,0,GET,/medic/settings?,api,0,'-',124008,3,123742,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:47:57 haproxy[12]: 172.18.0.7,couchdb,500,45,116,0,GET,/medic/_all_docs?include_docs=true&startkey=%22messages-%22&endkey=%22messages-%EF%BF%B0%22,api,0,'-',493,4,223,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,6,4,1,GET,/,-,medic,'-',474,5,251,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,401,1,5,0,GET,/,-,-,'-',348,1,61,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,1,0,0,GET,/_membership,-,medic,'-',248,1,74,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,1,1,1,GET,/_membership,-,medic,'-',248,0,74,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,1,1,0,GET,/_membership,-,medic,'-',248,1,74,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,4,1,0,GET,/_users,-,medic,'-',1092,4,869,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,6,1,1,GET,/_replicator,-,medic,'-',1084,5,861,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,3,1,0,GET,/_global_changes,-,medic,'-',1122,3,899,'-'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,2,141,0,POST,/_session,api,medic,'{"name":"medic","password":"***"}',399,2,54,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,3,13,0,GET,/medic/,api,0,'-',1116,3,893,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,200,3,5,0,GET,/medic/settings?,api,0,'-',124008,3,123742,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:48:58 haproxy[12]: 172.18.0.7,couchdb,500,42,118,0,GET,/medic/_all_docs?include_docs=true&startkey=%22messages-%22&endkey=%22messages-%EF%BF%B0%22,api,0,'-',493,6,223,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,3,6,1,GET,/,-,medic,'-',474,2,251,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,401,0,7,0,GET,/,-,-,'-',348,0,61,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,1,0,0,GET,/_membership,-,medic,'-',248,1,74,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,1,1,1,GET,/_membership,-,medic,'-',248,0,74,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,1,1,0,GET,/_membership,-,medic,'-',248,1,74,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,4,1,1,GET,/_users,-,medic,'-',1092,3,869,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,6,1,0,GET,/_replicator,-,medic,'-',1084,6,861,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,8,1,1,GET,/_global_changes,-,medic,'-',1122,7,899,'-'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,2,148,0,POST,/_session,api,medic,'{"name":"medic","password":"***"}',399,2,54,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,6,13,0,GET,/medic/,api,0,'-',1116,6,893,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,200,3,3,0,GET,/medic/settings?,api,0,'-',124008,3,123742,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
<150>Oct 8 14:49:59 haproxy[12]: 172.18.0.7,couchdb,500,44,119,0,GET,/medic/_all_docs?include_docs=true&startkey=%22messages-%22&endkey=%22messages-%EF%BF%B0%22,api,0,'-',493,10,223,'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'
2024-09-06 17:03:45,614 - healthcheck - WARNING - Serving on ('0.0.0.0', 5555)
2024-09-19 19:47:05,776 - healthcheck - WARNING - Serving on ('0.0.0.0', 5555)
2024-09-23 09:13:35,819 - healthcheck - WARNING - Serving on ('0.0.0.0', 5555)
2024-09-23 09:18:33,524 - healthcheck - WARNING - Serving on ('0.0.0.0', 5555)
2024-10-07 13:25:10,808 - healthcheck - WARNING - Serving on ('0.0.0.0', 5555)
2024-10-08 11:48:26,121 - healthcheck - WARNING - Serving on ('0.0.0.0', 5555)
[error] 2024-10-08T14:49:59.422396Z couchdb@127.0.0.1 <0.24947.3> 8d30c1db7d req_err(4070966599) {bad_return_value,
{file_truncate_error,eof,
"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}} : {gen_server,call,[<0.31597.3>,{pread_iolist,295293},infinity]}
[<<"gen_server:call/3 L247">>,<<"couch_file:pread_iolist/2 L170">>,<<"couch_file:pread_binary/2 L166">>,<<"couch_file:pread_term/2 L155">>,<<"couch_btree:get_node/2 L474">>,<<"couch_btree:stream_node/8 L1069">>,<<"couch_btree:fold/4 L242">>,<<"couch_bt_engine:fold_docs_int/5 L1129">>]
[notice] 2024-10-08T14:49:59.422913Z couchdb@127.0.0.1 <0.24947.3> 8d30c1db7d haproxy:5984 172.18.0.7 medic GET /medic/_all_docs?include_docs=true&startkey=%22messages-%22&endkey=%22messages-%EF%BF%B0%22 500 ok 8
[info] 2024-10-08T14:49:59.427973Z couchdb@127.0.0.1 <0.260.0> -------- db shards/eaaaaaa7-ffffffff/medic.1721926601 died with reason {bad_return_value,{file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}}
[error] 2024-10-08T14:49:59.428000Z couchdb@127.0.0.1 <0.31617.3> ffd56e5fe0 rexi_server: from: couchdb@127.0.0.1(<0.24947.3>) mfa: fabric_rpc:all_docs/3 exit:{{bad_return_value,{file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}},{gen_server,call,[<0.31615.3>,{pread_iolist,295293},infinity]}} [{gen_server,call,3,[{file,"gen_server.erl"},{line,247}]},{couch_file,pread_iolist,2,[{file,"src/couch_file.erl"},{line,170}]},{couch_file,pread_binary,2,[{file,"src/couch_file.erl"},{line,166}]},{couch_file,pread_term,2,[{file,"src/couch_file.erl"},{line,155}]},{couch_btree,get_node,2,[{file,"src/couch_btree.erl"},{line,474}]},{couch_btree,stream_node,8,[{file,"src/couch_btree.erl"},{line,1069}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,242}]},{couch_bt_engine,fold_docs_int,5,[{file,"src/couch_bt_engine.erl"},{line,1129}]}]
[error] 2024-10-08T14:49:59.428165Z couchdb@127.0.0.1 <0.24947.3> ffd56e5fe0 req_err(4070966599) {bad_return_value,
{file_truncate_error,eof,
"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}} : {gen_server,call,[<0.31615.3>,{pread_iolist,295293},infinity]}
[<<"gen_server:call/3 L247">>,<<"couch_file:pread_iolist/2 L170">>,<<"couch_file:pread_binary/2 L166">>,<<"couch_file:pread_term/2 L155">>,<<"couch_btree:get_node/2 L474">>,<<"couch_btree:stream_node/8 L1069">>,<<"couch_btree:fold/4 L242">>,<<"couch_bt_engine:fold_docs_int/5 L1129">>]
[error] 2024-10-08T14:49:59.428894Z couchdb@127.0.0.1 <0.31615.3> -------- gen_server <0.31615.3> terminated with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}
last msg: redacted
state: [{data,[{"State",{file,{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112582.122247>,owner => <0.31615.3>,r_ahead_size => 0,r_buffer => #Ref<0.2384282298.345636865.212641>}},false,303316,#Ref<0.2384282298.345505793.212647>,infinity}},{"InitialFilePath","./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}]}]
extra: [<0.31617.3>,[{gen,do_call,4,[{file,"gen.erl"},{line,214}]},{gen_server,call,3,[{file,"gen_server.erl"},{line,243}]},{couch_file,pread_iolist,2,[{file,"src/couch_file.erl"},{line,170}]},{couch_file,pread_binary,2,[{file,"src/couch_file.erl"},{line,166}]},{couch_file,pread_term,2,[{file,"src/couch_file.erl"},{line,155}]},{couch_btree,get_node,2,[{file,"src/couch_btree.erl"},{line,474}]},{couch_btree,stream_node,8,[{file,"src/couch_btree.erl"},{line,1069}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,242}]}]]
[error] 2024-10-08T14:49:59.429219Z couchdb@127.0.0.1 <0.31615.3> -------- gen_server <0.31615.3> terminated with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}
last msg: redacted
state: [{data,[{"State",{file,{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112582.122247>,owner => <0.31615.3>,r_ahead_size => 0,r_buffer => #Ref<0.2384282298.345636865.212641>}},false,303316,#Ref<0.2384282298.345505793.212647>,infinity}},{"InitialFilePath","./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}]}]
extra: [<0.31617.3>,[{gen,do_call,4,[{file,"gen.erl"},{line,214}]},{gen_server,call,3,[{file,"gen_server.erl"},{line,243}]},{couch_file,pread_iolist,2,[{file,"src/couch_file.erl"},{line,170}]},{couch_file,pread_binary,2,[{file,"src/couch_file.erl"},{line,166}]},{couch_file,pread_term,2,[{file,"src/couch_file.erl"},{line,155}]},{couch_btree,get_node,2,[{file,"src/couch_btree.erl"},{line,474}]},{couch_btree,stream_node,8,[{file,"src/couch_btree.erl"},{line,1069}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,242}]}]]
[error] 2024-10-08T14:49:59.429441Z couchdb@127.0.0.1 <0.31615.3> -------- CRASH REPORT Process (<0.31615.3>) with 1 neighbors exited with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"} at gen_server:handle_common_reply/8(line:815) <= proc_lib:init_p_do_apply/3(line:226); initial_call: {couch_file,init,['Argument__1']}, ancestors: [<0.31614.3>,<0.31613.3>], message_queue_len: 0, links: [<0.31614.3>], dictionary: [{couch_file_fd,{{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112582.122247>,...}},...}},...], trap_exit: false, status: running, heap_size: 2586, stack_size: 29, reductions: 1658
[error] 2024-10-08T14:49:59.429656Z couchdb@127.0.0.1 <0.31615.3> -------- CRASH REPORT Process (<0.31615.3>) with 1 neighbors exited with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"} at gen_server:handle_common_reply/8(line:815) <= proc_lib:init_p_do_apply/3(line:226); initial_call: {couch_file,init,['Argument__1']}, ancestors: [<0.31614.3>,<0.31613.3>], message_queue_len: 0, links: [<0.31614.3>], dictionary: [{couch_file_fd,{{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112582.122247>,...}},...}},...], trap_exit: false, status: running, heap_size: 2586, stack_size: 29, reductions: 1658
[notice] 2024-10-08T14:49:59.431085Z couchdb@127.0.0.1 <0.24947.3> ffd56e5fe0 haproxy:5984 172.18.0.7 medic GET /medic/_all_docs?include_docs=true&startkey=%22messages-%22&endkey=%22messages-%EF%BF%B0%22 500 ok 8
[error] 2024-10-08T14:49:59.435795Z couchdb@127.0.0.1 <0.31633.3> -------- gen_server <0.31633.3> terminated with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}
last msg: redacted
state: [{data,[{"State",{file,{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112586.122230>,owner => <0.31633.3>,r_ahead_size => 0,r_buffer => #Ref<0.2384282298.345374722.155941>}},false,303316,#Ref<0.2384282298.345505793.212756>,infinity}},{"InitialFilePath","./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}]}]
extra: [<0.31634.3>,[{gen,do_call,4,[{file,"gen.erl"},{line,214}]},{gen_server,call,3,[{file,"gen_server.erl"},{line,243}]},{couch_file,pread_iolist,2,[{file,"src/couch_file.erl"},{line,170}]},{couch_file,pread_binary,2,[{file,"src/couch_file.erl"},{line,166}]},{couch_file,pread_term,2,[{file,"src/couch_file.erl"},{line,155}]},{couch_btree,get_node,2,[{file,"src/couch_btree.erl"},{line,474}]},{couch_btree,stream_node,8,[{file,"src/couch_btree.erl"},{line,1069}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,242}]}]]
[info] 2024-10-08T14:49:59.435897Z couchdb@127.0.0.1 <0.260.0> -------- db shards/eaaaaaa7-ffffffff/medic.1721926601 died with reason {bad_return_value,{file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}}
[error] 2024-10-08T14:49:59.436062Z couchdb@127.0.0.1 <0.31633.3> -------- gen_server <0.31633.3> terminated with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}
last msg: redacted
state: [{data,[{"State",{file,{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112586.122230>,owner => <0.31633.3>,r_ahead_size => 0,r_buffer => #Ref<0.2384282298.345374722.155941>}},false,303316,#Ref<0.2384282298.345505793.212756>,infinity}},{"InitialFilePath","./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}]}]
extra: [<0.31634.3>,[{gen,do_call,4,[{file,"gen.erl"},{line,214}]},{gen_server,call,3,[{file,"gen_server.erl"},{line,243}]},{couch_file,pread_iolist,2,[{file,"src/couch_file.erl"},{line,170}]},{couch_file,pread_binary,2,[{file,"src/couch_file.erl"},{line,166}]},{couch_file,pread_term,2,[{file,"src/couch_file.erl"},{line,155}]},{couch_btree,get_node,2,[{file,"src/couch_btree.erl"},{line,474}]},{couch_btree,stream_node,8,[{file,"src/couch_btree.erl"},{line,1069}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,242}]}]]
[error] 2024-10-08T14:49:59.436097Z couchdb@127.0.0.1 <0.31634.3> b50349e84e rexi_server: from: couchdb@127.0.0.1(<0.24947.3>) mfa: fabric_rpc:all_docs/3 exit:{{bad_return_value,{file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}},{gen_server,call,[<0.31633.3>,{pread_iolist,295293},infinity]}} [{gen_server,call,3,[{file,"gen_server.erl"},{line,247}]},{couch_file,pread_iolist,2,[{file,"src/couch_file.erl"},{line,170}]},{couch_file,pread_binary,2,[{file,"src/couch_file.erl"},{line,166}]},{couch_file,pread_term,2,[{file,"src/couch_file.erl"},{line,155}]},{couch_btree,get_node,2,[{file,"src/couch_btree.erl"},{line,474}]},{couch_btree,stream_node,8,[{file,"src/couch_btree.erl"},{line,1069}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,242}]},{couch_bt_engine,fold_docs_int,5,[{file,"src/couch_bt_engine.erl"},{line,1129}]}]
[error] 2024-10-08T14:49:59.436209Z couchdb@127.0.0.1 <0.31633.3> -------- CRASH REPORT Process (<0.31633.3>) with 1 neighbors exited with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"} at gen_server:handle_common_reply/8(line:815) <= proc_lib:init_p_do_apply/3(line:226); initial_call: {couch_file,init,['Argument__1']}, ancestors: [<0.31632.3>,<0.31631.3>], message_queue_len: 0, links: [<0.31632.3>], dictionary: [{couch_file_fd,{{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112586.122230>,...}},...}},...], trap_exit: false, status: running, heap_size: 2586, stack_size: 29, reductions: 1658
[error] 2024-10-08T14:49:59.436719Z couchdb@127.0.0.1 <0.31633.3> -------- CRASH REPORT Process (<0.31633.3>) with 1 neighbors exited with reason: bad return value {file_truncate_error,eof,"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"} at gen_server:handle_common_reply/8(line:815) <= proc_lib:init_p_do_apply/3(line:226); initial_call: {couch_file,init,['Argument__1']}, ancestors: [<0.31632.3>,<0.31631.3>], message_queue_len: 0, links: [<0.31632.3>], dictionary: [{couch_file_fd,{{file_descriptor,prim_file,#{handle => #Ref<0.2384282298.345112586.122230>,...}},...}},...], trap_exit: false, status: running, heap_size: 2586, stack_size: 29, reductions: 1658
[error] 2024-10-08T14:49:59.437691Z couchdb@127.0.0.1 <0.24947.3> b50349e84e req_err(4070966599) {bad_return_value,
{file_truncate_error,eof,
"./data/shards/eaaaaaa7-ffffffff/medic.1721926601.couch"}} : {gen_server,call,[<0.31633.3>,{pread_iolist,295293},infinity]}
[<<"gen_server:call/3 L247">>,<<"couch_file:pread_iolist/2 L170">>,<<"couch_file:pread_binary/2 L166">>,<<"couch_file:pread_term/2 L155">>,<<"couch_btree:get_node/2 L474">>,<<"couch_btree:stream_node/8 L1069">>,<<"couch_btree:fold/4 L242">>,<<"couch_bt_engine:fold_docs_int/5 L1129">>]
[notice] 2024-10-08T14:49:59.438162Z couchdb@127.0.0.1 <0.24947.3> b50349e84e haproxy:5984 172.18.0.7 medic GET /medic/_all_docs?include_docs=true&startkey=%22messages-%22&endkey=%22messages-%EF%BF%B0%22 500 ok 7
[notice] 2024-10-08T14:50:00.695953Z couchdb@127.0.0.1 <0.31415.3> 89edb9690b couchdb:5984 172.18.0.3 medic GET /_membership 200 ok 0