File not written to hard drive!

I’m getting this message when I select Rebuild Configs for All/Selected phones in Endpoint configuration manager. I can manually write cfg files to the /tftpboot directory & the phones load them fine (Yealink T22).
This is a FreePBX distro that started life as 2.8 & was upgraded to 2.9.0.7
The Endpoint Configuration worked before the upgrade.
I don’t see any errors except these in the httpd log;
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.jstree.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.tools.min.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._ajax_req.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.coda-slider-2.0.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.cookie.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.easing.1.3.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.jstree.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:06 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.tools.min.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._ajax_req.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.coda-slider-2.0.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.cookie.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.easing.1.3.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.jstree.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.tools.min.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._ajax_req.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.coda-slider-2.0.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.cookie.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.easing.1.3.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.jstree.js, referer: http://192.168.11.53/admin/config.php?type=tool&display=epm_devices
[Sat Sep 17 06:52:13 2011] [error] [client 192.168.11.111] File does not exist: /var/www/html/admin/assets/endpointman/js/._jquery.tools.min.js, referer: http://192.168.11.
Any ideas?
Thanks in advance

Fixed it. It was a permissions problem in the tftpboot folder.

Greetings -

I am experiencing a similar issue. Upon checking my permissions on the folder (I’m using WinSCP) I see that it has already been assigned all rights.

By any chance can you share your experience (if different)?

Thanks!

All,

Was having this problem initially, so ran:

chown root:asterisk /tfptboot -R && chmod 754 /tfptboot -R

When I went to save my configs from the device list I then got another error telling me to run:

chown -hR root:asterisk /tftpboot/ && chmod g+w /tftpboot/

So I did, but now back to original problem. Code dump I get with the error is:

File not written to hard drive! Function: [parse_configs]

Backtrace
#0  include() called at [/var/www/html/admin/modules/endpointman/includes/rain.tpl.class.inc:186]
#1  RainTPL->draw(message_box) called at [/var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1336955350.php:12]
#2  include(/var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1336955350.php) called at [/var/www/html/admin/modules/endpointman/includes/rain.tpl.class.inc:186]
#3  RainTPL->draw(devices_manager) called at [/var/www/html/admin/modules/endpointman/includes/devices_manager.inc:521]
#4  include(/var/www/html/admin/modules/endpointman/includes/devices_manager.inc) called at [/var/www/html/admin/modules/endpointman/page.epm_devices.php:12]
#5  include(/var/www/html/admin/modules/endpointman/page.epm_devices.php) called at [/var/www/html/admin/config.php:317]

Extended Backtrace
array(6) {
  [0]=>
  array(3) {
    ["file"]=>
    string(67) "/var/www/html/admin/modules/endpointman/includes/rain.tpl.class.inc"
    ["line"]=>
    int(186)
    ["function"]=>
    string(7) "include"
  }
  [1]=>
  array(7) {
    ["file"]=>
    string(97) "/var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1336955350.php"
    ["line"]=>
    int(12)
    ["function"]=>
    string(4) "draw"
    ["class"]=>
    string(7) "RainTPL"
    ["object"]=>
    object(RainTPL)#13 (1) {
      ["variables"]=>
      array(22) {
        ["amp_ver"]=>
        string(2) "10"
        ["list"]=>
        array(20) {
          [0]=>
          array(11) {
            ["id"]=>
            string(1) "1"
            ["mac"]=>
            string(12) "my-mac"
            ["model"]=>
            string(7) "GXP2110"
            ["enabled"]=>
            string(1) "1"
            ["name"]=>
            string(11) "Grandstream"
            ["global_custom_cfg_data"]=>
            string(0) ""
            ["template_id"]=>
            string(1) "1"
            ["template_name"]=>
            string(11) "GXP2110-RTS"
            ["master_id"]=>
            int(0)
            ["line"]=>
            array(1) {
              [0]=>
              array(5) {
                ["ext"]=>
                string(3) "799"
                ["line"]=>
                string(1) "1"
                ["description"]=>
                string(9) "Tech Dept"
                ["luid"]=>
                string(1) "2"
                ["master_id"]=>
                int(0)
              }
            }
            ["status"]=>
            array(3) {
              ["status"]=>
              bool(false)
              ["ip"]=>
              bool(false)
              ["port"]=>
              string(0) ""
            }
          }
........
          [6]=>
          array(11) {
            ["id"]=>
            string(2) "24"
            ["mac"]=>
            string(12) "my-mac6"
            ["model"]=>
            string(7) "GXP2120"
            ["enabled"]=>
            string(1) "1"
            ["name"]=>
            string(11) "Grandstream"
            ["global_custom_cfg_data"]=>
            string(2024) "a:2:{s:4:"data";a:60:{s:10:"admin_pass";s:5:"admin";s:8:"dialplan";s:21:"{ x+ | *x+ | *xx*x+ }";s:17:"firmware_srv_path";s:18:"10.10.10.4/GXP2120";s:15:"xml_server_path";s:0:"";s:23:"idle_screen_server_path";s:0:"";s:20:"enable_call_features";s:1:"1";s:11:"key_mode_01";s:1:"0";s:11:"key_name_01";s:12:"Speed Dial 1";s:13:"speed_dial_01";s:3:"*01";s:11:"key_mode_02";s:1:"0";s:11:"key_name_02";s:12:"Speed Dial 2";s:13:"speed_dial_02";s:3:"*02";s:11:"key_mode_03";s:1:"0";s:11:"key_name_03";s:12:"Speed Dial 3";s:13:"speed_dial_03";s:3:"*03";s:11:"key_mode_04";s:1:"0";s:11:"key_name_04";s:12:"Speed Dial 4";s:13:"speed_dial_04";s:3:"*04";s:11:"key_mode_05";s:1:"0";s:11:"key_name_05";s:12:"Speed Dial 5";s:13:"speed_dial_05";s:3:"*05";s:11:"key_mode_06";s:1:"0";s:11:"key_name_06";s:12:"Speed Dial 6";s:13:"speed_dial_06";s:3:"*06";s:11:"key_mode_07";s:1:"0";s:11:"key_name_07";s:12:"Speed Dial 7";s:13:"speed_dial_07";s:3:"*07";s:11:"key_mode_08";s:1:"0";s:11:"key_name_08";s:12:"Speed Dial 8";s:13:"speed_dial_08";s:3:"*08";s:11:"key_mode_09";s:1:"0";s:11:"key_name_09";s:12:"Speed Dial 9";s:13:"speed_dial_09";s:3:"*09";s:11:"key_mode_10";s:1:"0";s:11:"key_name_10";s:13:"Speed Dial 10";s:13:"speed_dial_10";s:3:"*10";s:11:"key_mode_11";s:1:"0";s:11:"key_name_11";s:13:"Speed Dial 11";s:13:"speed_dial_11";s:3:"*11";s:11:"key_mode_12";s:1:"0";s:11:"key_name_12";s:13:"Speed Dial 12";s:13:"speed_dial_12";s:3:"*12";s:11:"key_mode_13";s:1:"0";s:11:"key_name_13";s:13:"Speed Dial 13";s:13:"speed_dial_13";s:3:"*13";s:11:"key_mode_14";s:1:"0";s:11:"key_name_14";s:13:"Speed Dial 14";s:13:"speed_dial_14";s:3:"*14";s:11:"key_mode_15";s:1:"0";s:11:"key_name_15";s:13:"Speed Dial 15";s:13:"speed_dial_15";s:3:"*15";s:11:"key_mode_16";s:1:"0";s:11:"key_name_16";s:13:"Speed Dial 16";s:13:"speed_dial_16";s:3:"*16";s:11:"key_mode_17";s:1:"0";s:11:"key_name_17";s:13:"Speed Dial 17";s:13:"speed_dial_17";s:3:"*17";s:11:"key_mode_18";s:1:"0";s:11:"key_name_18";s:13:"Speed Dial 18";s:13:"speed_dial_18";s:3:"*18";}s:3:"ari";a:0:{}}"
            ["template_id"]=>
            string(1) "1"
            ["template_name"]=>
            string(11) "GXP2110-RTS"
            ["master_id"]=>
            int(6)
            ["line"]=>
            array(1) {
              [0]=>
              array(5) {
                ["ext"]=>
                string(3) "779"
                ["line"]=>
                string(1) "1"
                ["description"]=>
                string(14) "Display Name"
                ["luid"]=>
                string(2) "26"
                ["master_id"]=>
                int(6)
              }
            }
            ["status"]=>
            array(3) {
              ["status"]=>
              bool(false)
              ["ip"]=>
              bool(false)
              ["port"]=>
              string(0) ""
            }
          }
........................
        ["error"]=>
        string(0) ""
        ["netmask"]=>
        string(13) "10.10.10.0/24"
        ["web_var"]=>
        string(10) "?type=tool"
        ["models_ava"]=>
        array(2) {
          [1]=>
          array(3) {
            ["value"]=>
            string(3) "242"
            ["text"]=>
            string(7) "GXP2110"
            ["selected"]=>
            int(0)
          }
          [2]=>
          array(3) {
            ["value"]=>
            string(3) "243"
            ["text"]=>
            string(7) "GXP2120"
            ["selected"]=>
            int(0)
          }
        }
        ["product_list"]=>
        array(2) {
          [0]=>
          array(2) {
            ["value"]=>
            int(0)
            ["text"]=>
            string(0) ""
          }
          [1]=>
          array(2) {
            ["value"]=>
            string(2) "24"
            ["text"]=>
            string(25) "GXP Enterprise HD series "
          }
        }
        ["model_list"]=>
        array(3) {
          [0]=>
          array(2) {
            ["value"]=>
            int(0)
            ["text"]=>
            string(0) ""
          }
          [1]=>
          array(2) {
            ["value"]=>
            string(3) "242"
            ["text"]=>
            string(7) "GXP2110"
          }
          [2]=>
          array(2) {
            ["value"]=>
            string(3) "243"
            ["text"]=>
            string(7) "GXP2120"
          }
        }
        ["display_ext"]=>
        array(0) {
        }
        ["brand_ava"]=>
        array(2) {
          [0]=>
          array(2) {
            ["value"]=>
            string(0) ""
            ["text"]=>
            string(0) ""
          }
          [1]=>
          array(3) {
            ["value"]=>
            string(1) "2"
            ["text"]=>
            string(11) "Grandstream"
            ["selected"]=>
            NULL
          }
        }
        ["unmanaged"]=>
        NULL
        ["button"]=>
        NULL
        ["searched"]=>
        NULL
        ["edit"]=>
        NULL
        ["amp_conf_serial"]=>
        string(144) "YTozOntzOjk6IkFNUERCVVNFUiI7czoxMToiZnJlZXBieHVzZXIiO3M6OToiQU1QREJQQVNTIjtzOjEyOiJaSkx6bWg3YTZhRTMiO3M6OToiQU1QREJOQU1FIjtzOjg6ImFzdGVyaXNrIjt9"
        ["no_add"]=>
        bool(false)
        ["mode"]=>
        NULL
        ["edit_id"]=>
        string(1) "0"
        ["show_error_box"]=>
        int(1)
        ["advanced_debug"]=>
        string(1) "1"
        ["fatal_error"]=>
        int(1)
        ["error_message"]=>
        string(63) "File not written to hard drive! Function: [parse_configs]
"
      }
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      &string(11) "message_box"
    }
  }
  [2]=>
  array(4) {
    ["file"]=>
    string(67) "/var/www/html/admin/modules/endpointman/includes/rain.tpl.class.inc"
    ["line"]=>
    int(186)
    ["args"]=>
    array(1) {
      [0]=>
      string(97) "/var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1336955350.php"
    }
    ["function"]=>
    string(7) "include"
  }
  [3]=>
  array(7) {
    ["file"]=>
    string(68) "/var/www/html/admin/modules/endpointman/includes/devices_manager.inc"
    ["line"]=>
    int(521)
    ["function"]=>
    string(4) "draw"
    ["class"]=>
    string(7) "RainTPL"
    ["object"]=>
    object(RainTPL)#11 (1) {
      ["variables"]=>
      array(22) {
        ["amp_ver"]=>
        string(2) "10"
        ["list"]=>
        array(20) {
          [0]=>
          array(11) {
            ["id"]=>
            string(1) "1"
            ["mac"]=>
            string(12) "000B82311DAD"
            ["model"]=>
            string(7) "GXP2110"
            ["enabled"]=>
            string(1) "1"
            ["name"]=>
            string(11) "Grandstream"
            ["global_custom_cfg_data"]=>
            string(0) ""
            ["template_id"]=>
            string(1) "1"
            ["template_name"]=>
            string(11) "GXP2110-RTS"
            ["master_id"]=>
            int(0)
            ["line"]=>
            array(1) {
              [0]=>
              array(5) {
                ["ext"]=>
                string(3) "799"
                ["line"]=>
                string(1) "1"
                ["description"]=>
                string(9) "Tech Dept"
                ["luid"]=>
                string(1) "2"
                ["master_id"]=>
                int(0)
              }
            }
            ["status"]=>
            array(3) {
              ["status"]=>
              bool(false)
              ["ip"]=>
              bool(false)
              ["port"]=>
              string(0) ""
            }
          }
          [1]=>
          array(11) {
            ["id"]=>
            string(1) "3"
            ["mac"]=>
            string(12) "my-mac"
            ["model"]=>
            string(7) "GXP2110"
            ["enabled"]=>
            string(1) "1"
            ["name"]=>
            string(11) "Grandstream"
            ["global_custom_cfg_data"]=>
            string(0) ""
            ["template_id"]=>
            string(1) "1"
            ["template_name"]=>
            string(11) "GXP2110-RTS"
            ["master_id"]=>
            int(1)
            ["line"]=>
            array(1) {
              [0]=>
              array(5) {
                ["ext"]=>
                string(3) "763"
                ["line"]=>
                string(1) "1"
                ["description"]=>
                string(11) "Display Name2"
                ["luid"]=>
                string(1) "4"
                ["master_id"]=>
                int(1)
              }
            }
            ["status"]=>
            array(3) {
              ["status"]=>
              bool(true)
              ["ip"]=>
              string(12) "10.10.10.128"
              ["port"]=>
              string(0) ""
            }
          }
.........................
  [4]=>
  array(4) {
    ["file"]=>
    string(60) "/var/www/html/admin/modules/endpointman/page.epm_devices.php"
    ["line"]=>
    int(12)
    ["args"]=>
    array(1) {
      [0]=>
      string(68) "/var/www/html/admin/modules/endpointman/includes/devices_manager.inc"
    }
    ["function"]=>
    string(7) "include"
  }
  [5]=>
  array(4) {
    ["file"]=>
    string(30) "/var/www/html/admin/config.php"
    ["line"]=>
    int(317)
    ["args"]=>
    array(1) {
      [0]=>
      string(60) "/var/www/html/admin/modules/endpointman/page.epm_devices.php"
    }
    ["function"]=>
    string(7) "include"
  }
}

Last Error
Array
(
    [type] => 2048
    [message] => Only variables should be assigned by reference
    [file] => /var/www/html/admin/modules/endpointman/includes/timezone.inc
    [line] => 0
)
1

Notice the “Custom Config” for Phone #6, even though all my phones are config’d off the GXP2110 standard template.

Sure hope someone knows what all this means for I can get this debugged.

Thanks!

OMR

All,

Got it fixed with:

chown -R asterisk /tftpboot && chmod 775 -R /tfptboot

Worked fine then!

Cheers!