In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "radosgw civetweb configuration and troubleshooting methods", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "radosgw civetweb configuration and troubleshooting methods" bar!
Sysinit is still used under 64bit debian8. When you run ceph-deploy rgw create to create a new rgw, you will be prompted that the rgw service cannot be started, as shown below:
Check ceph auth configuration
Root@demo:/etc/ceph# ceph auth list. Client.rgw.demo # automatically generates key when using ceph-deploy rgw create: AQB0NPlVEkpPExAAaOAkz+X6fB9sJaMdR+Bq4Q== caps: [mon] allow rw caps: [osd] allow rwx
Ceph auth has generated a user for client.rgw.demo and a keyring for it under / etc/ceph (no, please add it manually)
Cat / etc/ceph/ceph.client.radosgw.demo.keyring [client.rgw.demo] key = AQB0NPlVEkpPExAAaOAkz+X6fB9sJaMdR+Bq4Q==
Check ceph.conf configuration
Cat / etc/ceph/ceph.conf [client.rgw.demo] # focus on the sections host = demo keyring = / etc/ceph/ceph.client.radosgw.demo.keyring rgw_frontends = civetweb port=80 rgw socket path = / var/run/ceph/ceph-client.rgw.demo.asok # the socket file associated with the service running status log file = / var/log/radosgw/client.radosgw.demo.log Rgw print continue = false rgw enable ops log = false rgw ops log rados = false rgw ops log data bakclog = 4096
Manually start the service successfully. Note-n is the user name in ceph auth.
Manually start radosgw-n client.rgw.demo to check the port and process netstat-talnp | grep rados tcp 00 0.0.0.0 netstat 80 0.0.0.0 netstat * LISTEN 6601/radosgw tcp 00 10.0.2.15 netstat 58613 10.0.2.15 netstat 6789 ESTABLISHED 6601/radosgw tcp 00 10.0.2.15:55465 10.0.2.15:6800 ESTABLISHED 6601/radosgw tcp 00 10.0.2.15:51986 10.0.2.15:6804 ESTABLISHED 6601/radosgw tcp 00 10.0.2.15:51098 10.0.2.15:6808 ESTABLISHED 6601/radosgw ps aux | grep rados root 6601 0.5 1.5 2165088 15692? Ssl 11:11 0:00 radosgw-n client.rgw.demo
Init script startup and troubleshooting
/ etc/init.d/radosgw start / usr/bin/radosgw is not running.
Failed to start, start debug mode again
Sh-x / etc/init.d/radosgw start + PATH=/sbin:/bin:/usr/bin +. / lib/lsb/init-functions + run-parts-- lsbsysinit-- list / lib/lsb/init-functions.d + [- r / lib/lsb/init-functions.d/20-left-info-blocks] +. / lib/lsb/init-functions.d/20-left-info-blocks + [- r / lib/lsb/init-functions.d/40-systemd] +. / lib/lsb/init-functions.d/40-systemd + _ use_systemctl=0 + [- d / run/systemd/system] + [0 = 1] + FANCYTTY= + [- e / etc/lsb-base-logging.sh] + true + VERBOSE=0 + [start =-v] + [start =-verbose] + PREFIX=client.radosgw. + DEFAULT_USER=root + which radosgw + RADOSGW=/usr/bin/radosgw + [!-x / usr/bin/radosgw] + ceph-conf-- list-sections client.radosgw. + daemon_is_running / usr/bin/radosgw + daemon=/usr/bin/radosgw + pidof / usr/bin/radosgw + echo / usr/bin/radosgw is not running. / usr/bin/radosgw is not running. + exit 1
The key point is ceph-conf-list-sections client.radosgw.,. Here we do a simple check on the sections of the ceph.conf configuration file, recognizing only client.radosgw, while our ceph.conf is written as client.rgw. Run the command manually to confirm our judgment.
Ceph-conf-- list-sections client.radosgw. No return ceph-conf-- list-sections client.rgw. Client.rgw.demo
Solve the problem
I use method 1 here.
Modify / etc/init.d/radosgw # prefix for radosgw instances in ceph.conf # PREFIX='client.radosgw.' PREFIX='client.rgw.' Test / etc/init.d/radosgw start Starting client.rgw.demo... / usr/bin/radosgw is running. Ps-axu | grep radosgw root 7045 1.7 1.5 2165080 15696? Ssl 11:30 0:00 / usr/bin/radosgw-n client.rgw.demo netstat-tuanlp | grep rados tcp 00 0.0.0.0 grep rados tcp 80 0.0.0.0 LISTEN 7045/radosgw tcp 00 10.0.2.15 grep rados tcp 58617 10.0.2.15 Ssl 6789 Tcp 00 10.0.2.15:51990 10.0.2.15:6804 ESTABLISHED 7045/radosgw tcp 00 10.0.2.15:55469 10.0.2.15:6800 ESTABLISHED 7045/radosgw tcp 00 10.0.2.15:51102 10.0.2.15:6808 ESTABLISHED 7045/radosgw
Method 1 modify the startup script
Method 2: change the sections of ceph.conf to client.radosgw.xxxx, and the users in ceph auth also need to change it.
Thank you for your reading, the above is the content of "radosgw civetweb configuration and troubleshooting methods". After the study of this article, I believe you have a deeper understanding of radosgw civetweb configuration and troubleshooting methods, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.