Problem witch HTTP Apache server

What is the problem you are having with rclone?

I cant connect to HTTP Apache Fileserver becouse of

ERROR : : error listing: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized

What is your rclone version (output from rclone version)

rclone v1.50.2

  • os/arch: windows/amd64
  • go version: go1.13.4

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10, 64bit

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

HTTP: https://user:pass@site.com/dir
I can login to this via web browser by that address.

But link doesn't work without "/dir'. Does rclone first try to auth main host and later read dir? I think there is a problem.

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

mount, ls, lsf, lsd - I have tried all.

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2020/01/15 09:32:22 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "lsf" "-vv" "123:"]
2020/01/15 09:32:22 DEBUG : Using config file from "C:\Users\bonk1990\.config\rclone\rclone.conf"
2020/01/15 09:32:23 ERROR : : error listing: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized
2020/01/15 09:32:23 Failed to lsf with 2 errors: last error was: error in ListJSON: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized

You didn't share what command you are using. Can you share that please?

rclone ls 123:

2020/01/15 12:23:30 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "-vv" "ls" "123:"]
2020/01/15 12:23:30 DEBUG : Using config file from "C:\\Users\\bonk1990\\.config\\rclone\\rclone.conf"
2020/01/15 12:23:30 ERROR : : error listing: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized
2020/01/15 12:23:30 Failed to ls with 2 errors: last error was: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized

config:
[123]
type = http
url = https://user:pass@host.com/dir

That's saying your user/password is wrong. Without being able to test or share more details, it's hard to debug.

I tested via just the command line:

textere@seraphim Downloads % rclone lsd --http-url http://192.168.1.30:2812 :http:
2020/01/15 06:28:55 ERROR : : error listing: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized
2020/01/15 06:28:55 Failed to lsd with 2 errors: last error was: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized

textere@seraphim Downloads % rclone lsd --http-url http://felix:password@192.168.1.30:2812 :http:

textere@seraphim Downloads % rclone lsd --http-url http://felix:password@192.168.1.30:2812/monit :http:
2020/01/15 06:29:22 ERROR : : error listing: error listing "": directory not found
2020/01/15 06:29:22 Failed to lsd with 2 errors: last error was: error listing "": directory not found
textere@seraphim Downloads %

Can you do the rclone ls with -vv --dump bodies then we can see exactly what the apache server sent and what rclone sent.

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