“Too many levels of symbolic links” in NFS via automount resolved by restarting DockerIs there a way to make a browse-able automount directory without mounting the subdirectories?cross-syncing home directories with disconnected operation (Linux/Ubuntu)Automount directories only on certain clients via NIS and NFSWhy do some host volumes in Docker containers give the error “too many levels of symbolic links”?MySQL, NFS and symbolic linksVanishing network connectivity in HPC cluster

Why do UK politicians seemingly ignore opinion polls on Brexit?

aging parents with no investments

Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?

How can I add custom success page

How to deal with fear of taking dependencies

Does a dangling wire really electrocute me if I'm standing in water?

Filling an area between two curves

What is it called when one voice type sings a 'solo'?

How to make payment on the internet without leaving a money trail?

Was there ever an axiom rendered a theorem?

Is domain driven design an anti-SQL pattern?

What happens when a metallic dragon and a chromatic dragon mate?

Extreme, but not acceptable situation and I can't start the work tomorrow morning

What to wear for invited talk in Canada

Why doesn't a const reference extend the life of a temporary object passed via a function?

Where to refill my bottle in India?

"My colleague's body is amazing"

What do the Banks children have against barley water?

Why was the "bread communication" in the arena of Catching Fire left out in the movie?

Pristine Bit Checking

Where else does the Shulchan Aruch quote an authority by name?

Why do we use polarized capacitors?

Can a planet have a different gravitational pull depending on its location in orbit around its sun?

Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?



“Too many levels of symbolic links” in NFS via automount resolved by restarting Docker


Is there a way to make a browse-able automount directory without mounting the subdirectories?cross-syncing home directories with disconnected operation (Linux/Ubuntu)Automount directories only on certain clients via NIS and NFSWhy do some host volumes in Docker containers give the error “too many levels of symbolic links”?MySQL, NFS and symbolic linksVanishing network connectivity in HPC cluster






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















This is bizarre and while I have a workaround, I'd prefer a permanent fix.



I have a small group of GPU machines running Ubuntu 14.04 which I am using as workers for a cloud service that's effected via Docker images. I have nvidia-docker installed on all the worker machines, so that docker has access to the GPUs. The worker machines also function as individual servers which lab members can do experiments on directly (academic environment, the cloud service is experimental, etc). For the latter purpose, all the machines automount individual user shares over NFS. We recently switched to automount from a static fstab configuration, and I'm still getting used to it -- it's entirely possible there's some obvious issue at play here I'm not seeing because I'm an automount n00b. Finally, I haven't set anything up for docker images to be able to access the NFS shares, so in theory there should be no connection... in theory.



This week one of our lab members reported the Too many levels of symbolic links error when attempting to access their share drive from one of the GPU machines. They're not using docker at all (to their knowledge). There are no questionable symbolic links in their tree (via find -type l), so it has to be something else getting into a weird state. The mount point looks like this under ls -l from the parent directory:



dr-xr-xr-x 2 root root 0 Dec 5 18:38 labmember1


which seems... bad? root:root 555, really? and when you try to browse it you get, indeed:



$ cd /path/to/labmember1/
-bash: cd: /path/to/labmember1/: Too many levels of symbolic links


The share doesn't seem to actually be mounted -- it does not appear in /etc/mtab, and (predictably) attempts to unmount it manually report:



$ sudo umount /path/to/labmember1/
umount: /path/to/labmember1/: not mounted


Restarting autofs (service autofs restart) did nothing.



What I thought was unrelated at the time: docker had been spewing veth interfaces everywhere. This was a machine being actively used as a cloud worker, so I figured it was our cloud software. Now I'm not so sure.



Today the Too many levels of symbolic links failure occurred on another GPU machine, which has docker/nvidia-docker installed but does not run the cloud worker software. Lo and behold, veth interfaces everywhere, though in far fewer numbers than on the cloud worker machine.



On a whim, I stopped the docker service (service docker stop). Magic! The share mounts normally and our lab member can use their stuff again. The share remains in working condition after starting docker back up again.



So I can clearly fix this issue by restarting docker if(when) it happens again, but I'd like to know



  1. what is causing this in the first place? or, how can I find out?

  2. is there a way to prevent this from happening again, or am I stuck just fixing it every time it breaks?









share|improve this question






















  • Was any explanation found for this behavior? I'm seeing the same things: I installed nvidia-docker on an Ubuntu 16.04 machine and restarting docker fixes the "Too many levels of symbolic links" problem.

    – Randall Radmer
    Feb 26 at 23:15

















0















This is bizarre and while I have a workaround, I'd prefer a permanent fix.



I have a small group of GPU machines running Ubuntu 14.04 which I am using as workers for a cloud service that's effected via Docker images. I have nvidia-docker installed on all the worker machines, so that docker has access to the GPUs. The worker machines also function as individual servers which lab members can do experiments on directly (academic environment, the cloud service is experimental, etc). For the latter purpose, all the machines automount individual user shares over NFS. We recently switched to automount from a static fstab configuration, and I'm still getting used to it -- it's entirely possible there's some obvious issue at play here I'm not seeing because I'm an automount n00b. Finally, I haven't set anything up for docker images to be able to access the NFS shares, so in theory there should be no connection... in theory.



This week one of our lab members reported the Too many levels of symbolic links error when attempting to access their share drive from one of the GPU machines. They're not using docker at all (to their knowledge). There are no questionable symbolic links in their tree (via find -type l), so it has to be something else getting into a weird state. The mount point looks like this under ls -l from the parent directory:



dr-xr-xr-x 2 root root 0 Dec 5 18:38 labmember1


which seems... bad? root:root 555, really? and when you try to browse it you get, indeed:



$ cd /path/to/labmember1/
-bash: cd: /path/to/labmember1/: Too many levels of symbolic links


The share doesn't seem to actually be mounted -- it does not appear in /etc/mtab, and (predictably) attempts to unmount it manually report:



$ sudo umount /path/to/labmember1/
umount: /path/to/labmember1/: not mounted


Restarting autofs (service autofs restart) did nothing.



What I thought was unrelated at the time: docker had been spewing veth interfaces everywhere. This was a machine being actively used as a cloud worker, so I figured it was our cloud software. Now I'm not so sure.



Today the Too many levels of symbolic links failure occurred on another GPU machine, which has docker/nvidia-docker installed but does not run the cloud worker software. Lo and behold, veth interfaces everywhere, though in far fewer numbers than on the cloud worker machine.



On a whim, I stopped the docker service (service docker stop). Magic! The share mounts normally and our lab member can use their stuff again. The share remains in working condition after starting docker back up again.



So I can clearly fix this issue by restarting docker if(when) it happens again, but I'd like to know



  1. what is causing this in the first place? or, how can I find out?

  2. is there a way to prevent this from happening again, or am I stuck just fixing it every time it breaks?









share|improve this question






















  • Was any explanation found for this behavior? I'm seeing the same things: I installed nvidia-docker on an Ubuntu 16.04 machine and restarting docker fixes the "Too many levels of symbolic links" problem.

    – Randall Radmer
    Feb 26 at 23:15













0












0








0


2






This is bizarre and while I have a workaround, I'd prefer a permanent fix.



I have a small group of GPU machines running Ubuntu 14.04 which I am using as workers for a cloud service that's effected via Docker images. I have nvidia-docker installed on all the worker machines, so that docker has access to the GPUs. The worker machines also function as individual servers which lab members can do experiments on directly (academic environment, the cloud service is experimental, etc). For the latter purpose, all the machines automount individual user shares over NFS. We recently switched to automount from a static fstab configuration, and I'm still getting used to it -- it's entirely possible there's some obvious issue at play here I'm not seeing because I'm an automount n00b. Finally, I haven't set anything up for docker images to be able to access the NFS shares, so in theory there should be no connection... in theory.



This week one of our lab members reported the Too many levels of symbolic links error when attempting to access their share drive from one of the GPU machines. They're not using docker at all (to their knowledge). There are no questionable symbolic links in their tree (via find -type l), so it has to be something else getting into a weird state. The mount point looks like this under ls -l from the parent directory:



dr-xr-xr-x 2 root root 0 Dec 5 18:38 labmember1


which seems... bad? root:root 555, really? and when you try to browse it you get, indeed:



$ cd /path/to/labmember1/
-bash: cd: /path/to/labmember1/: Too many levels of symbolic links


The share doesn't seem to actually be mounted -- it does not appear in /etc/mtab, and (predictably) attempts to unmount it manually report:



$ sudo umount /path/to/labmember1/
umount: /path/to/labmember1/: not mounted


Restarting autofs (service autofs restart) did nothing.



What I thought was unrelated at the time: docker had been spewing veth interfaces everywhere. This was a machine being actively used as a cloud worker, so I figured it was our cloud software. Now I'm not so sure.



Today the Too many levels of symbolic links failure occurred on another GPU machine, which has docker/nvidia-docker installed but does not run the cloud worker software. Lo and behold, veth interfaces everywhere, though in far fewer numbers than on the cloud worker machine.



On a whim, I stopped the docker service (service docker stop). Magic! The share mounts normally and our lab member can use their stuff again. The share remains in working condition after starting docker back up again.



So I can clearly fix this issue by restarting docker if(when) it happens again, but I'd like to know



  1. what is causing this in the first place? or, how can I find out?

  2. is there a way to prevent this from happening again, or am I stuck just fixing it every time it breaks?









share|improve this question














This is bizarre and while I have a workaround, I'd prefer a permanent fix.



I have a small group of GPU machines running Ubuntu 14.04 which I am using as workers for a cloud service that's effected via Docker images. I have nvidia-docker installed on all the worker machines, so that docker has access to the GPUs. The worker machines also function as individual servers which lab members can do experiments on directly (academic environment, the cloud service is experimental, etc). For the latter purpose, all the machines automount individual user shares over NFS. We recently switched to automount from a static fstab configuration, and I'm still getting used to it -- it's entirely possible there's some obvious issue at play here I'm not seeing because I'm an automount n00b. Finally, I haven't set anything up for docker images to be able to access the NFS shares, so in theory there should be no connection... in theory.



This week one of our lab members reported the Too many levels of symbolic links error when attempting to access their share drive from one of the GPU machines. They're not using docker at all (to their knowledge). There are no questionable symbolic links in their tree (via find -type l), so it has to be something else getting into a weird state. The mount point looks like this under ls -l from the parent directory:



dr-xr-xr-x 2 root root 0 Dec 5 18:38 labmember1


which seems... bad? root:root 555, really? and when you try to browse it you get, indeed:



$ cd /path/to/labmember1/
-bash: cd: /path/to/labmember1/: Too many levels of symbolic links


The share doesn't seem to actually be mounted -- it does not appear in /etc/mtab, and (predictably) attempts to unmount it manually report:



$ sudo umount /path/to/labmember1/
umount: /path/to/labmember1/: not mounted


Restarting autofs (service autofs restart) did nothing.



What I thought was unrelated at the time: docker had been spewing veth interfaces everywhere. This was a machine being actively used as a cloud worker, so I figured it was our cloud software. Now I'm not so sure.



Today the Too many levels of symbolic links failure occurred on another GPU machine, which has docker/nvidia-docker installed but does not run the cloud worker software. Lo and behold, veth interfaces everywhere, though in far fewer numbers than on the cloud worker machine.



On a whim, I stopped the docker service (service docker stop). Magic! The share mounts normally and our lab member can use their stuff again. The share remains in working condition after starting docker back up again.



So I can clearly fix this issue by restarting docker if(when) it happens again, but I'd like to know



  1. what is causing this in the first place? or, how can I find out?

  2. is there a way to prevent this from happening again, or am I stuck just fixing it every time it breaks?






docker nfs automount autofs nvidia






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 21 '17 at 21:50









krivardkrivard

1336




1336












  • Was any explanation found for this behavior? I'm seeing the same things: I installed nvidia-docker on an Ubuntu 16.04 machine and restarting docker fixes the "Too many levels of symbolic links" problem.

    – Randall Radmer
    Feb 26 at 23:15

















  • Was any explanation found for this behavior? I'm seeing the same things: I installed nvidia-docker on an Ubuntu 16.04 machine and restarting docker fixes the "Too many levels of symbolic links" problem.

    – Randall Radmer
    Feb 26 at 23:15
















Was any explanation found for this behavior? I'm seeing the same things: I installed nvidia-docker on an Ubuntu 16.04 machine and restarting docker fixes the "Too many levels of symbolic links" problem.

– Randall Radmer
Feb 26 at 23:15





Was any explanation found for this behavior? I'm seeing the same things: I installed nvidia-docker on an Ubuntu 16.04 machine and restarting docker fixes the "Too many levels of symbolic links" problem.

– Randall Radmer
Feb 26 at 23:15










1 Answer
1






active

oldest

votes


















0














How have you defined mount options for autofs on /etc/auto.master, are you doing direct or indirect automount?



Also did you autofs entirely within a Docker container with the --privileged option added to the docker run command? Using this approach you should be able to perform NFS mounts without any issues.



Please note that bind mounting an autofs mount into a container with an independent autofs daemon running can't be done because it may conflict with the autofs daemon running in the originating namespace.



For indirect mounts, running autofs in the root namespace provides automounting for Docker containers by binding the autofs top level mounts into containers with the Docker volume option should function mostly as expected.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f889273%2ftoo-many-levels-of-symbolic-links-in-nfs-via-automount-resolved-by-restarting%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    How have you defined mount options for autofs on /etc/auto.master, are you doing direct or indirect automount?



    Also did you autofs entirely within a Docker container with the --privileged option added to the docker run command? Using this approach you should be able to perform NFS mounts without any issues.



    Please note that bind mounting an autofs mount into a container with an independent autofs daemon running can't be done because it may conflict with the autofs daemon running in the originating namespace.



    For indirect mounts, running autofs in the root namespace provides automounting for Docker containers by binding the autofs top level mounts into containers with the Docker volume option should function mostly as expected.






    share|improve this answer



























      0














      How have you defined mount options for autofs on /etc/auto.master, are you doing direct or indirect automount?



      Also did you autofs entirely within a Docker container with the --privileged option added to the docker run command? Using this approach you should be able to perform NFS mounts without any issues.



      Please note that bind mounting an autofs mount into a container with an independent autofs daemon running can't be done because it may conflict with the autofs daemon running in the originating namespace.



      For indirect mounts, running autofs in the root namespace provides automounting for Docker containers by binding the autofs top level mounts into containers with the Docker volume option should function mostly as expected.






      share|improve this answer

























        0












        0








        0







        How have you defined mount options for autofs on /etc/auto.master, are you doing direct or indirect automount?



        Also did you autofs entirely within a Docker container with the --privileged option added to the docker run command? Using this approach you should be able to perform NFS mounts without any issues.



        Please note that bind mounting an autofs mount into a container with an independent autofs daemon running can't be done because it may conflict with the autofs daemon running in the originating namespace.



        For indirect mounts, running autofs in the root namespace provides automounting for Docker containers by binding the autofs top level mounts into containers with the Docker volume option should function mostly as expected.






        share|improve this answer













        How have you defined mount options for autofs on /etc/auto.master, are you doing direct or indirect automount?



        Also did you autofs entirely within a Docker container with the --privileged option added to the docker run command? Using this approach you should be able to perform NFS mounts without any issues.



        Please note that bind mounting an autofs mount into a container with an independent autofs daemon running can't be done because it may conflict with the autofs daemon running in the originating namespace.



        For indirect mounts, running autofs in the root namespace provides automounting for Docker containers by binding the autofs top level mounts into containers with the Docker volume option should function mostly as expected.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 30 '17 at 17:11









        Mika WolfMika Wolf

        1413




        1413



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f889273%2ftoo-many-levels-of-symbolic-links-in-nfs-via-automount-resolved-by-restarting%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020