hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
713 stars 180 forks source link

STATUS_OTHER (0xc0000001): Create failed #634

Open chbushan opened 3 years ago

chbushan commented 3 years ago

Hi,

This was working fine and all of sudden these errors; Nothing changed either to security or the SMB shares. Could you please help?

2021-05-18 18:01:55.699 85 com.hierynomus.mssmb2.SMBApiException: STATUS_OTHER (0xc0000001): Create failed for 2021-05-18 18:01:55.700 85 at com.hierynomus.smbj.share.Share.receive(Share.java:366) 2021-05-18 18:01:55.700 85 at com.hierynomus.smbj.share.Share.sendReceive(Share.java:346) 2021-05-18 18:01:55.700 85 at com.hierynomus.smbj.share.Share.createFile(Share.java:159) 2021-05-18 18:01:55.700 85 at com.hierynomus.smbj.share.DiskShare.createFileAndResolve(DiskShare.java:97) 2021-05-18 18:01:55.700 85 at com.hierynomus.smbj.share.DiskShare.resolveAndCreateFile(DiskShare.java:79) 2021-05-18 18:01:55.700 85 at com.hierynomus.smbj.share.DiskShare.open(DiskShare.java:66) 2021-05-18 18:01:55.700 85 at com.hierynomus.smbj.share.DiskShare.openFile(DiskShare.java:148)

yin19941005 commented 3 years ago

Looking it up in MS-ERREF gives:

0xC0000001   STATUS_UNSUCCESSFUL | {Operation Failed} The requested operation was unsuccessful.

I guess we need more info to figure out what's happening.

hierynomus commented 3 years ago

I've added the status to the NtStatus enum. I think you should be able to find in the server log what's going wrong. Any NtStatus code is generated by the server, so in its logging you should be able to find more information.

chbushan commented 3 years ago

Thanks for the reply; I will get in touch with network admins to check for the smb logs and report back.

chbushan commented 3 years ago

The windows team claims no logs. I see the connections are successful but it only fails when trying to pull data.

com.hierynomus.mssmb2.SMBApiException: STATUS_OTHER (0xc0000001): Create failed for \server.com\group1$\source\DV\001\Inx1.taraa

I see this [Thread-57] INFO com.hierynomus.smbj.session.Session - Connecting to \server.com\group1$ on session 4696691461546950240 The windows support team cannot find anything with the session ID's either.

Thanks for your help.

hierynomus commented 3 years ago

I have no idea either. The status code indicates that "something" caused it to be unsuccessful. What are the parameters you're passing to the DiskShare.openFile(...)?