Jump to content


Photo

Autofs does not start after reboot box


  • Please log in to reply
48 replies to this topic

#1 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 21 April 2014 - 14:57

As I saw, after reboot box I must always run "/etc/init.d/autofs start" manualy, because autofs does not start automaticaly. Tried on more boxes.

Why ?


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #2 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 21 April 2014 - 15:38

Can you check if you have S??-autofs files in a.o. /etc/rc2.d? The package seems to inherit update-rc.d in the recipe, but it may not install the necessary symlinks? Or it is called at the wrong phase during booting?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #3 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 21 April 2014 - 16:11

yes, there in /etc/rc2.d/ exists S20autofs link to /etc/init.d/autofs


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #4 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 21 April 2014 - 16:14

Ah okay, then that part is no problem. Maybe it's something with a name lookup being done before the network is up etc. What shows ls /etc/rc2.d? Over here I have S01networking, so networking should be ready by the time S20autofs is started. Weird.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #5 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 21 April 2014 - 16:33

S01networking     S15mountnfs.sh    S20syslog         S99stop-bootlogd
S02dbus-1         S19nfscommon      S21avahi-daemon
S10dropbear       S20autofs         S50softcam
S12rpcbind        S20inetd.busybox  S99rmnologin.sh


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #6 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 21 April 2014 - 17:19

Yes exactly, that's correct imho.
 
What you might try (what I do in such situations) is add logging to the script.
 
If you have something like this in the script:

start)
    startstopdaemon bla
    ;;

replace it with

start)
    (
        set -x
        startstopdaemon bla
    ) 2>&1 > /tmp/logging
    ;;
 

I hope this shows something.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #7 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 21 April 2014 - 19:15

I should repair my title from "Autofs does not start after reboot box" to "Autofs does not start after power-on" box.

All shared disks are missing. But autofs4 module is loaded, when I put into autofs script line with: lsmod >> /tmp/autofs.log.

 

After next reboot it works well, as I known now. Deep standby do not corrupts it too, but when was used power off/on before deep standy, then after wake-up from deep standby it is not initialized too.

Strange...

Same on dm800se, xp1000, same on vu ultimo.Same on friend's vu solo2.


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #8 Xana

  • Senior Member
  • 56 posts

0
Neutral

Posted 21 April 2014 - 20:20

I should repair my title from "Autofs does not start after reboot box" to "Autofs does not start after power-on" box.

All shared disks are missing. But autofs4 module is loaded, when I put into autofs script line with: lsmod >> /tmp/autofs.log.

 

After next reboot it works well, as I known now. Deep standby do not corrupts it too, but when was used power off/on before deep standy, then after wake-up from deep standby it is not initialized too.

Strange...

Same on dm800se, xp1000, same on vu ultimo.Same on friend's vu solo2.

 

I have the same problem like you have, here is on the Octagon SF8 (XP1000).

 

How can we fix it ?

 

Thank's



Re: Autofs does not start after reboot box #9 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 21 April 2014 - 21:31

I did not what is wrong, but helps, when you change there in /etc/init.d/autofs script part:

 

 

start)
     start

to

start)
    restart

Note: run this script as "forcestart" is not 100% sucesfull too.


Edited by ims, 21 April 2014 - 21:52.

Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #10 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 April 2014 - 13:53

What happens if you put a sleep 120 before starting of the daemon? Maybe someting isn't ready initialising at this point. It's just a wild guess, but if it works then, it must be something like that. Also may the dmesg output from directly after booting will give some info?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #11 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 22 April 2014 - 15:59

tried add 120s before start - same.

I must:

start)
    start
    restart
    ;;
 

it seems, as on first run is not some initialized and it not works => next "restart" (stop/start) and then works. Same, when is box rebooted reboot.


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #12 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 April 2014 - 16:49

Ugly...

 

Does dmesg say something useful (beside the usual boot message and driver debug messages)? I don't use autofs, so I can't test myself.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #13 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 22 April 2014 - 17:03

no, nothing saw in dmeg, logs...


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #14 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 22 April 2014 - 17:24

Ugly...

 

Does dmesg say something useful (beside the usual boot message and driver debug messages)? I don't use autofs, so I can't test myself.

Ugly ... but works.

 

As I read on inet, it is problem for more users...  https://bugs.launchp...189/comments/39


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #15 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 April 2014 - 17:31

But I still don't understand, because autofs is started after "network". The startup sequence is not comparable to Ubuntu. But maybe autofs cannot handle interface ip address as well and maybe dhcp finishes after autofs. Can you try it with a static ip address? If that's the case, we may need to start autofs from a dhcp client hook script, I am not sure if udhcpd offers such hooks though.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #16 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 22 April 2014 - 17:42

I am using all IP's as static. Strange, that this problem is after cold start only.


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #17 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 April 2014 - 17:45

Do you mean static dhcp lease or static in enigma? I am using static dhcp leases.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #18 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 22 April 2014 - 18:31

i am not using any dhcp on my net.


Kdo nic nedělá, nic nezkazí!

Re: Autofs does not start after reboot box #19 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 April 2014 - 18:36

Okay clear. So interface is up, ip doesn't change... This really looks like autofs needs to be started twice to get running! The next thing I would do myself is replace part of the init script that starts the autofs daemon with a script that calls strace (-f!) to start the daemon and redirect the output to a file. Do you think you can do that?

 

What also might help is install busybox-syslog, configure it for log buffer and see what's logged using logread.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Autofs does not start after reboot box #20 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 22 April 2014 - 20:33

It generates file more than 3MB and box does not finish boot sucesfully. In this 3MB is difficult some find. And it is question, if in this "non standard" booting will autofs4 failed or will start well.


Kdo nic nedělá, nic nezkazí!


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users