sciencebox / uboxed

ScienceBox in docker-compose
GNU Affero General Public License v3.0
14 stars 11 forks source link

Attempt on macOS #2

Open ijstokes opened 6 years ago

ijstokes commented 6 years ago

I'm in the midst of trying this out on macOS. Made a few small changes to SetupHost.sh and it is proceeding with container creation, but I wanted to capture some of the issues that came up. I'll report progress on this issue. FWIW, I am no longer affiliated with CERN, but I was previously a PhD student on LHCb working on the computing team (Philippe Charpentier, Andrei Tsaregorotsev, Vincent Garonne and others).

ijstokes commented 6 years ago

First issue: unclear if it is OK that the following are all "skipping"

Network demonet is external, skipping
Volume ldap_database is external, skipping
Volume ldap_config is external, skipping
Volume eos-fst_1 is external, skipping
Volume eos-fst_userdata_1 is external, skipping
Volume eos-fst_2 is external, skipping
Volume eos-fst_userdata_2 is external, skipping
Volume eos-fst_3 is external, skipping
Volume eos-fst_userdata_3 is external, skipping
Volume eos-fst_4 is external, skipping
Volume eos-fst_userdata_4 is external, skipping
Volume eos-mgm is external, skipping
Volume eos-mq is external, skipping
Volume cernbox_shares_db is external, skipping
ijstokes commented 6 years ago

Second issue: mount commands fail. When the script completes I'll look in to what these were trying to do and see if I can come up with a macOS version:


Cleaning up folders...

Initializing folders...
mount: illegal option -- -
usage: mount [-dfruvw] [-o options] [-t external_type] special node
       mount [-adfruvw] [-t external_type]
       mount [-dfruvw] special | node
mount: illegal option -- -
usage: mount [-dfruvw] [-o options] [-t external_type] special node
       mount [-adfruvw] [-t external_type]
       mount [-dfruvw] special | node
mount: illegal option -- -
usage: mount [-dfruvw] [-o options] [-t external_type] special node
       mount [-adfruvw] [-t external_type]
       mount [-dfruvw] special | node
mount: illegal option -- -
usage: mount [-dfruvw] [-o options] [-t external_type] special node
       mount [-adfruvw] [-t external_type]
       mount [-dfruvw] special | node
ijstokes commented 6 years ago

Third issue: netstat operations fail:

Check availability of ports 80 and 443...
netstat: option requires an argument -- p
Usage:  netstat [-AaLlnW] [-f address_family | -p protocol]
    netstat [-gilns] [-f address_family]
    netstat -i | -I interface [-w wait] [-abdgRtS]
    netstat -s [-s] [-f address_family | -p protocol] [-w wait]
    netstat -i | -I interface -s [-f address_family | -p protocol]
    netstat -m [-m]
    netstat -r [-Aaln] [-f address_family]
    netstat -rs [-s]

Ok.
ijstokes commented 6 years ago

Fourth issue: (related to earlier mount problems, I imagine):

Checking the availability of new certificates for HTTPS...

Run via docker-compose...
Creating cernbox ... 
Creating eos-mq  ... 
Creating eos-fst2 ... 
Creating eos-mq         ... done
Creating cernbox        ... done
Creating eos-mgm  ... 
Creating eos-fst3       ... done
Creating eos-mgm        ... done
Creating eos-fuse       ... error
Creating cernboxgateway ... 
Creating eos-fst4       ... 
Creating jupyterhub     ... done
Creating ldap-add       ... 
Creating cernboxgateway ... done
Creating eos-fst4       ... done
Creating eos-fst1       ... done
Creating ldap-add       ... done

ERROR: for cvmfs  Cannot start service cvmfs: b'linux mounts: path /tmp/sciencebox/cvmfs_mount is mounted on /tmp but it is not a shared mount'

ERROR: for eos-fuse  Cannot start service eos-fuse: b'linux mounts: path /tmp/sciencebox/eos_mount is mounted on /tmp but it is not a shared mount'
ERROR: Encountered errors while bringing up the project.
moscicki commented 6 years ago

Sounds interesting. Let us how how you are doing and if you manage to run on MacOSX. Thanks.

moscicki commented 6 years ago

FYI @ebocchi

ijstokes commented 6 years ago

And finally, probably due to the issues above, it gets stuck just after the above three ERRORs when it hits this stage:

Configuring:
  - Initialization

I've left it for 4+ hours and no response.

ijstokes commented 6 years ago

A full PR seems excessive given I have only two lines that are changed, so I'll just include the git diff output:

diff --git a/etc/common.sh b/etc/common.sh
index de2bcf6..43578d4 100644
--- a/etc/common.sh
+++ b/etc/common.sh
@@ -4,7 +4,7 @@

 #--- Global Settings ---#
 # Host network parameters
-export HOSTNAME=`hostname --fqdn`
+export HOSTNAME=`hostname -f`
 export HTTP_PORT=80
 export HTTPS_PORT=443
 export SWAN_HTTPS_PORT=8443
@@ -73,7 +73,7 @@ if [ "`pgrep docker`" == "" ]; then
 fi

 # Check docker-compose is available and returns something when asking for version
-if [ ! -f /usr/bin/docker-compose ] || [ "`docker-compose --version`" == "" ]; then
+if [ ! -f /usr/local/bin/docker-compose ] || [ "`docker-compose --version`" == "" ]; then
   echo "Docker-compose is not available. Cannot continue."
   exit 1
 fi
ebocchi commented 6 years ago

Thanks a lot for reporting! Could you please tell me the version of your OS and provide the output of docker version and docker info?