mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #2347] Troubleshooting S3FS and Cloudflare Integration Issue: HTML Files Not Displaying #1158
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@longcheung123 commented on GitHub (May 22, 2024):
no update?