Hi Riccardo,

Thank you for your prompt reply.

I think I have a 143 chars filename limit because I use an ecryptfs
partition. See https://askubuntu.com/a/728525/58615.

*(elasticluster) elasticluster/src$ getconf NAME_MAX .*
*143*
*(elasticluster) elasticluster/src$ getconf PATH_MAX .*
*4096*


As for Docker, I tried that too but it did not work. Further below is the
error (highlighted in red).

*elasticluster_docker$elasticluster_docker$ wget -O elasticluster.sh
https://raw.githubusercontent.com/gc3-uzh-ch/elasticluster/master/elasticluster.sh
<https://raw.githubusercontent.com/gc3-uzh-ch/elasticluster/master/elasticluster.sh>*

*--2018-03-14 10:01:00--
https://raw.githubusercontent.com/gc3-uzh-ch/elasticluster/master/elasticluster.sh
<https://raw.githubusercontent.com/gc3-uzh-ch/elasticluster/master/elasticluster.sh>*
*Resolving raw.githubusercontent.com <http://raw.githubusercontent.com>
(raw.githubusercontent.com <http://raw.githubusercontent.com>)...
151.101.16.133*
*Connecting to raw.githubusercontent.com <http://raw.githubusercontent.com>
(raw.githubusercontent.com
<http://raw.githubusercontent.com>)|151.101.16.133|:443... connected.*
*HTTP request sent, awaiting response... 200 OK*
*Length: 6511 (6.4K) [text/plain]*
*Saving to: ‘elasticluster.sh’*

*elasticluster.sh
 
100%[======================================================================================================================>]
 6.36K  --.-KB/s    in 0.001s  *

*2018-03-14 10:01:00 (7.65 MB/s) - ‘elasticluster.sh’ saved [6511/6511]*


*elasticluster_docker$elasticluster_docker$ chmod +x elasticluster.sh *
*elasticluster_docker$elasticluster_docker$ mv elasticluster.sh
elasticluster*
*elasticluster_docker$elasticluster_docker$ ./elasticluster --help*
*elasticluster requires the 'docker' command,*
*which could not be found on $PATH*

*I can now try to install Docker; this requires the 'sudo' command with*
*unrestricted administrative access.  If you do not have administrative*
*access to this machine, please ask your system administrator to*
*install Docker.*

*To know more about Docker, visit http://www.docker.com/
<http://www.docker.com/>*

*Press Ctrl+C now to abort, or Enter/Return to try installing Docker.*

*2018-03-14 10:06:12 URL:https://get.docker.com/ <https://get.docker.com/>
[13451/13451] -> "get-docker.sh" [1]*

*# Executing docker install script, commit: 02d7c3c*
*+ sh -c apt-get update -qq >/dev/null*
*+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl
>/dev/null*
*+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg
<https://download.docker.com/linux/ubuntu/gpg>" | apt-key add -qq -
>/dev/null*
*+ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu
<https://download.docker.com/linux/ubuntu> xenial edge" >
/etc/apt/sources.list.d/docker.list*
*+ [ ubuntu = debian ]*
*+ sh -c apt-get update -qq >/dev/null*
*+ sh -c apt-get install -y -qq --no-install-recommends docker-ce
>/dev/null*
*+ sh -c docker version*
*Client:*
* Version: 18.02.0-ce*
* API version: 1.36*
* Go version: go1.9.3*
* Git commit: fc4de44*
* Built: Wed Feb  7 21:16:33 2018*
* OS/Arch: linux/amd64*
* Experimental: false*
* Orchestrator: swarm*

*Server:*
* Engine:*
*  Version: 18.02.0-ce*
*  API version: 1.36 (minimum version 1.12)*
*  Go version: go1.9.3*
*  Git commit: fc4de44*
*  Built: Wed Feb  7 21:15:05 2018*
*  OS/Arch: linux/amd64*
*  Experimental: false*
*If you would like to use Docker as a non-root user, you should now
consider*
*adding your user to the "docker" group with something like:*

*  sudo usermod -aG docker your-user*

*Remember that you will have to log out and back in for this to take
effect!*

*WARNING: Adding a user to the "docker" group will grant the ability to run*
*         containers which can be used to obtain root privileges on the*
*         docker host.*
*         Refer to
https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
<https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface>*
*         for more information.*
*docker: Got permission denied while trying to connect to the Docker daemon
socket at unix:///var/run/docker.sock: Post
http://%2Fvar%2Frun%2Fdocker.sock/v1.36/containers/create: dial unix
/var/run/docker.sock: connect: permission denied.*
*See 'docker run --help'.*

*In addition, the following options can be used to control execution of*
*ElastiCluster in Docker:*

*  --latest*
*      Same as '--pull --release latest'*

*  --pull*
*      Update Docker image to the latest version available*

*  --release TAG*
*      Use the Docker image with the given TAG (default tag: "latest")*

*elasticluster_docker$*

Thanks in advance,
Champak


On 13 March 2018 at 21:00, Riccardo Murri <[email protected]> wrote:

> Hello Champak,
>
> > IOError: [Errno 36] File name too long:
> > 'elasticluster/lib/python2.7/site-packages/libcloud/test/
> compute/fixtures/azure_arm/_subscriptions_99999999_9999_
> 9999_9999_999999999999_resourceGroups_000000_providers_Microsoft_Compute_
> virtualMachines_test_node_1_InstanceView.json'
>
> Can you please run the following commands *after activating the
> virtualenv where you're installing ElastiCluster*, and post the output?
>
>     getconf NAME_MAX .
>     getconf PATH_MAX .
>
> If I run them on my Ubuntu 16.04 machine, I get the values 255 and 4095,
> which means that a filename like the one you posted (whose total length
> is 236 chars, and whose longest component is 147 chars) is well within
> those limits.  And indeed, I cannot reproduce the error: installation
> instructions work just fine on my machine.
>
> Is there any specific reason why you are trying to install the Python
> version instead of using the Docker image? (see:
> http://elasticluster.readthedocs.io/en/latest/install.html#quickstart )
>
> Ciao,
> R
>
> --
> Riccardo Murri / Email: [email protected] / Tel.: +41 77 458 98 32
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticluster" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to