Owncloud 8 and MySQL: alternative approach

  • Hi tekkb,


    just tested it a little bit in my vm.
    It works so far. :thumbsup:


    After installation there is one Error-Message in the log, which is obvisouly meaningless:

    Quote

    Fatal core Invalid OCS content returned for app user_openmediavault 2015-04-19T10:05:07+00:00


    Second problem is, that my username begins with a capital letter an the log is spammed with:

    Code
    Error OC_Group_OpenMediaVault Failed to get user 'Arne' (code=6000, message=User 'arne' does not exist) 2015-04-19T10:07:30+00:00


    But authentication works.


    For research reasons I changed the capital 'A' to a lower-case 'a' in
    /etc/openmediavault/config.xml, /etc/passwd
    homedirs name + rights, oc-data-dir
    table owncloud, database export (with 'drop before create'), import batch-file
    That did it so far.
    Did I forget something?
    Is there an easier way to change usernames?


    I think it is a good idea to stay at lowercase usernames. Isn't it?

  • I think, my OC haven't a internet connection. I can't find updates sinze 7.0.2 and download plugins (updates). An other testfolder with OC 8 have the same problem. Everybody ideas?

    omv 5.x | 64 bit | omvextrasorg 5.x | kernel 5.4
    used plugins: omv-extras | portainer | rsnapshot | antivirus
    used container: portainer/portainer | linuxserver/nextcloud | linuxserver/letsencrypt | linuxserver/mariadb | jellyfin/jellyfin | doliana/logitech-media-server | v2tec/watchtower | instrumentisto/coturn

  • can everybody tell me what's the problem between the two configs?
    i use an old config:


    and when i will use the config from a OC7 manuel:


    I have an error when i will safe like thees:


    everybody can tell me the differnt and the problem?

    omv 5.x | 64 bit | omvextrasorg 5.x | kernel 5.4
    used plugins: omv-extras | portainer | rsnapshot | antivirus
    used container: portainer/portainer | linuxserver/nextcloud | linuxserver/letsencrypt | linuxserver/mariadb | jellyfin/jellyfin | doliana/logitech-media-server | v2tec/watchtower | instrumentisto/coturn

  • From Post#1:

    Advantage: Easy installation
    Disadvantage: OwnCloud-Users are not synced with OMV-Users. You have to create them manually.


    I installed OC this way since my "xpenology-days".
    So I am not able to give a professional opinion on the OMV-plugin.


    I see, you are still interested in OC. What prevents you from testing these ways in a VirtualBox?
    It is better to make your own experiences and check whether it fits for you!


  • Hallo Enra,


    warum hast Du dich von XPEnology abgewandt?
    Für XPEnology gibt es auch ein OwnCloud Plugin.
    Was war der Hauptgrund?


    Schöne Grüße


    openmedianer

  • If anyone has problems starting MySQL via plugin like me: you need to allow mysql user to read/write the data directory you created for it.

  • Hello,


    I need owncloud. I have used it via the plugin in the past but found it too slow to be usable. Im therefore interested in this method without the plugin.


    As per this thread ownCloud - Best Practice?
    I installed from the plugin and copied the files;
    /etc/nginx/site-enabled/openmediavault-owncloud
    /etc/nginx/openmediavault-webgui.d/owncloud.conf
    /etc/php5/fpm/pool.d/openmediavault-owncloud.conf


    I note that the file;
    /etc/nginx/openmediavault-webgui.d/oc
    was not available, so I couldnt copy it.


    I then removed the plugin and replaced the files to there intended locations.


    I then installed OC8 as per this method, this seemed to go ok except for 1 x message;
    Your data directory and files are probably accessible from the internet because the .htaccess file does not work. . . .


    OK. When I try to access owncloud, it gives me the login prompt and then at directs to the following link;

    Code
    http://192.168.2.20/owncloud/index.php/apps/files/


    The webpage returns a 500 Internal Server Error.


    Inspection of the nginx error log shows the below, whilst the owncloud-error.log is empty.


    Quote

    2015/05/02 15:15:37 [error] 20111#0: *669 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 192.168.2.3, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.2.20", referrer: "http://192.168.2.20/owncloud/index.php/settings/admin?trustDomain=localhost"


    Im figuring the issue is an nginx configuration issue but its beyond my capabilities. Ive done a bit of googling, but have yet to unearth anything helpful.


    Does anyone have any ideas that may be useful?


    As an aside - if one is questioning why Im trying to use this method rather than the method in the post using the nginx plugin, the reason is because I need to access owncloud via www.mydomain/owncloud rather than www.mydomain:90 etc. . . . as my work locks down access via ports.


    Any assistance appreciated.

  • Hi,


    before srewing up your system totally, consider a fresh installation as presented.


    Nginx is capable of named-based web-servers, so you can run your owncloud for example under "owncloud.lan".
    If neccesary you have to create a proper DNS entry for "owncloud.lan".
    But be aware that you should prior change the ports omv is listening and create a proper DNS entry for "owncloud.lan".
    Not sure whether they both can listen on 80/443.

  • Thanks for the advice, you are correct the nginx webserver configuration is too much of a handful for me.


    Im not sure I follow your comments on name based webservers. I want to be able to access from outside my lan, i.e http://www.mydomain.com/owncloud. For other applications I have done this using a proxypass in my sites-enabled 'default' file. Perhaps I need to install by your original method and then try to add the proxypass in manually?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!