Issue with adding Datasource

Hi Team,

For some reason I cannot add Datasource, pointing to an existing data…

  1. For this reason I have created especially folder /pydio/data
  2. pydio is username and have access to /pydio and /pydio/data
    /pydio/data is actually mount point for /dev/sdbx local ssd drive

Im recieving such output in console:

2020-05-22T13:28:16.830+0200 INFO pydio.grpc.tasks Run Job internal-prune-jobs on timer event Iso8601Schedule:"R/2012-06-04T19:25:16.828696-07:03/PT10M" 2020-05-22T13:29:24.649+0200 INFO pydio.rest.config Checking parent folder is writable before creating datasource {"ds": {"Name": "testsystem", "StorageType": "LOCAL", "PeerAddress": "PC-SERVER|10.1.1.100"}} 2020-05-22T13:29:24.655+0200 INFO pydio.rest.config Now Store Sources {"sources": {"cellsdata":{"Name":"cellsdata","StorageConfiguration":{"folder":"/root/.config/pydio/cells/data/cellsdata","normalize":"false"},"ObjectsServiceName":"local1","ObjectsPort":46655,"ObjectsBucket":"cellsdata","ApiKey":"W1luKzbf4B3ra971","ApiSecret":"yZRdHTqY2ovmvDeiAY1PWG65","PeerAddress":"PC-SERVER"},"personal":{"Name":"personal","StorageConfiguration":{"folder":"/root/.config/pydio/cells/data/personal","normalize":"false"},"ObjectsServiceName":"local1","ObjectsPort":46655,"ObjectsBucket":"personal","ApiKey":"W1luKzbf4B3ra971","ApiSecret":"yZRdHTqY2ovmvDeiAY1PWG65","PeerAddress":"PC-SERVER"},"pydiods1":{"Name":"pydiods1","StorageConfiguration":{"folder":"/root/.config/pydio/cells/data/pydiods1","normalize":"false"},"ObjectsServiceName":"local1","ObjectsPort":46655,"ObjectsBucket":"pydiods1","ApiKey":"W1luKzbf4B3ra971","ApiSecret":"yZRdHTqY2ovmvDeiAY1PWG65","PeerAddress":"PC-SERVER"},"testsystem":{"Name":"testsystem","StorageConfiguration":{"folder":"/pydio/data","normalize":"false"},"ObjectsServiceName":"local2","ObjectsBucket":"data","ApiKey":"QPCegVTqCewoxh84","ApiSecret":"FFV9KnRbaY3wJBqnnLIiqT8H","PeerAddress":"PC-SERVER|10.1.1.100"}}, "ds": {"Name": "testsystem", "Bucket": "data", "StorageType": "LOCAL", "PeerAddress": "PC-SERVER|10.1.1.100"}}
2020-05-22T13:29:33.562+0200 INFO pydio.grpc.data.sync Got an event on sources keys for pydio.grpc.data.sync. Let's start/stop services accordingly 2020-05-22T13:29:33.563+0200 INFO pydio.grpc.data.objects Got an event on sources keys for pydio.grpc.data.objects. Let's start/stop services accordingly 2020-05-22T13:29:33.563+0200 INFO pydio.grpc.data.index Got an event on sources keys for pydio.grpc.data.index. Let's start/stop services accordingly 2020-05-22T13:29:33.863+0200 INFO pydio.grpc.data.objects.local2 started 2020-05-22T13:29:33.864+0200 INFO pydio.grpc.data.objects.local2 Starting local objects service local2 on /pydio 2020-05-22T13:29:33.866+0200 INFO pydio.grpc.data.objects.local2 2020-05-22T13:29:33.866+0200 INFO Cross-device mounts detected on path (/pydio) at following locations [/pydio/data]. Export path should not have any sub-mounts, refusing to start. Invalid command line arguments 2020-05-22T13:29:33.871+0200 INFO pydio.grpc.data.sync.testsystem started 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 panic: runtime error: index out of range [0] with length 0 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 goroutine 471 [running]: 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 github/pydio/cells/vendor/github.com/pydio/minio-srv/cmd.newObjectLayer(0x0, 0x0, 0x0, 0x2, 0x1, 0x1, 0x0) 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/pydio/minio-srv/cmd/server-main.go:411 +0x1b9 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 github/pydio/cells/vendor/github.com/pydio/minio-srv/cmd.serverMain(0xc000a48420) 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/pydio/minio-srv/cmd/server-main.go:330 +0x858 2020-05-22T13:29:33.873+0200 ERROR pydio.grpc.data.objects.local2 github/pydio/cells/vendor/github.com/pydio/minio-srv/vendor/github.com/minio/cli.HandleAction(0x4034780, 0x7dcf918, 0xc000a48420, 0xc000cc1400, 0x0) 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/pydio/minio-srv/vendor/github.com/minio/cli/app.go:499 +0x7c 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 github/pydio/cells/vendor/github.com/pydio/minio-srv/vendor/github.com/minio/cli.Command.Run(0x46f0556, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x47372a8, 0x1c, 0x0, ...) 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/pydio/minio-srv/vendor/github.com/minio/cli/command.go:214 +0x991 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 github/pydio/cells/vendor/github.com/pydio/minio-srv/vendor/github.com/minio/cli.(*App).Run(0xc0009d7ba0, 0xc000423380, 0x8, 0x8, 0x0, 0x0) 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/pydio/minio-srv/vendor/github.com/minio/cli/app.go:260 +0x6ab 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 github/pydio/cells/vendor/github.com/pydio/minio-srv/cmd.Main(0xc000423380, 0x8, 0x8) 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/vendor/github.com/pydio/minio-srv/cmd/main.go:155 +0x89 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 github/pydio/cells/data/source/objects/grpc.(*ObjectHandler).StartMinioServer(0xc00053f5a0, 0x82cee20, 0xc000d33b90, 0xc000dc4396, 0x6, 0xc000a5e7e0, 0x22)
2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/data/source/objects/grpc/handler.go:121 +0x5d0 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 created by github/pydio/cells/data/source/objects/grpc.init.0.func1.1.1 2020-05-22T13:29:33.874+0200 ERROR pydio.grpc.data.objects.local2 /opt/teamcity/agent/work/fb9e7e7133d45375/go/src/github.com/pydio/cells/data/source/objects/grpc/plugins.go:76 +0x324 2020-05-22T13:29:33.874+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:29:33.878+0200 ERROR pydio.grpc.data.objects.local2 SubProcess was not killed properly: exit status 2 2020-05-22T13:29:34.274+0200 INFO pydio.grpc.data.index.testsystem 2020-05-22T13:29:34.274+0200 INFO Creating root node in index 2020-05-22T13:29:34.276+0200 INFO pydio.grpc.data.index.testsystem started 2020-05-22T13:29:38.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:29:42.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:29:46.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:29:50.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:29:54.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:29:58.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:30:02.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:30:06.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:30:10.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:30:14.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:30:16.830+0200 INFO pydio.grpc.tasks Run Job flush-mailer-queue on timer event Iso8601Schedule:"R/2012-06-04T19:25:16.828696-07:00/PT5M" 2020-05-22T13:30:16.830+0200 INFO pydio.grpc.tasks Run Job actions.auth.prune.tokens on timer event Iso8601Schedule:"R/2012-06-04T19:25:16.828696-07:00/PT5M" 2020-05-22T13:30:16.846+0200 INFO pydio.grpc.auth Pruned 1 expired offline sessions {"OperationUuid": "actions.auth.prune.tokens-4428cb58"} 2020-05-22T13:30:18.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:30:22.075+0200 INFO pydio.grpc.data.sync.testsystem Sync testsystem - Try to contact Objects 2020-05-22T13:30:24.075+0200 ERROR pydio.grpc.data.sync.testsystem Could not run {"error": "objects not reachable"} 2020-05-22T13:30:24.075+0200 INFO pydio.grpc.data.sync.testsystem stopping 2020-05-22T13:30:24.075+0200 INFO pydio.grpc.data.sync.testsystem Stopping sync task and registry watch e2020-05-22T13:30:33.607+0200 ERROR pydio.rest.user-meta Could not prepare start {"error": "timeout"}

Hello @lemonka ,

if you try to point to a mounted location you have to make sure that the parent folder is writable by the user running Cells.

For instance, if you mount on /pydio/data, Cells will attempt to create a .minio inside the parent pydio, this is required for the datasource to work.

hi @zyan - those locations are owned by pydio and both have r/w

root@PC-SERVER:/pydio# ll / | grep pydio
drwxr-xr-x 3 pydio pydio 4,0K maj 22 13:29 pydio/
root@PC-SERVER:/pydio# ll /pydio
drwxr-xr-x 3 pydio pydio 4,0K maj 22 13:29 ./
drwxr-xr-x 3 pydio pydio 4,0K maj 23 22:03 data/

if you run ls -la do you see a .minio folder ?