Nextcloud cofigure database Localhost etc

    • OMV 4.x
    • Nextcloud cofigure database Localhost etc

      Following this guide and changing the dock server for Raspberry

      lsioarmhf/nextcloud
      lsioarmhf/mariadb
      I was able to create an account in nextcloud like in 10:38 of the Tecno Dad Life's guide the problem I think I typed enter too early when I created the admin and PW so I did not have time to configure the storage & database localhost on the Opencloud GUI front-page,
      but I am able to login in Nexcloud! and it look normal but with the generic folder how to attach my Data
      further more I do not know whereto enter credential for MySQL/MariadDB
      Where inside the Nextcloud GUI can I add those parameters?
      Or even thu CLI how to fix it without starting from scratch?
    • Backup your "AppData" folder just in case, go into your running dockers select and click on modify, check if your config matches the tutorial, also a print screen of nextcloud docker config would be nice.

      The storage folder is defined in the docker config under /data from what I remember.

      To link the database you need to navigate to ip or domain

      But give us some context, version of OMV, docker config of Mariadb and Nextcloud, setting the user in the db is not the same as making a nextcloud user, how did you manage to make a nextcloud user without following the setup in the guide without being connected to the db.

      Also with docker it takes like 10 mins to redo this nextcloud setup, I know i did it like 10 times until I was ok with my setup.
      Theme changer tool: Unofficial OMV Theme Changer tool, css themes and UI manipulation
      Theme changer plugin: OMV-Theme plugin, theme changer and UI customisation

      omv-theme repo: github.com/virgil-av/omv-theme
      openmediavault-theme repo: github.com/virgil-av/openmediavault-theme

      If you appreciate what i do just smash that like
    • syrusstk wrote:

      Backup your "AppData" folder just in case, go into your running dockers select and click on modify, check if your config matches the tutorial, also a print screen of nextcloud docker config would be nice.

      The storage folder is defined in the docker config under /data from what I remember.

      To link the database you need to navigate to ip or domain

      But give us some context, version of OMV, docker config of Mariadb and Nextcloud, setting the user in the db is not the same as making a nextcloud user, how did you manage to make a nextcloud user without following the setup in the guide without being connected to the db.

      Also with docker it takes like 10 mins to redo this nextcloud setup, I know i did it like 10 times until I was ok with my setup.
      I am lost no idea why I am able to login I just create a user and password when I go to ip I am getting just the login page
      you are right got a backup from before next cloud installation going to do it again tomorrow
      Images
      • 2018-10-03_002945.jpg

        81.05 kB, 687×681, viewed 269 times
      • 2018-10-03_003104.jpg

        97.44 kB, 686×696, viewed 282 times
      • 2018-10-03_003312.jpg

        143.58 kB, 1,111×971, viewed 252 times
      • 2018-10-03_004002.jpg

        92.23 kB, 1,211×1,342, viewed 244 times
      • 2018-10-03_004708.jpg

        31.83 kB, 564×241, viewed 251 times
    • Glad that you managed to setup this, now regarding your last error, probably you assigned root user PUID 1000, root user (see askubuntu.com/questions/380767…770-so-that-the-directory).

      I always configured for all my docker containers the admin user, which is the user for OMV admin, which is PUID 998, you can check by id admin, change that in your nextcloud docker and it should fix this.
      Theme changer tool: Unofficial OMV Theme Changer tool, css themes and UI manipulation
      Theme changer plugin: OMV-Theme plugin, theme changer and UI customisation

      omv-theme repo: github.com/virgil-av/omv-theme
      openmediavault-theme repo: github.com/virgil-av/openmediavault-theme

      If you appreciate what i do just smash that like
    • syrusstk wrote:

      Glad that you managed to setup this, now regarding your last error, probably you assigned root user PUID 1000, root user (see askubuntu.com/questions/380767…770-so-that-the-directory).

      I always configured for all my docker containers the admin user, which is the user for OMV admin, which is PUID 998, you can check by id admin, change that in your nextcloud docker and it should fix this.
      I am all good now but I am definitely interested by your link next step is to figure out to sync one my folder like a symlink and not double the actual file furthermore how to configure it to access it from internet? ( but I doubt a PI will be able to do it will Probably need to invest in something better)
    • Hi, I've been reading this post and some other in the forum, since I'm getting a very similar issue.

      The thing is, after try nextcloud for some days, once I reboot the server, the database in the docker container starts to fail.
      Therefore I decided to use the OMV mysql plugin instead. I created the database, the user and so on, and I can log in mysql with both root and nextclouddbuser, The problem is when I try to create the admin account in the nextcloud first setup page, I still getting always the message

      Source Code

      1. Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused
      it doesn't matter if I try to connect to the database via root or via the new db user, and I'm wondering if there is some "special" config I'm missing to connect with the mysql plugin instead of a docker container. For the nextcloud container, I followed the same video shown in the first message in this thread.

      If anyone can point me in the right direccion, it would be great.

      Thanks everyone!