[GH-ISSUE #2347] Troubleshooting S3FS and Cloudflare Integration Issue: HTML Files Not Displaying #1158

Open
opened 2026-03-04 01:51:48 +03:00 by kerem · 1 comment
Owner

Originally created by @chenglonglinux on GitHub (Oct 11, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2347

I am using the following command to mount the s3 bucket

s3fs longb ${HOME}/longb -o passwd_file=${HOME}/.passwd-s3fs -o url=https://hks3.layerstackobjects.com -o use_path_request_style

When I save files and list them back, HTML and HTM files appear with 0 bytes:

[root@ls-536277-36190-36190 longb]# df -h /root/longb
s3fs 4.0G 0 4.0G 0% /root/longb

For example, when I create files like long.php, long.exe, long.html, and long.htm, only the HTML and HTM files show as 0 bytes:

[root@ls-536277-36190-36190 longb]# echo 123 > long.php
[root@ls-536277-36190-36190 longb]# echo 123 > long.exe
[root@ls-536277-36190-36190 longb]# echo 123 > long.html
[root@ls-536277-36190-36190 longb]# echo 123 > long.htm
[root@ls-536277-36190-36190 longb]# ll
total 2
-rw-r--r-- 1 root root 4 Oct 10 16:02 lobflobflg
-rw-r--r-- 1 root root 4 Oct 11 12:29 long.exe
-rw-r--r-- 1 root root 0 Oct 11 12:29 long.htm
-rw-r--r-- 1 root root 0 Oct 11 12:29 long.html
-rw-r--r-- 1 root root 4 Oct 11 12:29 long.php

However, when I use s3cmd, it shows the correct file size:

[root@ls-536277-36190-36190 longb]# s3cmd ls s3://longb
2023-10-10 08:02 4 s3://longb/lobflobflg
2023-10-11 04:29 4 s3://longb/long.exe
2023-10-11 04:29 4 s3://longb/long.htm
2023-10-11 04:29 4 s3://longb/long.html
2023-10-11 04:29 4 s3://longb/long.php

When I disable Cloudflare's proxy mode, everything works as expected. I can confirm that I have disabled caching in the Cloudflare panel. Are there any options that can help fix this issue?

[root@ls-536277-36190-36190 ~]# s3fs --version
Amazon Simple Storage Service File System V1.93 (commit:unknown) with OpenSSL

Originally created by @chenglonglinux on GitHub (Oct 11, 2023). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2347 ### I am using the following command to mount the s3 bucket s3fs longb ${HOME}/longb -o passwd_file=${HOME}/.passwd-s3fs -o url=https://hks3.layerstackobjects.com -o use_path_request_style ### When I save files and list them back, HTML and HTM files appear with 0 bytes: [root@ls-536277-36190-36190 longb]# df -h /root/longb s3fs 4.0G 0 4.0G 0% /root/longb ### For example, when I create files like long.php, long.exe, long.html, and long.htm, only the HTML and HTM files show as 0 bytes: [root@ls-536277-36190-36190 longb]# echo 123 > long.php [root@ls-536277-36190-36190 longb]# echo 123 > long.exe [root@ls-536277-36190-36190 longb]# echo 123 > long.html [root@ls-536277-36190-36190 longb]# echo 123 > long.htm [root@ls-536277-36190-36190 longb]# ll total 2 -rw-r--r-- 1 root root 4 Oct 10 16:02 lobflobflg -rw-r--r-- 1 root root 4 Oct 11 12:29 long.exe -rw-r--r-- 1 root root 0 Oct 11 12:29 long.htm -rw-r--r-- 1 root root 0 Oct 11 12:29 long.html -rw-r--r-- 1 root root 4 Oct 11 12:29 long.php ### However, when I use s3cmd, it shows the correct file size: [root@ls-536277-36190-36190 longb]# s3cmd ls s3://longb 2023-10-10 08:02 4 s3://longb/lobflobflg 2023-10-11 04:29 4 s3://longb/long.exe 2023-10-11 04:29 4 s3://longb/long.htm 2023-10-11 04:29 4 s3://longb/long.html 2023-10-11 04:29 4 s3://longb/long.php ### When I disable Cloudflare's proxy mode, everything works as expected. I can confirm that I have disabled caching in the Cloudflare panel. Are there any options that can help fix this issue? [root@ls-536277-36190-36190 ~]# s3fs --version Amazon Simple Storage Service File System V1.93 (commit:unknown) with OpenSSL
Author
Owner

@longcheung123 commented on GitHub (May 22, 2024):

no update?

<!-- gh-comment-id:2124097271 --> @longcheung123 commented on GitHub (May 22, 2024): no update?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1158
No description provided.