Unable to download shared file

Ask all your questions regarding OC 6.x Please read the Support Forum Rules
Forum rules
ownCloud 6.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
moxyl
Newbie
Posts: 2
Joined: Tue May 06, 2014 11:51 am
ownCloud version: 6.0.3
Webserver: Apache
Database: MySQL
PHP version: 5.5.9

Re: Unable to download shared file

Postby moxyl » Sat May 10, 2014 5:57 am

thanks for sharing, mattanorak! Worked perfectly for me! :D

Any idea, how that Bug happened? Just want to know if I have to add that line after every DSM or OC update :-P

mattanorak
Newbie
Posts: 7
Joined: Sat Apr 26, 2014 5:13 am
ownCloud version: 6.0.3
Webserver: Apache
Database: SQLite
OS: Linux Embedded
PHP version: 5.5

Re: Unable to download shared file

Postby mattanorak » Sat May 10, 2014 8:36 am

Not sure, to be honest - I've only just installed OC. Be interesting to see if it needs to be done again on the next DSM update.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Unable to download shared file

Postby RealRancor » Sat May 10, 2014 8:58 am

Hi,

so this NAS is using mod_xsendfile as a default? Then it is obvious that this needs to be configured correctly as described in the ownCloud documentation:

http://doc.owncloud.org/server/6.0/admi ... dfile.html
*gone*

Roadrunner
Newbie
Posts: 2
Joined: Tue May 06, 2014 1:11 pm
ownCloud version: 6.0.3
Webserver: Apache
Database: MySQL
OS: Linux Embedded
PHP version: 5.5.11

Re: Unable to download shared file

Postby Roadrunner » Tue May 13, 2014 6:54 am

Thanks a lot, mattanorak - it works.

I'll have a look too for returnig of this problem in the next synology-update.
It's a nice "feature" of Synology to turn off settings without any information in changelogs :shock:

Landogardiner
Newbie
Posts: 7
Joined: Sun May 11, 2014 12:19 pm

Re: Unable to download shared file

Postby Landogardiner » Wed May 14, 2014 8:58 am

It' still not working here :-(
I've inserted the line into the mod_xsendfile.conf-user file as suggested:

XSendFile on
XSendFilePath /var/services/web /var/services/homes
SetEnv MOD_X_SENDFILE_ENABLED yes
XSendFilePath /volume1


I did a complete reboot of the synology NAS, but same error when trying to download a file.

widor
Newbie
Posts: 1
Joined: Thu May 15, 2014 7:01 pm
ownCloud version: 6.0.3
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.11

Re: Unable to download shared file

Postby widor » Thu May 15, 2014 8:07 pm

:mrgreen: It worked for me as well! (OC6.0.3, DS214+/DSM5)
I've been looking a couple of days for a working solution - thanks a lot, mattanorak!
And thanks for the warning in case of syno-updates to Roadrunner.

Berretje
Newbie
Posts: 2
Joined: Tue Aug 25, 2015 10:52 pm
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux

Re: Unable to download shared file

Postby Berretje » Tue Aug 25, 2015 10:54 pm

mattanorak wrote:Got it. Attention Synology users...

I can't take credit for this, I got the solution from a colleague who pointed me here:
http://sbdomo.esy.es/2014/05/my-reading ... /#more-168

But if you don't speak French, all you need to know is that you need to change the following file:
/etc/httpd/conf/extra/mod_xsendfile.conf-user

to include:

XSendFilePath /volume1

So, my whole mod_xsendfile.conf-user reads like this:

Code: Select all

LoadModule xsendfile_module modules/mod_xsendfile.so
XSendFile on
XSendFilePath /var/services/web /var/services/homes
SetEnv MOD_X_SENDFILE_ENABLED yes
XSendFilePath /volume1


Then issue httpd -k restart to restart the http server, and you're done!

:P


Excellent! I've been searching all over the place. I just registered to say thank you!

With regards,

Bart

waikeilaw
Newbie
Posts: 1
Joined: Sat Aug 29, 2015 11:48 am
ownCloud version: 8.1.1
Webserver: Apache
OS: Linux

Re: Unable to download shared file

Postby waikeilaw » Sat Aug 29, 2015 11:54 am

Yes, this solution works! Thank you very much! :D

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Unable to download shared file

Postby RealRancor » Sat Aug 29, 2015 12:35 pm

Ref for a long open issue to detect such wrong/vroken configs: https://github.com/owncloud/core/issues/15091
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 6.x”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest