yangljun / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

Permission issue ? May be? #397

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Detailed description of observed behavior:

index.htm works fine, But when using index.php it is not working and show 
Internal Server Error on web browser (using whm/cpanel) When I change the 
cpanel directory to /home it is working, So definitely this should be a issue 
with s3fs, may be permission issue ?

What steps will reproduce the problem - please be very specific and
detailed. (if the developers cannot reproduce the issue, then it is
unlikely a fix will be found)?

No errors when mounting.

===================================================================
The following information is very important in order to help us to help
you.  Omission of the following details may delay your support request or
receive no attention at all.
===================================================================
Version of s3fs being used (s3fs --version):

Amazon Simple Storage Service File System 1.74
Copyright (C) 2010 Randy Rizun <rrizun@gmail.com>
License GPL2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Version of fuse being used (pkg-config --modversion fuse): 2.9.3

System information (uname -a): Linux XXXX.XXXXXXXXXX.com 
2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 
x86_64 GNU/Linux

Distro (cat /etc/issue):

This computer system is for authorized users only. Individuals using this
system without authority or in excess of their authority are subject to
having all their activities on this system monitored and recorded or
examined by any authorized person, including law enforcement, as system
personnel deem appropriate. In the course of monitoring individuals
improperly using the system or in the course of system maintenance, the
activities of authorized users may also be monitored and recorded. Any
material so recorded may be disclosed as appropriate. Anyone using this
system consents to these terms.

s3fs command line used (if applicable): /usr/bin/s3fs bucket-name /mnt -o 
allow_other,use_cache=/tmp

/etc/fstab entry (if applicable):

s3fs syslog messages (grep s3fs /var/log/syslog):

Original issue reported on code.google.com by softf...@gmail.com on 9 Dec 2013 at 1:19

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Probably, I think that your files on s3fs mounting directory seem to not have a 
permission for web server process.
Or something error occurred in s3fs.

You can see the log file of s3fs by s3fs run foreground(-f option) with 
debugging(-d option).
If s3fs run with something error, you can find some error output.
And if you can, please see web server logs.
Maybe 404 error causes you can find.

These logs(information) helps us for solving this issue.

Thanks in advance for your help.

Original comment by ggta...@gmail.com on 10 Dec 2013 at 2:00

GoogleCodeExporter commented 9 years ago
Its a backslash issue when using cPanel's Apache. When apache found index.php 
it will go back one directory(public_html) again it or something else to list 
files. In that case s3fs will remove last backslash. So S3 will return that 
directory as a file and it will occur "The specified key does not exist." 
error. Can you fix that ?

Steps:
[S3 Bucket]/cpanelUserName/ [OK 200]
[S3 Bucket]/cpanelUserName/public_html/ [OK 200]
[S3 Bucket]/cpanelUserName/public_html/index.php [OK 200]
[S3 Bucket]/cpanelUserName/public_html [500/404] !!!!!!!! (It will occur, 
Because of this 500)
[S3 Bucket]/cpanelUserName/500.shtml [500/404] [OK 200]

(See the one before last, after apache founds index.php, it will ask for its 
base folder without backslashes, I guess you need to catch when it will occur 
and add backslash to prevent such a incidents.)

Original comment by softf...@gmail.com on 14 Dec 2013 at 5:49