New Question
0

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

asked Oct 18 '3

BenediktS gravatar image

Hello,

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
Benedikt

Preview: (hide)

2 answers

Sort by » oldest newest most voted
0

answered Oct 19 '3

lpetrut gravatar image

updated Oct 19 '3

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: https://github.com/ceph/ceph/pull/53291. Here's a test MSI that includes the fix: https://cloudbase.it/downloads/ceph_dev_case_insensitive.msi.

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

Preview: (hide)
link

Comments

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 (Oct 19 '3)

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 (Oct 20 '3)
lpetrut gravatar imagelpetrut (Oct 23 '3)

Thanks. This version is working.

BenediktS gravatar imageBenediktS (Oct 23 '3)
0

answered Oct 18 '3

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):

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

  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;

CreateProcess(nil,
                         PChar(commandLine),
                         nil,
                         nil,
                         false, //Inherit Handles
                         DETACHED_PROCESS,  // Enviroment Flags
                         nil,
                         nil,  // Workdir
                         startupInfo,
                         processInfo);

end;
Preview: (hide)
link

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

Stats

Asked: Oct 18 '3

Seen: 612 times

Last updated: Oct 19 '23