I couldn’t find spooldir

Continually having this issue, I thought it had resolved when I was last able to get the module updates to go through but now the problem is back…

I spoke too soon,

now that there’s more module updates the problem is back…

Errors with selection:

  • Asterisk Info cannot be upgraded:
    • The Module Named “Asterisk REST Interface Users” is required, but yours is disabled because it needs to be upgraded. Please upgrade Asterisk REST Interface Users first, and then try again.
  • Please try again after the dependencies have been installed.

You may confirm the remaining selection and then try the again for the listed issues once the required dependencies have been met:

Upgrades, installs, enables and disables:

  • Call Recording 15.0.7.2 will be upgraded to online version 15.0.7.3
  • CDR Reports 15.0.3 will be upgraded to online version 15.0.5
  • Call Event Logging 15.0.5 will be upgraded to online version 15.0.7
  • FreePBX Framework 15.0.1.33 will be upgraded to online version 15.0.1.42
  • IVR 15.0.9 will be upgraded to online version 15.0.10
  • Misc Destinations 15.0.2.1 will be upgraded to online version 15.0.2.2
  • Queue Priorities 15.0.1 will be upgraded to online version 15.0.2
  • System Admin 15.0.5.4 will be upgraded to online version 15.0.5.6
  • User Management 15.0.6.1 will be upgraded to online version 15.0.6.2
  • Voicemail 15.0.12.2 will be upgraded to online version 15.0.12.3

Status

Close

Please wait while module actions are performed

Downloading and Installing callrecording

Downloading callrecording 55288 of 55436 (100%)

Installing callrecording

Untarring…Done

Exception

I couldn’t find spooldir

COPY

Click Here Report this to the PBX bug tracker

Stack frames (9)

8

Exception

/var/www/html/admin/libraries/BMO/Installer.class.php48

7

FreePBX\Installer __construct

/var/www/html/admin/libraries/BMO/Self_Helper.class.php124

6

FreePBX\Self_Helper autoLoad

/var/www/html/admin/libraries/BMO/Self_Helper.class.php37

5

FreePBX\Self_Helper __get

/var/www/html/admin/libraries/BMO/FreePBX.class.php105

4

FreePBX __callStatic

/var/www/html/admin/libraries/BMO/GPG.class.php203

3

FreePBX Installer

/var/www/html/admin/libraries/BMO/GPG.class.php203

2

FreePBX\GPG verifyModule

/var/www/html/admin/libraries/modulefunctions.class.php1923

1

module_functions install

/var/www/html/admin/page.modules.php285

0

include

/var/www/html/admin/config.php451

/var/www/html/admin/libraries/BMO/Installer.class.php

  1. // Asterisk Directories
  2. $this->agidir = \FreePBX::Config()->get(‘ASTAGIDIR’);
  3. $this->varlibdir = \FreePBX::Config()->get(‘ASTVARLIBDIR’);
  4. $moh = \FreePBX::Config()->get(‘MOHDIR’);
  5. $this->mohdir = $this->varlibdir . “/” . (!empty($moh) ? $moh : “moh”);
  6. $this->etcdir = \FreePBX::Config()->get(‘ASTETCDIR’);
  7. $this->logdir = \FreePBX::Config()->get(‘ASTLOGDIR’);
  8. $this->moddir = \FreePBX::Config()->get(‘ASTMODDIR’);
  9. $this->rundir = \FreePBX::Config()->get(‘ASTRUNDIR’);
  10. $this->spooldir = \FreePBX::Config()->get(‘ASTSPOOLDIR’);
  • $this->webroot = \FreePBX::Config()->get(‘AMPWEBROOT’);
  1. $this->sbindir = \FreePBX::Config()->get(‘AMPSBIN’);
  2. $this->bindir = \FreePBX::Config()->get(‘AMPBIN’);
  • $vars = array(“agidir”, “varlibdir”, “mohdir”, “etcdir”, “logdir”, “moddir”, “rundir”, “spooldir”, “webroot”, “sbindir”, “bindir”);
  1. foreach ($vars as $v) {
  2. if (empty($this->$v)) {
  3. throw new \Exception(“I couldn’t find $v”);
  4. }
  5. if (substr($this->$v, -1) != “/”) { // If it doesn’t end with a slash
  6. $this->$v = $this->$v."/"; // Add it.
  7. }
  8. }
  9. // Assumptions…
  10. $this->soundsdir = $this->varlibdir.“sounds/”;
  11. }
  • public function getDestination($modulename = false, $src = false, $validation = false) {
  1. if (!$modulename || !$src) {
  2. throw new \Exception(“No modulename or source provided”);
  3. }
  • if (method_exists($this, $modulename)) {
  1. return $this->$modulename($src, $validation);
  2. }
  • return $this->defaultModule($modulename, $src, $validation);
  1. }

Arguments

  1. “I couldn’t find spooldir”

Environment & details:

GET Data

display “modules”
action “process”
quietmode “1”
online “1”
modules array:10 [:arrow_forward:]

POST Data empty

Files empty

Cookies

searchHide “1”
lang “en_US”
_ga “GA1.2.182018415.1538796603”
_gid “GA1.2.232534430.1545419631”
PHPSESSID “gqjeamf049qie405agf4n7fed7”

Session

langdirection “ltr”
module_name “modules”
module_page “modules”
AMP_user ampuser {}

Server/Request Data

UNIQUE_ID “XB07phM6YOaL2BQIae2nygAAAAo”
SCRIPT_URL “/admin/config.php”
SCRIPT_URI http://xx/admin/config.php
SSLSETUP “true”
HTACCESS “on”
HTTP_HOST “xx”
HTTP_ORIGIN http://xx
HTTP_COOKIE “searchHide=1; lang=en_US; _ga=GA1.2.182018415.1538796603; _gid=GA1.2.232534430.1545419631; PHPSESSID=gqjeamf049qie405agf4n7fed7”
CONTENT_LENGTH “0”
HTTP_CONNECTION “keep-alive”
HTTP_ACCEPT /
HTTP_USER_AGENT “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15”
HTTP_ACCEPT_LANGUAGE “en-us”
HTTP_REFERER http://xx/admin/config.php?display=modules
HTTP_ACCEPT_ENCODING “gzip, deflate”
PATH “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin”
SERVER_SIGNATURE “”
SERVER_SOFTWARE “Apache/2.4.6 (Sangoma) OpenSSL/1.0.2k-fips PHP/5.6.36”
SERVER_NAME “”
SERVER_ADDR “”
SERVER_PORT “80”
REMOTE_ADDR “”
DOCUMENT_ROOT “/var/www/html”
REQUEST_SCHEME “http”
CONTEXT_PREFIX “”
CONTEXT_DOCUMENT_ROOT “/var/www/html”
SERVER_ADMIN [email protected]
SCRIPT_FILENAME “/var/www/html/admin/config.php”
REMOTE_PORT “49498”
GATEWAY_INTERFACE “CGI/1.1”
SERVER_PROTOCOL “HTTP/1.1”
REQUEST_METHOD “POST”
QUERY_STRING “display=modules&action=process&quietmode=1&online=1&modules%5Bcallrecording%5D%5Baction%5D=upgrade&modules%5Bcallrecording%5D%5Btrack%5D=stable&modules%5Bcdr%5D :arrow_forward:
REQUEST_URI “/admin/config.php?display=modules&action=process&quietmode=1&online=1&modules%5Bcallrecording%5D%5Baction%5D=upgrade&modules%5Bcallrecording%5D%5Btrack%5D=stabl :arrow_forward:
SCRIPT_NAME “/admin/config.php”
PHP_SELF “/admin/config.php”
REQUEST_TIME_FLOAT 1545419686.507
REQUEST_TIME 1545419686

Environment Variables empty

Registered Handlers

  1. Whoops\Handler\PrettyPageHandler
fwconsole ma upgrade framework
fwconsole ma upgrade core
fwconsole ma upgradeall

That’s what I had to do last time and then this problem came back. Any ideas on why this happened again?

Because the bug was not fixed. Now it is fixed. So run the commands above and all will be well :slight_smile:

You’re also on an Alpha release of the new version. At best it’s moved to Beta. Bugs being in these version are more common and should be expected. So I’m really hoping this isn’t a production machine.

1 Like

I was told when I opened a bug tracker that this wasn’t a bug and was a support issue. So with any luck it was a bug issue and running this command will fix it.

Is this a production or test machine?

It’s a test machine

Whew. Good. So expect stuff like this to happen while v15 is Alpha.

Well I thought it wasn’t a bug because at the time I could not replicate with what you provided. This does happen occasionally in software.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.