Rclone running on Windows Nano Server

What is the problem you are having with rclone?

I am trying to get Rclone to run on Windows Nano Server and ran into an error stating "panic: Failed to load netapi32.dll: The specified module could not be found." Before I dive into a constant rebuild process to find DLL's I was wondering if anyone has done this yet and have things documented on how to use Rclone inside of Windows Server Nano?

Run the command 'rclone version' and share the full output of the command.

1.62.2 - wont run this is the only thing I can provide currently

Which cloud storage system are you using? (eg Google Drive)

Nothing yet but it will most likely be just local files and UNC based paths

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Nothing yet

The rclone config contents with secrets removed.

Nothing yet

A log from the command with the -vv flag

panic: Failed to load netapi32.dll: The specified module could not be found.

goroutine 1 [running]:
syscall.(*LazyProc).mustFind(...)
        syscall/dll_windows.go:293
syscall.(*LazyProc).Addr(...)
        syscall/dll_windows.go:300
syscall.NetGetJoinInformation(0x455468?, 0x19?, 0xc00045f988?)
        syscall/zsyscall_windows.go:1203 +0x97
os/user.isDomainJoined()
        os/user/lookup_windows.go:18 +0x36
os/user.lookupFullName({0xc000261c10, 0xc}, {0xc000261c00, 0xd}, {0xc00004fe60, 0x1a})
        os/user/lookup_windows.go:51 +0x3b
os/user.newUser({0xc000261bd0, 0xc}, {0xc000261bf0, 0xc}, {0xc00004fe40, 0x16}, {0xc000261c00, 0xd}, {0xc000261c10, 0xc})
        os/user/lookup_windows.go:181 +0xa7
os/user.current()
        os/user/lookup_windows.go:232 +0x207
os/user.Current.func1()
        os/user/lookup.go:22 +0x17
sync.(*Once).doSlow(0xc00045fba0?, 0x50c894?)
        sync/once.go:74 +0xc2
sync.(*Once).Do(...)
        sync/once.go:65
os/user.Current()
        os/user/lookup.go:22 +0x37
github.com/rclone/rclone/lib/env.CurrentUser()
        github.com/rclone/rclone/lib/env/env.go:37 +0x57
github.com/rclone/rclone/backend/ftp.init()
        github.com/rclone/rclone/backend/ftp/ftp.go:35 +0x17

I can confirm that netapi32.dll appears to be the only file required for at least anonymous S3 bucket downloads. I still haven't tried a UNC path because of file/share permissions I'm running into. Would be nice to hear back from anyone using rclone as a way to copy files onto or off of a Windows Nano Server and what was done to get it to work.

hello and welcome to the forum,

i am able to run rclone on nano server

2023/03/21 12:36:38 DEBUG : rclone: Version "v1.62.2" starting with parameters ["C:\\data\\rclone\\rclone.exe" "copy" "file.ext" "wasabi01:zork" "--log-level=DEBUG" "--log-file=log.txt"]
2023/03/21 12:36:38 DEBUG : Creating backend with remote "file.ext"
2023/03/21 12:36:38 DEBUG : Using config file from "C:\\data\\rclone\\rclone.conf"
2023/03/21 12:36:38 DEBUG : fs cache: adding new entry for parent of "file.ext", "//?/C:/data/rclone"
2023/03/21 12:36:38 DEBUG : Creating backend with remote "wasabi01:zork"
2023/03/21 12:36:38 DEBUG : Resolving service "s3" region "us-east-2"
2023/03/21 12:36:38 DEBUG : file.ext: Need to transfer - File not found at Destination
2023/03/21 12:36:38 INFO  : S3 bucket zork: Bucket "zork" created with ACL ""
2023/03/21 12:36:38 DEBUG : file.ext: md5 = c039965eb7fcc80be96c2a578bf8bace OK
2023/03/21 12:36:38 INFO  : file.ext: Copied (new)
2023/03/21 12:36:38 INFO  : 
Transferred:   	   16.940 KiB / 16.940 KiB, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.4s
    Hive: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT


Name                           Property                                                                                                                                                      
----                           --------                                                                                                                                                      
CurrentVersion                 SystemRoot                : C:\Windows                                                                                                                        
                               BuildBranch               : rs1_release                                                                                                                       
                               BuildGUID                 : ffffffff-ffff-ffff-ffff-ffffffffffff                                                                                              
                               BuildLab                  : 14393.rs1_release.160715-1616                                                                                                     
                               BuildLabEx                : 14393.0.amd64fre.rs1_release.160715-1616                                                                                          
                               CompositionEditionID      : ServerDatacenterNano                                                                                                              
                               CurrentBuild              : 14393                                                                                                                             
                               CurrentBuildNumber        : 14393                                                                                                                             
                               CurrentMajorVersionNumber : 10                                                                                                                                
                               CurrentMinorVersionNumber : 0                                                                                                                                 
                               CurrentType               : Multiprocessor Free                                                                                                               
                               CurrentVersion            : 6.3                                                                                                                               
                               EditionID                 : ServerDatacenterNano                                                                                                              
                               InstallationType          : Nano Server                                                                                                                       
                               InstallDate               : 1679411340                                                                                                                        
                               ProductName               : Windows Server 2016 Datacenter                                                                                                    
                               ReleaseId                 : 1607                                                                                                                              
                               SoftwareType              : System                                                                                                                            
                               UBR                       : 0                                                                                                                                 
                               InstallTime               : 133238849403894893                                                                                                                

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.