cn icon indicating copy to clipboard operation
cn copied to clipboard

Logs not available

Open guimou opened this issue 5 years ago • 1 comments

Hi!

New cluster, working fine (connection, uploads, downloads,...):

./cn cluster start my-first-cluster
2021/01/26 10:44:41 Starting cluster my-first-cluster...

Endpoint: http://10.10.120.54:8000
Dashboard: http://10.10.120.54:5000
Access key: xxxxxxxxxxxxxxxxx
Secret key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Working directory: /home/gmoutier/Dev/tmp/cephnano/tmp

I'm trying to debug a connection issue when sending bucket notifications, but logs are unavailable:

./cn cluster logs my-first-cluster
ecat: /var/log/ceph/client.rgw.ceph-nano-my-first-cluster-faa32aebf00b.log: No such file or directory

I logged directly into the container, /var/log/ceph remains empty whatever I do. I tried to enable debug logging with:

ceph --admin-daemon /var/run/ceph/ceph-client.rgw.<name>.asok config set debug_rgw 20
ceph --admin-daemon /var/run/ceph/ceph-client.rgw.<name>.asok config set debug_ms 1

Both commands came back with success, but still no logs...

Am I missing something?

guimou avatar Jan 26 '21 15:01 guimou

Try to turn on log_to_file flag, ceph config set log_to_file true <name of the rgw>

leseb avatar Feb 17 '21 15:02 leseb