LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 10-02-2020, 07:38 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Rep: Reputation: 8
NextCloud migration to docker on QNAP NAS


I have migrated the NextCloud application from the package that is installed in the QTS itself (downloaded from the club repo) to NextCloud in the docker. It worked and the base is kept at native NAS MariaDB all the time.
On the NAS itself (and not in the docker) there are also files of documents, photos etc. Everything seems to be synchronized with, for example, the NextCloud Linux client. Similarly, access from the Linux filemanager to the files in the database works (via WEBDav).
However, for clients, access to the database is as if in read only mode. It is 100% a problem with some access permissions.

Can my colleagues tell me what to check?

Last edited by mackowiakp; 10-02-2020 at 07:42 AM.
 
Old 10-02-2020, 08:24 PM   #2
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
You need to set your UID/GID docker variables to match your filesystem.

So for example, I installed nextcloud from https://hub.docker.com/r/linuxserver/nextcloud/ and had to configure the PUID and PGID variables to match the the permissions on my NAS. You can probably get the uid/gid by running ls -ln in the file share of your NAS.

If this doesn't help then post your docker-compose or docker run command as well as the output from ls -ln from your NAS.
 
Old 10-03-2020, 06:44 AM   #3
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Solved. I just copy documents, photos etc to docker, but still use MariaDB on host. After copying (moving) NextCloud data files to docker it was necessary to run in docker:

Code:
/usr/bin/occ files:scan --all
So DB structure of DB was rebuild according to new files location. It taking some time to reindex, creates photos miniature etc. Whole process takes at least 2 hours in my case, but it is acceptable. Migration in on-time procedure.

Last edited by mackowiakp; 10-03-2020 at 06:59 AM.
 
  


Reply

Tags
docker, nas, nextcould



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nextcloud/NAS/Backup NAS oguruma Linux - Server 1 03-14-2017 06:23 PM
Unable to Copy Files Over To Qnap Nas spaxz Linux - Newbie 2 05-02-2011 06:25 PM
Locked out of linux based NAS (QNAP TS-409Pro) -- My fault though kwiksand Linux - General 5 01-17-2010 04:53 PM
LXer: QNAP TS-409U Turbo NAS LXer Syndicated Linux News 0 07-15-2008 09:30 AM
QNAP NAS-server under Linux? ronald-be Linux - Hardware 2 09-16-2007 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration