OwnCloud Instructions

Status
Not open for further replies.

victorbrca

Dabbler
Joined
Oct 1, 2013
Messages
19
Is there a documentation for the OwnCloud PBI installation and configuration? I have it up and running but I'm having some problems, and looking at their forum it seems the PBI is missing some configuration.
 

N00b

Explorer
Joined
May 31, 2013
Messages
83
Could you be more specific about "problems"? The pbi works very well in my experience.
 

victorbrca

Dabbler
Joined
Oct 1, 2013
Messages
19
I didn't want to ask for help here as it's not really a FreeNAS issue. Looks like maybe some configuration missing, so I was wondering if the PBI requires additional config.

I have opened a thread on the OwnCloud forum for help. Here's what I said there:

===============================================================


Hi all,

I'm running OwnCloud on a FreeNAS server (installed via FreeNAS package) and the owncloud client (Linux).

After moving folders, within the OwnCloud folder, the data source (server) did not get updated, and I keep getting different errors on the desktop sync client.

Initially it was - "A network connection timeout happened", and then "500 Internal Server Error". So I did some researching and made the following modifications:

Code:
## Large file support
=> /usr/pbi/owncloud-amd64/etc/php.ini-production:
upload_max_filesize = 2G
post_max_size = 2G
 
=> /usr/pbi/owncloud-amd64/www/owncloud/.htaccess:
php_value upload_max_filesize 2G
php_value post_max_size 2G
 
 
## Known problems with php and webserver modules
=> /usr/pbi/owncloud-amd64/etc/apache22/extra/httpd-dav.conf:
<Directory "/usr/pbi/owncloud-amd64/uploads">
#    Dav On
 
    Order Allow,Deny
    Allow from all
 
#    AuthType Digest
    AuthName DAV-upload
 
 
## Enable php log
/usr/pbi/owncloud-amd64/etc/php.ini-production
error_log = /var/log/php-errors.log


Now the client is giving "Problem: Could not connect to server: Connection refused". Both httpd-error.log or httpd-access.log do not show any relevant information. Am I missing something?
 

N00b

Explorer
Joined
May 31, 2013
Messages
83
To increase file upload size you need to modify the file .htaccess in directory '/usr/pbi/owncloud-amd64/www/owncloud'. Have you done that as well? I presume you are able to connect with a web browser but the client is not working.
 

victorbrca

Dabbler
Joined
Oct 1, 2013
Messages
19
To increase file upload size you need to modify the file .htaccess in directory '/usr/pbi/owncloud-amd64/www/owncloud'. Have you done that as well? I presume you are able to connect with a web browser but the client is not working.


Hi all,

I'm running OwnCloud on a FreeNAS server (installed via FreeNAS package) and the owncloud client (Linux).

After moving folders, within the OwnCloud folder, the data source (server) did not get updated, and I keep getting different errors on the desktop sync client.

Code:
=> /usr/pbi/owncloud-amd64/www/owncloud/.htaccess:
php_value upload_max_filesize 2G
php_value post_max_size 2G
 

raidflex

Guru
Joined
Mar 14, 2012
Messages
531
There seems to still be issues with uploading files larger then 2GB in size over the web interface.
 

Adrastos

Cadet
Joined
Oct 11, 2013
Messages
9
the ab ove setting pertains to owncloud install and not the settings as they are applicable to the Owncloud plugin for freenas from what I can see. However, they are certainly related, but slightly different when using the Owncloud plugin. That being said, I have modified my .htaccess as indicated above. My settings in my .htaccess

<IfModule mod_php5.c>
php_value upload_max_filesize 2G
php_value post_max_size 2G
php_value memory_limit 512M
<IfModule env_module>

I next modified my php.ini-production:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2G

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 3G

I have restarted the entire box and still receive the following notification when uploading a file of 40 megs. Well below the 2G limit that I have configured.

upload error.png


If someone has an idea of what I am missing your help will be greatly appreciated. Thanks.
 

raymonvdm

Dabbler
Joined
Aug 24, 2011
Messages
14
How did you install Owncloud, i thought owncloud should be in the list of available plugins but is actually not :confused:
 

Adrastos

Cadet
Joined
Oct 11, 2013
Messages
9
Own cloud is working well and was installed from the plugin in freenas 9.1.1. The problem is being able to upload via the web interface. I have it working for files below 512 meg, but would like to increase that to 1 or 2 gigs.

sb
 

francois13e

Cadet
Joined
Oct 9, 2011
Messages
6
I seem to have the exact same issue as Adrastos...
 

norskman

Contributor
Joined
Sep 28, 2012
Messages
149
So have I - it is a bug somewhere - I think with Owncloud not FreeNAS
Not sure how to fix it.
 

francois13e

Cadet
Joined
Oct 9, 2011
Messages
6
Sort of a workaround:

With no modification to php.ini-production.
Modify :
  1. => /usr/pbi/owncloud-amd64/www/owncloud/.htaccess:
  2. php_value upload_max_filesize 2047M
  3. php_value post_max_size 2047M

That will work. 2048M won't. 1.99G works. Setting it to 2047M will show 2G limit in the interface.
I'll be satisfied with that until this bug is fixed !
 

francois13e

Cadet
Joined
Oct 9, 2011
Messages
6
I confirm all is well, but I would have liked to raise the limit to like 30gb as I have large file to transmit to my clients.

Any ideas ?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Same problem here...
what's the issues you are facing, and what have you tried? owncloud has a documentation page on uploading files over 2GB
 

Cheejyg

Dabbler
Joined
Dec 11, 2016
Messages
31
what's the issues you are facing, and what have you tried? owncloud has a documentation page on uploading files over 2GB
Yup, that's exactly the issue I'm facing here; uploading big files > 2GB.

Well, firstly I tried what would be the easiest method of achieving big files upload, which is to simply configure it within its WebGUI.

admin_filehandling-1.png


I've set the Maximum upload size to "16 GB", saved it, waited 10 minutes, restarted the jail and plugin, waited 10 minutes again and then I tried uploading some test files...
The 1 GB test file uploaded successfully but once I tried uploading the 2 GB test file, the file upload hangs at the very last bit (99%?)

F0rhoWb.png

*it says 8 seconds left, but it has been at this for about 12 hours or so*


Then, I tried following the documentation on https://doc.owncloud.org/server/9.0...tion_files/big_file_upload_configuration.html:
  • Added/Edited the following lines of code in owncloud/.htaccess and owncloud/.user.ini
    • owncloud/.htaccess:
      Code:
      php_value upload_max_filesize 16G
      php_value post_max_size 16G
      php_value memory_limit 16G
      php_value max_input_time 3600
      php_value max_execution_time 3600
    • owncloud/.user.ini:
      Code:
      upload_max_filesize = 16G
      post_max_size = 16G
      memory_limit = 16G
      max_input_time = 3600
      max_execution_time = 3600
  • Added a phpinfo.php in owncloud/ to try and determine PHP version and configure appropriately but access to the page via http://example.com/phpinfo.php redirects to http://example.com/apps/files (ownCloud stuff)
    P.S. I have little knowledge to no knowledge on how Apache24 works and I didn't want to mess up ownCloud so I stopped there.
    • owncloud/phpinfo.php:
      Code:
      <?php phpinfo(); ?>
  • EDIT: No idea what the other parts in the doc meant so I stopped there too.
EDIT: Viewing the log files in /var/log/httpd-access.log and /var/log/httpd-error.log didn't help much either.

My system is 64-bit architecture so the hard limit(s) shouldn't be a problem, unless jails run in 32-bit, but that's about all I have done.

No idea what to do next, if you can help, thanks in advance!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the jail isn't 32bit so that isn't an issue. the php config should be in /usr/pbi/owncloud-amd64/etc and the web directory is /usr/pbi/owncloud-amd64/www/owncloud
 

Cheejyg

Dabbler
Joined
Dec 11, 2016
Messages
31
the jail isn't 32bit so that isn't an issue. the php config should be in /usr/pbi/owncloud-amd64/etc and the web directory is /usr/pbi/owncloud-amd64/www/owncloud
I already edited the php.ini as well as php-production.ini and the .htaccess n the web directory
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
did you ever access your php info page to confirm your settings?
the next thing I would try is figure out how to enable logging in Apache and check those.
 
Status
Not open for further replies.
Top