Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 18 - Error with file system commands: Function not implemented #3517

Closed
vagnercsouza opened this issue Aug 31, 2018 · 9 comments
Closed
Labels

Comments

@vagnercsouza
Copy link

vagnercsouza commented Aug 31, 2018

  • Your Windows build number:
    Microsoft Windows [Version 10.0.17134.165]

  • What you're doing and what's happening:
    When I try to create a directory inside the mounted windows volume (/c), it is created but this error is showed:
    image
    The problem also happens with rm, but the dir is not removed:
    image

  • What's wrong / what should be happening instead:
    Even though the directory is created, this error stop the execution of some scripts (like yarn, composer, etc).

  • Strace of the failing command, if applicable:
    Strace on Gist

  • Additional information:
    The problem is happening on a notebook configured in an Active Directory domain with Group Policies that limits Windows Update and runs Kaspersky Endpoint Security.
    The Windows Store don't work because of GPO (I've installed WSL before configure the computer on the AD, but the problem was happening even before configure it).
    It only happens on the mounted windows volume, inside WSL it works fine.

@vagnercsouza vagnercsouza changed the title Error with file system commands: Function not implemented Ubuntu 18 - Error with file system commands: Function not implemented Aug 31, 2018
@therealkenc
Copy link
Collaborator

fstat(3, {st_mode=S_IFREG|0644, st_size=199772, ...}) = 0
mmap(NULL, 199772, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb5a405b000
close(3)                                = 0
mkdir("bar2", 0777)                     = -1 ENOSYS (Function not implemented)

@vagnercsouza
Copy link
Author

@therealkenc I don't know what those lines means, can you give more details? Thanks.

@therealkenc
Copy link
Collaborator

Just pulled out the relevant lines from your strace log out so it lights up in search and saves others from doing a redirect. Nothing for you to do here. To sum what it means in a detailed technical way....

"That's very weird".

@vagnercsouza
Copy link
Author

Got it. I've put some more information on the issue about the computer where the problem is happening.

@therealkenc
Copy link
Collaborator

configured in an Active Directory domain with Group Policies that limits Windows Update and runs Kaspersky Endpoint Security

Alright; appreciate the details. That probably puts you in the unenviable position of "tag, external" territory. I'll leave it open and maybe you'll get a bite. The mkdir() syscall is implemented, obviously, so the ENOSYS remains categorically "weird". But if WSL ended up throwing off an EINVAL or EACCES or the ever popular EIO (equivalent EWTF) instead, that wouldn't exactly help your situation. Useful enough to have on the books if nothing else.

@benhillis
Copy link
Member

@therealkenc - looking through our code it looks lik ENOSYS can be returned if some NT operations fail with STATUS_NOT_IMPLEMENTED, which doesn't seem right. Likely a filesystem filter driver is failing an operation.

@KevDBG
Copy link

KevDBG commented Oct 16, 2018

Hello,

The same here, since i have installed Kaspersky Endpoint security, it's impossible to do rm ...

login@DESKTOP-WS:/c/temp  $ rm license.txt
rm: impossible de supprimer 'license.txt': Fonction non implantée

@vnluc
Copy link

vnluc commented Jan 4, 2020

I am getting same issue on Windows 10 and dont know where to start diagnose it.

$ rm hello.txt
rm: cannot remove 'hello.txt': Function not implemented

So I try strace command and get this:

unlinkat(AT_FDCWD, "hello.txt", 0)      = -1 ENOSYS (Function not implemented)
openat(AT_FDCWD, "/usr/share/locale/C.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/C.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/C/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/C.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/C.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/C/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "rm: ", 4rm: )                     = 4
write(2, "cannot remove 'hello.txt'", 25cannot remove 'hello.txt') = 25

I am not sure what is the cause??? Maybe 'unlinkat' is not implemented or some library missing??

openat(AT_FDCWD, "/usr/share/locale/C.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)

Hope someone could help point out...

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants