portworx / lcfs

LCFS Graph driver for Docker
Apache License 2.0
300 stars 27 forks source link

Issues on installing lcfs on ubuntu 18.04 #50

Open untalmaga opened 6 years ago

untalmaga commented 6 years ago

Hello,

I tried to install using the bash script and I get the following error. RUNNING IT AS ROOT

curl -fsSL http://lcfs.portworx.com/lcfs-setup.sh | DEV=/dev/sdc bash Unable to find image 'centos:latest' locally latest: Pulling from library/centos aeb7866da422: Pull complete Digest: sha256:67dad89757a55bfdfabec8abd0e22f8c7c12a1856514726470228063ed86593b Status: Downloaded newer image for centos:latest Preparing... ######################################## Updating / installing... lcfs-0.5.0-0 ######################################## [ ok ] Stopping docker (via systemctl): docker.service. Connecting to device, please wait... Note: LCFS device file exists. Using existing device file /dev/sdc without modifying. lcfs[12772]: Build: 3e2810a7e7150a231e03d9e75c565c330484cc13 Release: 0.5.0-3e2810a lcfs[12772]: Maximum memory allowed for data pages 802 MB lcfs[12772]: Formatting /dev/sdc, size 16106127360 lcfs[12772]: /dev/sdc mounted at /var/lib/docker lcfs[12772]: /dev/sdc mounted at /lcfs Error: failed to start docker. Unable to get the full path to root (/var/lib/docker): failed to canonicalise path for /var/lib/docker: lstat /var/lib/docker: transport endpoint is not connected

Also, tried installing it manually, but I´m also getting some errors. Under the "Build the lcfs file system" while executing make I get the following.

`oot@docker-runner-110:/mnt/lcfs/lcfs# make gcc -g -msse4.2 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse3 -I/usr/local/include/fuse3 -c -o cli.o cli.c In file included from /usr/include/x86_64-linux-gnu/urcu/wfcqueue.h:28:0, from /usr/include/x86_64-linux-gnu/urcu-call-rcu.h:35, from /usr/include/x86_64-linux-gnu/urcu.h:133, from includes.h:34, from cli.c:1: linux.h: In function ‘lc_lockOwned’: linux.h:42:43: error: ‘struct pthread_rwlock_arch_t’ has no member named ‘writer’; did you mean ‘writers’? assert((lock == NULL) || lock->data.writer || ^ linux.h:43:40: error: ‘struct __pthread_rwlock_arch_t’ has no member named ‘nr_readers’; did you mean ‘readers’? (!exclusive && lock->data.nr_readers)); ^ linux.h:42:43: error: ‘struct __pthread_rwlock_arch_t’ has no member named ‘writer’; did you mean ‘writers’? assert((lock == NULL) || lock->data.writer || ^ linux.h:43:40: error: ‘struct pthread_rwlock_arch_t’ has no member named ‘__nr_readers’; did you mean ‘readers’? (!exclusive && lock->data.__nr_readers)); ^

: recipe for target 'cli.o' failed make: *** [cli.o] Error 1` I´m using gcc 7.6.
jjobi commented 6 years ago

Fixed the build issue.

Pensu commented 5 years ago

@jjobi I am facing the same issue now, do I need to build lcfs from scratch now? Or the script takes up the latest build by itself?

Pensu commented 5 years ago

I built lcfs from scratch, and it is failing here now:

root@ubuntubox:~/lcfs/lcfs# lcfs daemon /dev/vdb /var/lib/docker /lcfs
lcfs[15453]: Build: bf40d58dc5def39b93607e5abf238736239bfafa Release: 0.5.0-bf40d58
lcfs[15453]: Maximum memory allowed for data pages 24 MB
lcfs[15453]: Mounting /dev/vdb, size 32212254720 nmounts 2
lcfs: inode.c:544: lc_readInodes: Assertion `buf->ib_magic == LC_INODE_MAGIC' failed.

Any idea why this assertion could be failing?

jjobi commented 5 years ago

Could you zero out a few blocks on /dev/vdb and retry?

Pensu commented 5 years ago

@jjobi Yeah, I did that and was able to install lcfs. Thanks :)