I couldn't find spooldir

I’ve been receiving this issue on FreePBX when running module updates, as the thing suggests I reported it as a bug. However they told me it wasn’t a bug and said to use the community forums. So here I am

Please wait while module actions are performed

Installing framework

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.php299

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:1 [:arrow_forward:]

POST Data empty

Files empty

Cookies

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

Session

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

Server/Request Data

UNIQUE_ID “XBWNSQiq6rUwMvRtdW0asQAAAAQ”
SERVER_ADMIN [email protected]
SCRIPT_FILENAME “/var/www/html/admin/config.php”
REMOTE_PORT “56045”
GATEWAY_INTERFACE “CGI/1.1”
SERVER_PROTOCOL “HTTP/1.1”
REQUEST_METHOD “POST”
QUERY_STRING “display=modules&action=process&quietmode=1&online=1&modules%5Bframework%5D%5Baction%5D=install&modules%5Bframework%5D%5Btrack%5D=stable”
REQUEST_URI “/admin/config.php?display=modules&action=process&quietmode=1&online=1&modules%5Bframework%5D%5Baction%5D=install&modules%5Bframework%5D%5Btrack%5D=stable”
SCRIPT_NAME “/admin/config.php”
PHP_SELF “/admin/config.php”
REQUEST_TIME_FLOAT 1544916297.039
REQUEST_TIME 1544916297

Environment Variables empty

Registered Handlers

  1. Whoops\Handler\PrettyPageHandler

I also just got this email, now mind you I don’t think that the system has been compromised and modified

I’m guessing this has to do with the failed module updates

SECURITY NOTICE:

You have 10 tampered files:

Module: “FreePBX Framework”, File:

“/var/www/html/admin/libraries/BMO/Logger.class.php altered”

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/composer/autoload_classmap.p

hp

altered"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/composer/autoload_static.php

altered"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/monolog/monolog/src/Monolog/

Handler/InsightOpsHandler.php

missing"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/monolog/monolog/src/Monolog/

Processor/ProcessorInterface.php

missing"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/monolog/monolog/src/Monolog/

ResettableInterface.php

missing"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/monolog/monolog/src/Monolog/

SignalHandler.php

missing"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/monolog/monolog/src/Monolog/

Utils.php

missing"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/monolog/monolog/tests/Monolo

g/Handler/InsightOpsHandlerTest.php

missing"

Module: “FreePBX Framework”, File:

"/var/www/html/admin/libraries/Composer/vendor/monolog/monolog/tests/Monolo

g/SignalHandlerTest.php

missing"

So after screwing around with the packages and using fwconsole to reinstall some and removing the backup module which was causing issues it seems I’ve solved the problem

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