Error #4000 message when trying to enable Netatalk

    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Error #4000 message when trying to enable Netatalk

      I successfully installed the Netatalk pluggin with the help of ryecoaaron, thanks to him.
      I had lot of errors when trying installing it (Netatalk installation went wrong. Now getting errors when trying to use apt-get purge)

      Now, when I try to enable it I got an error message in the Gui
      Error #4000:
      exception 'OMVException' with message 'Failed to execute command 'export LANG=C; update-rc.d 'netatalk' disable 2>&1': update-rc.d: error: no runlevel symlinks to modify, aborting!
      update-rc.d: using dependency based boot sequencing' in /usr/share/php/openmediavault/initscript.inc:90
      Stack trace:
      #0 /usr/share/php/openmediavault/initscript.inc(56): OMVSysVInitScript->update(true)
      #1 /usr/share/openmediavault/engined/module/afp.inc(74): OMVSysVInitScript->exec()
      #2 /usr/share/openmediavault/engined/rpc/config.inc(164): OMVModuleAFP->stopService()
      #3 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      #4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #5 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      #6 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      #7 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      #8 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #9 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      #10 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      #11 {main}

      Any help from someone?

      Thanks.

      Sined
    • I tried it in a VM and it gave me the same error. I enabled home directories and it started. I disabled home directories and it started. Can you try that?
      omv 4.1.8.2 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.8
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please read this before posting a question.
      Please don't PM for support... Too many PMs!
    • Here it is

      Shell-Script

      1. #!/bin/sh
      2. ### BEGIN INIT INFO
      3. # Provides: netatalk
      4. # Required-Start: $remote_fs $syslog
      5. # Should-Start: avahi-daemon
      6. # Required-Stop: $remote_fs $syslog
      7. # Default-Start: 2 3 4 5
      8. # Default-Stop: 1
      9. ### END INIT INFO
      10. #
      11. # netatalk Netatalk 2.2.2 initscript
      12. # Author: Thomas Kaiser <[email=Thomas.Kaiser@phg-online.de]Thomas.Kaiser@phg-online.de[/email]>
      13. set -e
      14. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
      15. DESC="Netatalk"
      16. NAME=netatalk
      17. SCRIPTNAME=/etc/init.d/$NAME
      18. # Guard to prevent execution if netatalk was removed.
      19. test -x /usr/sbin/afpd || exit 0
      20. # Set defaults. Please change these options in /etc/default/netatalk
      21. ATALK_NAME=`/bin/hostname --short`
      22. ATALK_UNIX_CHARSET='LOCALE'
      23. ATALK_MAC_CHARSET='MAC_ROMAN'
      24. CNID_METAD_RUN=yes
      25. AFPD_RUN=yes
      26. AFPD_MAX_CLIENTS=50
      27. AFPD_UAMLIST="-U uams_dhx2.so,uams_clrtxt.so"
      28. AFPD_GUEST=nobody
      29. CNID_CONFIG="-l log_note"
      30. ATALKD_RUN=no
      31. PAPD_RUN=no
      32. TIMELORD_RUN=no
      33. #A2BOOT_RUN=no
      34. ATALK_ZONE=
      35. ATALK_BGROUND=no
      36. # old /etc/default/netatalk expected hostname in $HOSTNAME by default
      37. HOSTNAME=`/bin/hostname`
      38. # Read in netatalk configuration.
      39. if [ -f /etc/default/netatalk ]; then
      40. . /etc/default/netatalk
      41. fi
      42. # Start Netatalk servers.
      43. atalk_startup() {
      44. if [ x"$ATALKD_RUN" = x"yes" ]; then
      45. # Try to load the AppleTalk kernel module if it was intended.
      46. if grep -q '^appletalk$' /etc/modules; then
      47. /sbin/modprobe appletalk || echo "[could not load appletalk module]"
      48. fi
      49. # Start atalkd server.
      50. /usr/sbin/atalkd
      51. # register workstation
      52. /usr/bin/nbprgstr -p 4 "$ATALK_NAME:Workstation$ATALK_ZONE"
      53. /usr/bin/nbprgstr -p 4 "$ATALK_NAME:netatalk$ATALK_ZONE"
      54. echo -n " atalkd"
      55. fi
      56. # prepare startup of file services
      57. if [ "x$CNID_METAD_RUN" = "xyes" -a -x /usr/sbin/cnid_metad ] ; then
      58. echo -n " cnid_metad"
      59. /usr/sbin/cnid_metad $CNID_CONFIG
      60. fi
      61. if [ x"$AFPD_RUN" = x"yes" ]; then
      62. /usr/sbin/afpd $AFPD_UAMLIST -g $AFPD_GUEST -c $AFPD_MAX_CLIENTS \
      63. -n "$ATALK_NAME$ATALK_ZONE"
      64. echo -n " afpd"
      65. fi
      66. if [ "x$ATALKD_RUN" = "xyes" ]; then
      67. if [ "x$PAPD_RUN" = "xyes" ]; then
      68. /usr/sbin/papd
      69. echo -n " papd"
      70. fi
      71. if [ x"$TIMELORD_RUN" = x"yes" ]; then
      72. /usr/sbin/timelord
      73. echo -n " timelord"
      74. fi
      75. fi
      76. }
      77. case "$1" in
      78. start)
      79. if [ "x$ATALK_BGROUND" = "xyes" -a "x$ATALKD_RUN" = "xyes" ]; then
      80. echo "Starting Netatalk services in the background."
      81. atalk_startup >/dev/null &
      82. else
      83. echo -n "Starting Netatalk services (this will take a while): "
      84. atalk_startup
      85. echo "."
      86. fi
      87. ;;
      88. stop)
      89. echo -n "Stopping Netatalk Daemons:"
      90. echo -n " afpd"
      91. start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/afpd
      92. echo -n " cnid_metad"
      93. start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/cnid_metad
      94. if test -x /usr/sbin/papd; then
      95. echo -n " papd"
      96. start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/papd
      97. fi
      98. if test -x /usr/sbin/timelord; then
      99. echo -n " timelord"
      100. start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/timelord
      101. fi
      102. if test -x /usr/sbin/atalkd; then
      103. echo -n " atalkd"
      104. start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/atalkd
      105. fi
      106. echo "."
      107. ;;
      108. restart)
      109. $0 force-reload
      110. ;;
      111. force-reload)
      112. echo -n "Restarting Netatalk Daemons (this will take a while)"
      113. $0 stop
      114. echo -n "."
      115. sleep 2
      116. echo -n "."
      117. if $0 start; then
      118. echo "done."
      119. fi
      120. ;;
      121. *)
      122. echo "Usage: $0 {start|stop|restart|force-reload}" >&2
      123. exit 1
      124. ;;
      125. esac
      Display All

      The post was edited 1 time, last by WastlJ ().