Project

General

Profile

Actions

Bug #65436

closed
RG MK

Getting Object Crashing radosgw services

Bug #65436: Getting Object Crashing radosgw services

Added by Reid Guyett over 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Due date:
% Done:

0%

Source:
Community (user)
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v17.2.7-1229-g2cadefff559
Released In:
v17.2.8~247
Upkeep Timestamp:
2025-07-11T12:50:09+00:00

Description

Hello,

We are seeing crashes when users are trying to get a specific file.

2024-04-11T11:02:38.174+0000 7f6bbf6ee700 20 req 1201706618685104296 0.000000000s s3:get_obj get_obj_state: rctx=0x7f6fb47f6ac0 obj=<bucketname>:.cache/<112 characters>.jpg/<33 characters> state=0x7f698418d728 s->prefetch_data=1
2024-04-11T11:02:38.174+0000 7f6bbf6ee700 20 req 1201706618685104296 0.000000000s s3:get_obj get_obj_state: rctx=0x7f6fb47f6ac0 obj=<bucketname>:.cache/<112 characters>.jpg/<33 characters> state=0x7f698418d728 s->prefetch_data=1
2024-04-11T11:02:38.174+0000 7f6bbf6ee700 20 req 1201706618685104296 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.idtag
2024-04-11T11:02:38.174+0000 7f6bbf6ee700 20 req 1201706618685104296 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.manifest
2024-04-11T11:02:38.174+0000 7f6bbf6ee700 20 req 1201706618685104296 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.olh.idtag
2024-04-11T11:02:38.174+0000 7f6bbf6ee700 20 req 1201706618685104296 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.olh.info
2024-04-11T11:02:38.174+0000 7f6bbf6ee700 20 req 1201706618685104296 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.olh.ver
2024-04-11T11:02:38.178+0000 7f6bbf6ee700 -1 *** Caught signal (Aborted) **

This is reproducible by on this specific object:

$ s3cmd -c s3 get s3://<bucket>/.cache/<112 characters>.jpg/<33 characters> 
download: 's3://<bucket>/.cache/<112 characters>.jpg/<33 characters>' -> './<33 characters>'  [1 of 1]
ERROR: Error parsing xml: mismatched tag: line 6, column 2
ERROR: b'<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n'
ERROR: Download of './<33 characters>' failed (Reason: 502 (Bad Gateway))
ERROR: S3 error: 502 (Bad Gateway)

We are running:
rgw on 17.2.5
rest is 17.2.7
on Debian 11


Files

radosgw crash details (scrubbed).log (15.7 KB) radosgw crash details (scrubbed).log Full rgw log Reid Guyett, 04/11/2024 05:10 PM

Related issues 1 (0 open — 1 closed)

Has duplicate rgw - Bug #68978: rgw daemons have recently crashedDuplicate

Actions

HN Updated by hoan nv over 2 years ago Actions #1

I have same issue. After some days, i found bug https://tracker.ceph.com/issues/61359
After upgrade to 17.2.7, this bug gone. But i should delete error file, i can't fix this file.

CB Updated by Casey Bodley over 2 years ago Actions #2

  • Status changed from New to Need More Info

After upgrade to 17.2.7, this bug gone

it sounds like this bug is fixed in later point release, can you please try to upgrade? we can't do anything to fix 17.2.5 specifically

RG Updated by Reid Guyett over 2 years ago Actions #3

Hello,

I was able to test in 17.2.7 and the rgw service is still crashing with the same error message.


2024-05-02T17:26:25.256+0000 7f399f7be700 20 req 6086159647010032067 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.idtag
2024-05-02T17:26:25.256+0000 7f399f7be700 20 req 6086159647010032067 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.manifest
2024-05-02T17:26:25.256+0000 7f399f7be700 20 req 6086159647010032067 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.olh.idtag
2024-05-02T17:26:25.256+0000 7f399f7be700 20 req 6086159647010032067 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.olh.info
2024-05-02T17:26:25.256+0000 7f399f7be700 20 req 6086159647010032067 0.000000000s s3:get_obj Read xattr rgw_rados: user.rgw.olh.ver
2024-05-02T17:26:25.260+0000 7f399f7be700 -1 *** Caught signal (Aborted) **
 in thread 7f399f7be700 thread_name:radosgw

 ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)
 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x13140) [0x7f3adad98140]
 2: gsignal()
 3: abort()
 4: /lib/x86_64-linux-gnu/libstdc++.so.6(+0x9a7ec) [0x7f3adac527ec]
 5: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xa5966) [0x7f3adac5d966]
 6: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xa4a49) [0x7f3adac5ca49]
 7: __gxx_personality_v0()
 8: /lib/x86_64-linux-gnu/libgcc_s.so.1(+0x1073f) [0x7f3adabae73f]
 9: _Unwind_Resume()
 10: /lib/libradosgw.so.2(+0x53cccf) [0x7f3adb2e3ccf]
 11: /lib/libradosgw.so.2(+0x6388c6) [0x7f3adb3df8c6]
 12: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xceed0) [0x7f3adac86ed0]
 13: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7ea7) [0x7f3adad8cea7]
 14: clone()
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

HN Updated by hoan nv over 2 years ago Actions #4

Did you try with error file on old bucket ?
Error file can't fix by upgrade ceph. You need delete error file or all file on bucket.

After upgrade, you can try create bucket, enable bucket versioning, upload file then disable bucket versioning and try upload file. You must do it a few times. If no file error it will ok.

RG Updated by Reid Guyett over 2 years ago Actions #5

So the solution is to upgrade RGW, delete and recreate the bucket?

Since we do not own or control the data being uploaded by customers, I don't think it is really feasible. The RGW should return an HTTP error to the client instead of crashing the whole service.

HN Updated by hoan nv over 2 years ago Actions #7

Reid Guyett wrote in #note-6:

We are also blocked by https://tracker.ceph.com/issues/64308 in moving to 17.2.7.

I have same issue. I must config on proxy layer.

RG Updated by Reid Guyett over 2 years ago Actions #8

What did you do to fix it at the proxy layer? Strip the parameters from the URL?

HN Updated by hoan nv over 2 years ago Actions #9

Reid Guyett wrote in #note-8:

What did you do to fix it at the proxy layer? Strip the parameters from the URL?

Prefight CORS is options request, so you just catch all options request will be set CORS header is allow.

RG Updated by Reid Guyett over 2 years ago Actions #10

I was able to reproduce this error on 17.2.7.

Using [s3-tests](https://github.com/ceph/s3-tests/) test_versioning_obj_suspended_copy, I am able to reproduce the RGW crashing each time.

S3TEST_CONF=s3tests-new.conf tox -- s3tests_boto3/functional/test_s3.py::test_versioning_obj_suspended_copy

<...>
FAILED s3tests_boto3/functional/test_s3.py::test_versioning_obj_suspended_copy - botocore.exceptions.ClientError: An error occurred (502) when calling the GetObject operation (reached max retries: 4): Bad Gateway
ERROR s3tests_boto3/functional/test_s3.py::test_versioning_obj_suspended_copy - botocore.exceptions.ClientError: An error occurred (502) when calling the ListBuckets operation (reached max retries: 4): Bad Gateway

It has the same error in the RGW logs when crashing.

terminate called after throwing an instance of 'ceph::buffer::v15_2_0::end_of_buffer'
  what():  End of buffer
*** Caught signal (Aborted) **
 in thread 7f1550070700 thread_name:radosgw
 ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)

MK Updated by Mark Kogan over 2 years ago Actions #11

  • Assignee set to Mark Kogan

MK Updated by Mark Kogan over 2 years ago Actions #12

the second crash/abort() reproduces

terminate called after throwing an instance of 'ceph::buffer::v15_2_0::end_of_buffer'
  what():  End of buffer

when `git checkout v17.2.7`

gdb complete stack:

❯ vim ../qa/workunits/rgw/run-s3tests.sh
...
env S3TEST_CONF=s3tests.conf.SAMPLE tox -- -v s3tests_boto3/functional/test_s3.py::test_versioning_obj_suspended_copy
...
:x

❯ ../qa/workunits/rgw/run-s3tests.sh

terminate called after throwing an instance of 'ceph::buffer::v15_2_0::end_of_buffer'
  what():  End of buffer

Thread 103 "radosgw" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffc5bff640 (LWP 2054016)]
0x00007ffff4aa154c in __pthread_kill_implementation () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install cyrus-sasl-lib-2.1.27-21.el9.x86_64 expat-2.5.0-1.el9_3.1.x86_64 fmt-8.1.1-5.el9.x86_64 glibc-2.34-83.el9_3.12.x86_64 gperftools-libs-2.7-9.el8.x86_64 keyutils-libs-1.6.3-1.el9.x86_64 krb5-libs-1.21.1-1.el9.x86_64 libblkid-2.37.4-15.el9.x86_64 libbrotli-1.0.9-6.el9.x86_64 libcom_err-1.46.5-3.el9.x86_64 libcurl-7.76.1-26.el9_3.3.x86_64 libicu-67.1-9.el9.x86_64 libidn2-2.3.0-7.el9.x86_64 libnghttp2-1.43.0-5.el9_3.1.x86_64 liboath-2.6.7-2.el9.x86_64 libpsl-0.21.1-5.el9.x86_64 librabbitmq-0.11.0-7.el9.x86_64 libssh-0.10.4-12.el9_3.x86_64 libunistring-0.9.10-15.el9.x86_64 libunwind-1.6.2-1.el9.x86_64 libxcrypt-4.4.18-3.el9.x86_64 lua-libs-5.4.4-4.el9.x86_64 openldap-2.6.3-1.el9.x86_64 openssl-libs-3.0.7-25.el9_3.x86_64 pcre2-10.40-2.el9.x86_64 systemd-libs-252-18.el9.x86_64 zlib-1.2.11-40.el9.x86_64
(gdb) bt
#0  0x00007ffff4aa154c in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007ffff4a54d06 in raise () from /lib64/libc.so.6
#2  0x00007ffff4a287f3 in abort () from /lib64/libc.so.6
#3  0x00007ffff4ea1a01 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#4  0x00007ffff4ead37c in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#5  0x00007ffff4eac349 in __cxa_call_terminate (ue_header=0x555558f286e0) at ../../../../libstdc++-v3/libsupc++/eh_call.cc:54
#6  0x00007ffff4eacaca in __cxxabiv1::__gxx_personality_v0 (version=<optimized out>, actions=6, exception_class=5138137972254386945, ue_header=0x555558f286e0, context=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_personality.cc:685
#7  0x00007ffff6a7f2a4 in _Unwind_RaiseException_Phase2 (exc=0x555558f286e0, context=0x7fffc5bfc3a0, frames_p=0x7fffc5bfc2a8) at ../../../libgcc/unwind.inc:64
#8  0x00007ffff6a7fcde in _Unwind_Resume (exc=exc@entry=0x555558f286e0) at ../../../libgcc/unwind.inc:241
#9  0x00007ffff6fbb349 in boost::asio::detail::noncopyable::~noncopyable (this=<optimized out>, __in_chrg=<optimized out>) at boost/include/boost/asio/detail/noncopyable.hpp:30
#10 boost::asio::detail::thread_info_base::~thread_info_base (this=<optimized out>, __in_chrg=<optimized out>) at boost/include/boost/asio/detail/thread_info_base.hpp:76
#11 boost::asio::detail::scheduler_thread_info::~scheduler_thread_info (this=<optimized out>, __in_chrg=<optimized out>) at boost/include/boost/asio/detail/scheduler_thread_info.hpp:30
#12 boost::asio::detail::scheduler::run (this=<optimized out>, ec=...) at boost/include/boost/asio/detail/impl/scheduler.ipp:208
#13 0x00007ffff70d57e7 in boost::asio::io_context::run (this=<optimized out>) at boost/include/boost/asio/impl/io_context.ipp:63
#14 operator() (__closure=<optimized out>) at ../src/rgw/rgw_asio_frontend.cc:1074
#15 std::__invoke_impl<void, (anonymous namespace)::AsioFrontend::run()::<lambda()> > (__f=...) at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/invoke.h:61
#16 std::__invoke<(anonymous namespace)::AsioFrontend::run()::<lambda()> > (__fn=...) at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/invoke.h:96
#17 std::thread::_Invoker<std::tuple<(anonymous namespace)::AsioFrontend::run()::<lambda()> > >::_M_invoke<0> (this=<optimized out>) at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/std_thread.h:258
#18 std::thread::_Invoker<std::tuple<(anonymous namespace)::AsioFrontend::run()::<lambda()> > >::operator() (this=<optimized out>) at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/std_thread.h:265
#19 std::thread::_State_impl<std::thread::_Invoker<std::tuple<(anonymous namespace)::AsioFrontend::run()::<lambda()> > > >::_M_run(void) (this=<optimized out>) at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/std_thread.h:210
#20 0x00007ffff4edb924 in std::execute_native_thread_routine (__p=0x555558f15a00) at ../../../../../libstdc++-v3/src/c++11/thread.cc:82
#21 0x00007ffff4a9f802 in start_thread () from /lib64/libc.so.6
#22 0x00007ffff4a3f450 in clone3 () from /lib64/libc.so.6

the abort() does NOT repro when the tag is `git checkout v18.2.2`
nor on the current reef branch `reef 111a617aaed`
and not on the current `main 309caf3c840` branch

have not bisected further yet

MK Updated by Mark Kogan over 2 years ago Actions #14

  • Status changed from Need More Info to Fix Under Review

the SIGABRT does NOT occur after cherry-picking the commits in the backport PR1 on top of v17.2.7

[1] https://github.com/ceph/ceph/pull/51806

CB Updated by Casey Bodley about 2 years ago Actions #15

  • Status changed from Fix Under Review to Resolved

CB Updated by Casey Bodley about 2 years ago Actions #16

  • Has duplicate Bug #68978: rgw daemons have recently crashed added

CB Updated by Casey Bodley about 2 years ago Actions #17

  • Target version set to v17.2.8

UB Updated by Upkeep Bot over 1 year ago Actions #18

  • Merge Commit set to 2cadefff5598b3a0b19ccbbe704b81ad60032b34
  • Fixed In set to v17.2.7-1229-g2cadefff559
  • Released In set to v17.2.8~247
  • Upkeep Timestamp set to 2025-07-11T12:50:09+00:00
Actions

Also available in: PDF Atom