<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2166/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=18415797#comment-18415797">Asterisk Packages</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://wiki.asterisk.org/wiki/display/~pabelanger">Paul Belanger</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>Have you made made any changes to the init.d script?  Maybe /etc/defaults/asterisk?  If you get on #asterisk on IRC freenode I can help you more.   From the looks of it, something about your setup is wrong.</p>

<p>As for the modules directory missing, this is because you are in the middle of an update and running different versions of asterisk .deb packages.</p>
    </div>

                <div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
        <strong>In reply to a comment by <a href="/wiki/display/~roxy"
                          class="url fn confluence-userlink" data-username="roxy"
                   >herman</a>:</strong><br/>
        <p>restart asterisk not really possible: </p>

<p>sudo /etc/init.d/asterisk restart<br/>
Stopping Asterisk PBX: asteriskstart-stop-daemon: unrecognized option '--retry=0/2/TERM/2/KILL/5'<br/>
Try `start-stop-daemon --help' for more information.</p>

<p>(but see bottom) for startup response.</p>



<p>after again purge and reinstall again now astdb seems to be installed, but still none of the asterisk  modules - where are they normally installed ? apparently not in /usr/lib/asterisk/modules - as it does not exist </p>

<p>herman@ubuntu-1004:/usr/lib$ ls -la /var/lib/asterisk/astdb<br/>
<del>rw-r</del><del>r</del>- 1 root root 0 2011-08-26 15:41 /var/lib/asterisk/astdb</p>

<p>so that's ok now<br/>
but then themissing modules: </p>

<p>herman@ubuntu-1004:/usr/lib$ ls -la /usr/lib/asterisk/modules<br/>
ls: cannot access /usr/lib/asterisk/modules: No such file or directory</p>



<p>starting asterisk after installing my original config in /etc/asterisk  gives the following result:</p>


<p><span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=7494" class="createlink">7494</a>: ccss.c:4108 initialize_cc_max_requests: Could not find valid ccss.conf file. Using cc_max_requests default<br/>
 Asterisk Dynamic Loader Starting:<br/>
  == Parsing '/etc/asterisk/modules.conf':   == Found<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=7494" class="createlink">7494</a>: loader.c:1093 load_modules: Unable to open modules directory '/usr/lib/asterisk/modules'.<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> NOTICE<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=7494" class="createlink">7494</a>: loader.c:1124 load_modules: 1 modules will be loaded.<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=7494" class="createlink">7494</a>: loader.c:393 load_dynamic_module: Error loading module 'res_musiconhold.so': /usr/lib/asterisk/modules/res_musiconhold.so: cannot open shared object file: No such file or directory<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=7494" class="createlink">7494</a>: loader.c:393 load_dynamic_module: Error loading module 'res_musiconhold.so': /usr/lib/asterisk/modules/res_musiconhold.so: cannot open shared object file: No such file or directory<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=7494" class="createlink">7494</a>: loader.c:845 load_resource: Module 'res_musiconhold.so' could not be loaded.<br/>
  == Parsing '/etc/asterisk/cli_permissions.conf':   == Found<br/>
Asterisk Ready.<br/>
  == Parsing '/etc/asterisk/cli.conf':   == Found</p>

        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
      <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=18415797#comment-18415797">View Online</a>
              |
       <a id="reply-18415797" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?replyToComment=18415797#comment-18415797">Reply To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>