Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Traffic Shaper/Limiter settings not converted on update

    2.1 Snapshot Feedback and Problems - RETIRED
    2
    2
    1176
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      phil.davis last edited by

      I updated my 2.1 from an 11 May build to a 4 June build.
      The following was reported on the console when it rebooted and tried to update the config:

      Welcome to pfSense 2.1-BETA0  ...
      
      Creating symlinks......done.
      External config loader 1.0 is now starting... ad0s3
      Launching the init system... done.
      Initializing............................. done.
      Starting device manager (devd)...done.
      Loading configuration......done.
      Updating configuration....
      Warning: array_flip(): Can only flip STRING and INTEGER values! in /etc/inc/upgrade_config.inc on line 2848
      
      Warning: array_flip(): Can only flip STRING and INTEGER values! in /etc/inc/upgrade_config.inc on line 2848
      
      Warning: array_flip(): Can only flip STRING and INTEGER values! in /etc/inc/upgrade_config.inc on line 2848
      
      Warning: array_flip(): Can only flip STRING and INTEGER values! in /etc/inc/upgrade_config.inc on line 2848
      
      Warning: array_flip(): Can only flip STRING and INTEGER values! in /etc/inc/upgrade_config.inc on line 2848
      
      Warning: array_flip(): Can only flip STRING and INTEGER values! in /etc/inc/upgrade_config.inc on line 2848
      ......done.
      
      

      Line 2848 is:
      $dummynet_pipe_list = array_flip($dummynet_pipe_list);
      It effects updating some shaper settings on rules.
      I found that the In/Out limiter settings on my rules had gone back to none/none. I have reselected the settings manually.
      For more complex configs than mine, there might be other shaper settings that are not preserved.
      shaper.inc/read_dummynet_config puts more complex structures/addresses into dummynet_pipe_list:

      $root =& new dnpipe_class();
      $root->ReadConfig($conf);
      $dummynet_pipe_list[$root->GetQname()] = &$root;
      

      These don't seem to take kindly to attempts to array_flip them.
      I am not at all familiar with the intention of this code in upgrade_config.inc - maybe whoever is can have a look at it? That would help others who upgrade in future.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • E
        eri-- last edited by

        Thanks for reporting should be fixed on latest snaps.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post