Re: dashboard fails with error code 500 on a particular file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi E Taka,

There's already a report of that issue in 16.2.5 (
https://tracker.ceph.com/issues/51611), stating that it didn't happen in
16.2.3 (so a regression then), but we couldn't reproduce it so far.

I just tried creating a regular fresh cephfs filesystem (1 MDS), a
directory inside it (via cephfs-shell) and I could access the directory
from the dashboard with no issues. Is there anything specific on that
deployment? The dashboard basically uses Python libcephfs
<https://docs.ceph.com/en/latest/cephfs/api/libcephfs-py/> for accessing
Cephfs, so could you plz try the same and validate whether it works?

>>> import cephfs
>>> fs = cephfs.LibCephFS()
>>> fs.conf_read_file('/etc/ceph/ceph.conf')
>>> fs.mount(b'/', b'a')
>>> fs.opendir('/test')

# NO ERROR


Kind Regards,
Ernesto


On Sun, Jan 16, 2022 at 11:26 AM E Taka <0etaka0@xxxxxxxxx> wrote:

> Dashboard → Filesystems → (filesystem name) → Directories
>
> fails on a particular file system with error "500 - Internal Server Error".
>
> The log shows:
>
>  Jan 16 11:22:18 ceph00 bash[96786]:   File
> "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 57, in opendir
>  Jan 16 11:22:18 ceph00 bash[96786]:     d = self.cfs.opendir(dirpath)
>  Jan 16 11:22:18 ceph00 bash[96786]:   File "cephfs.pyx", line 942, in
> cephfs.LibCephFS.opendir
>  Jan 16 11:22:18 ceph00 bash[96786]: cephfs.OSError: opendir failed:
> Permission denied [Errno 13]
>  Jan 16 11:22:18 ceph00 bash[96786]: [::ffff:10.149.249.237:47814] [GET]
> [500] [0.246s] [admin] [513.0B] /ui-api/cephfs/3/ls_dir
>  Jan 16 11:22:18 ceph00 bash[96786]: [b'{"status": "500 Internal Server
> Error", "detail": "The server encountered an unexpected condition which
> prevented it from fulfilling the request.", "request_id":
> "76727248-cf64-4b85-8630-8131e33832f8"}
>
> Do you have an idea what went wrong hore and how can I solve this issue?
>
> Thanks!
> Erich
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux