Owncloud issues
|
Posts: 215
Threads: 25
Joined: Aug 2015
Reputation:
26
[Solved]
May 01, 2016, 09:18 PM
So I installed owncloud 9.0.1 together with memcached using the website's guide and got it to work almost fine, still having a few minor issues.
If I go into my admin page in owncloud I got 3 errors:
1:
Code:
php does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response.
Please check the installation documentation for php configuration notes and the php configuration of your server, especially when using php-fpm.
I looked at the installation documentation but not sure what to do with it. I tried adding the env lines (uncommented) to the php.ini file but nothing. When I Google this problem I kind of always get linked back to this same owncloud installation documentation.
2:
Code:
The "Strict-Transport-Security" HTTP header is not configured to at least "15768000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.
The thing I can find about is here but they are talking apache and that I don't have installed.
3.
Code:
No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
Please double check the installation guides , and check for any errors or warnings in the log.
And In my log it said:
Code:
Error PHP Module 'memcached' already loaded at Unknown#0 2016-05-01T20:25:35+00:00
I have memcached installed, with the guide from the website. The way to fix the error in the log was by removing extension=memcached.so from the php.ini file. But it didn't fix the No memory cache has been configured warning and issue.
And finally 4:
Anybody know how to use owncloud with an own generated ssl certificate in Windows. Tried adding WebDAV in my network but getting this error:
Code:
Mutual Authentication failed. The server's password is out of date at the domain controller.
Also using SafeInCloud, my password manager, for syncing I wanted to use WebDAV but got this error:
Code:
To sync with own WebDAV server via HTTPS, you might need to export the server's SSL certificate and install it on your computer. Refer to your WebDav provider's manual for detailed instructions.
I tried downloading the owncloud certificate and install but this doesn't seem to resolve the issue. So anybody got it to work on a windows computer?
So these are the last struggles, if anybody know how to fix these or even just one of the issues would be amazing.
Thanks in advance.
That McNugget sauce. I want that Mulan McNugget sauce, Morty. That's my series arc, Morty! If it takes nine seasons!
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
May 02, 2016, 05:30 AM
1. https://github.com/owncloud/core/issues/17504
2. HSTS is overkill IMO but I will look into this, it is just a header you add in the nginx configuration (in the server block not location block)
Code:
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
3. show output of php -m to make sure memcached is enabled, then add these lines to config.php (somewhere in the owncloud directory)
Code:
'memcache.local' => '\OC\Memcache\Memcached',
'memcache.distributed' => '\OC\Memcache\Memcached',
'memcached_servers' =>
array (
0 =>
array (
0 => '127.0.0.1',
1 => 11211,
),
),
4. I don't use Windows much for server things but it sounds like you just need to make an exception in your browser or WebDAV application to trust the self-signed certificate you generated, there may be some system-wide certificate trust area on Windows for non-CA certificates
Posts: 215
Threads: 25
Joined: Aug 2015
Reputation:
26
[Solved]
May 02, 2016, 07:26 PM
Great, thanks Mike.
1. Fixed, I was looking in the php.ini file while I needed to be in the http://www.conf file.
2. I started reading about it and it's like you say, overkill and not really needed. Well now the error message is gone
3. Fixed, just added your lines to /var/www/owncloud/config/config.php. Following your guide and adding extension=memcached.so to nano /etc/php5/fpm/php.ini gives the error:
Code:
Error PHP Module 'memcached' already loaded at Unknown#0 2016-05-02T19:13:00+00:00
4. Was just looking into adding owncloud to windows explorer like a network share. Haven't really found the way to get past the certificate error. But if I don't, it's no drama, if I find a workaround I let it know for sure.
And 5. One more little question. I have a few owncloud maps which gets files added through for example Samba, so owncloud doesn't pick up the files automatically. So I run the files can --all command but I would like to automate that. Is using a cronjob the best way?
Opening
and then adding
Code:
0 6 * * * -u www-data php console.php files:scan --all
0 11 * * * -u www-data php console.php files:cleanup
Is this the way to do that? Or is there a better way?
That McNugget sauce. I want that Mulan McNugget sauce, Morty. That's my series arc, Morty! If it takes nine seasons!
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
May 02, 2016, 07:34 PM
1. Could you share what you added, I'll update the guide to reflect it
2. was it exactly that and it fixed it?
3. It is probably because the memcached.so is in an ini file in /etc/php5/fpm/conf.d/20-memcached.ini and in the php.in file, just remove the php.ini one and restart
4. Please let me know if you fix this, would be a cool guide
5. cronjob seems like a great way to do it. I'm not sure if you will be able to run the script as www-data though as it's set to not allow logins, you can change that in /etc/passwd or run it as a different user and then chown -R /owncloud/files/path
Posts: 215
Threads: 25
Joined: Aug 2015
Reputation:
26
[Solved]
May 02, 2016, 08:00 PM
1. In /etc/php5/fpm/pool.d/www.conf uncomment:
Code:
;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp
2. Yes, I just added your line in /etc/nginx/sites-available/owncloud right under 'ssl_certificate_key /etc/nginx/ssl/owncloud.key;' and it worked fine.
3. Yes, exactly. And removing it from you php.ini file fixes it.
4. It's only windows that's giving me a hard time (surprise, surprise) In my browser and android I just have to acknowledge that I trust the certificate and everything works fine.
5. Logged in as user root this is the only way I could get it to run
Code:
-u www-data php console.php files:scan --all
If you look around for it you read about occ files can, but that doesn't work for me. The command above was the only way I got it to run.
That McNugget sauce. I want that Mulan McNugget sauce, Morty. That's my series arc, Morty! If it takes nine seasons!
Posts: 215
Threads: 25
Joined: Aug 2015
Reputation:
26
[Solved]
May 03, 2016, 09:42 PM
(This post was last modified: May 03, 2016, 09:45 PM by Yveske.)
Ok, so I figured out some more
4. The windows issue. I wasn't able to add owncloud as webdav as a network share in windows explorer because of the self signed certificate. So I had to add the certificate to my trusted certificates to have it to work (it also gives you a nice green lock and https in your webbrowser instead of all the red )
I found it mainly on the website of owncloud. I would suggest using internet explorer as webbrowser because the Clean SSL State option, I could only find in that browser. So what to do:
Code:
1. Go to the your ownCloud instance via your favorite Web browser.
2. Click through until you get to the certificate error in the browser status line.
3. View the cert, then from the Details tab, select Copy to File.
4. Save to the desktop with an arbitrary name, for example myOwnCloud.cer.
5. Start, Run, MMC.
6. File, Add/Remove Snap-In.
7. Select Certificates, Click Add, My User Account, then Finish, then OK.
8. Dig down to Trust Root Certification Authorities, Certificates.
9. Right-Click Certificate, Select All Tasks, Import.
10. Select the Save Cert from the Desktop.
11. Select Place all Certificates in the following Store, Click Browse,
12. Check the Box that says Show Physical Stores, Expand out Trusted Root Certification Authorities, and select Local Computer there, click OK, Complete the Import.
13. Check the list to make sure it shows up. You will probably need to Refresh before you see it. Exit MMC.
14. Open Browser, select Tools, Delete Browsing History.
15. Select all but In Private Filtering Data, complete.
16. Go to Internet Options, Content Tab, Clear SSL State.
17. Close browser, then re-open and test.
It looks like a lot but when you are doing it you will see it goes fairly well.
If you still can't make the network connection, make sure WebClient is running. You can check it in services.msc and put it automatic if it isn't.
5. The cronjob
I didn't gave a complete and correct way to work before.
So if you want to run a file scan you first have to go in the owncloud folder and the run the command (even as root) with sudo. So:
Code:
cd /var/www/owncloud
sudo -u www-data php console.php files:scan --all
So making it into a cronjob:
Code:
0 */2 * * * cd /var/www/owncloud && sudo -u www-data php console.php files:scan --all
0 5 * * * cd /var/www/owncloud && sudo -u www-data php console.php files:cleanup
That should do it.
And I also have a 6.
This actually just showing how I link my media folders into my owncloud like a shortcut (so not having to have the files twice).
So first ssh into the files folder of the user you want to add those maps:
Code:
cd /mnt/usbstorage1tb/Cloud/owncloud/Yves/files/
Then link the map you want to have showen in owncloud:
Code:
ln -s /mnt/usbstorage2tb/Media/Series
Ok so now the map is still not showing in your owncloud if you check it in your browser. What you do is, in your browser, in your owncloud, add a map with the exact same name. So for my example you should add 'Series', the map will add and if you click it, you will see it has all your files in it.
Or does somebody know a better way?
Ok, I think that's about it
That McNugget sauce. I want that Mulan McNugget sauce, Morty. That's my series arc, Morty! If it takes nine seasons!
Posts: 215
Threads: 25
Joined: Aug 2015
Reputation:
26
[Solved]
May 27, 2016, 01:45 PM
(This post was last modified: May 27, 2016, 04:57 PM by Yveske.)
Some more owncloud issues:
- With uploading to owncloud I ran into timeouts with bigger files.
In the nginx owncloud configuration in the php block I added:
Code:
fastcgi_read_timeout 120;
And now it works fine.
(Btw I mentioned earlier about using reverse proxy for owncloud, I did not mention to have it work properly, you also have to paste the 'location \php' in your reverse proxy file. So not only the te 'location \owncloud' block.)
- If you have owncloud mounted as a network share in windows, you have to change the filesizelimit other wise you can download only a couple mb. Howto:
Code:
- Open Run (win key + r) And type regedit and click ok.
- In regedit navigate:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
- Right click on the FileSizeLimitInBytes and click Modify
- Click on Decimal
- In the Value data box, type 4294967295, and then click OK. Note this sets the maximum you can download from the Webdav to 4 gig at one time, I haven’t figured out how to make it unlimited so if you want to download more you need to split it up.
- Reboot
- And one more thing, I haven't been able to upload files up to 10 gb to owncloud following your guide. The max I can do is 2 gb which I can set in the admin settings. Not that I probably will ever need 10 gb but I thought it's maybe worth mentioning.
That McNugget sauce. I want that Mulan McNugget sauce, Morty. That's my series arc, Morty! If it takes nine seasons!
|
|
Recent Posts
|
About Swap
jonescelinaa Apr 10, 2024, 06:58 AM
|
Tracker Status: Error Connection Time Out
jonesPhedra Apr 04, 2024, 08:17 AM
|
Split Tunnel Docker Containers
jonesPhedra Mar 27, 2024, 03:10 AM
|
Plex server not powerful enough, but only with s...
jonesPhedra Mar 27, 2024, 03:02 AM
|
game Geometry Dash Scratch
jonescelinaa Jan 31, 2024, 04:21 AM
|
Latest unread posts | Unanswered posts |
|