New Question

ceph-dokan.exe "reef" - Error: invalid utf8

asked 2023-10-18 12:52:09 +0300

BenediktS gravatar image


we updated our ceph servers from quincy to reef. Now we try to update our windows clients as well. But when we try to start the ceph-dokan client we get tthe error:

libc++abi: terminating due to uncaught exception of type std::runtime_error: invalid utf8

 C:\Users\Test>"c:\Program Files\Ceph\bin\ceph-dokan.exe" -c D:\Ceph\ceph_RIPs.conf --mountpoint e:\spool --id RIPs
--root-path=/server/RIPs/R01 libc++abi: terminating due to uncaught exception of type std::runtime_error: invalid utf8

With the quincy ceph-dokan.exe this worked.
Also without a config i get this error.

C:\Users\Test>"c:\Program Files\Ceph\bin\ceph-dokan.exe"  --mountpoint e:\spool
did not load config file, using default settings
unable to get monitor info from DNS SRV with service name: ceph-monlibc++abi: terminating due to uncaught exception of type std::runtime_error: invalid utf8

The strangest thing is, that when i run it in a detached process it works.

Also we activated Logging on log level 2 . No data is written in the log before the error ocours.
Has someone an idea why this error ocours?

best regards

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2023-10-19 14:41:10 +0300

lpetrut gravatar image

updated 2023-10-19 15:00:15 +0300

Interesting. We switched to mingw-llvm, might be the reason why it didn't show up before.

We have a patch that fixes utf-8 support: Here's a test MSI that includes the fix:

Could you please give it a try? If it solves the problem, I think I'll backport the fix to our downstream Reef release. Unfortunately, upstream reviews are extremely slow lately.

Regards, Lucian

edit flag offensive delete link more


Now the error is: 2023-10-19T14:34:00.758+0200 10 1 client.83496898 handle_mds_map epoch 2723 libc++abi: terminating due to uncaught exception of type ceph::buffer::v15_2_0::end_of_buffer: End of buffer [buffer:2]

BenediktS gravatar imageBenediktS ( 2023-10-19 15:36:13 +0300 )edit

Looks like a message decoding error. I'll rebase those patches against Reef and build another MSI to avoid messaging issues caused by incompatible versions.

lpetrut gravatar imagelpetrut ( 2023-10-20 16:42:05 +0300 )edit
lpetrut gravatar imagelpetrut ( 2023-10-23 14:34:51 +0300 )edit

Thanks. This version is working.

BenediktS gravatar imageBenediktS ( 2023-10-23 15:15:25 +0300 )edit

answered 2023-10-18 13:05:53 +0300

BenediktS gravatar image

For people who ask what i mean with a detached process. We normaly start the ceph-dokan.exe in the background. Therefor we have a small prorgamm that just looks like this (Delphi):

    processInfo: TProcessInformation;
    startupInfo: TStartupInfo;
    commandLine : string;

  commandLine := '"c:\Program Files\Ceph\bin\ceph-dokan.exe" -c D:\Ceph\ceph_RIPs.conf --mountpoint e:\spool --id RIPs ';

     FillChar(startupInfo, SizeOf(startupInfo), #0);
     startupInfo.cb := SizeOf(startupInfo);
     startupInfo.wShowWindow := SW_HIDE;

                         false, //Inherit Handles
                         DETACHED_PROCESS,  // Enviroment Flags
                         nil,  // Workdir

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2023-10-18 12:52:09 +0300

Seen: 335 times

Last updated: Oct 19 '23