Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-10539

Upgrading FreeSWITCH causes permission error on storage directory when using symlink

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.18, 1.6.19
    • Fix Version/s: 1.6.19
    • Component/s: Build-System
    • Labels:
      None
    • Environment:
      Debian 8.9
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • FreeSWITCH GIT Revision:
      FreeSWITCH Version 1.6.19-36-7a77e0b~64bit (-36-7a77e0b 64bit)
    • GIT Master Revision hash::
      master

      Description

      Upgrading to FreeSWITCH '1.6.19' from '1.6.18' (likely occurs on other 1.6 versions) using Debian 8.9 causes permission error on ‘/var/lib/freeswitch/storage’ when using a symlink for this directory, despite the correct permissions being applied on the symlink destination.

      Not a problem on version '1.4.26'.

      Can we ignore 'Permission denied' errors on '/var/lib/freeswitch/storage', or perhaps check if this is a symlink and if so omit the chown command?

      Error as follows.

      sudo apt-get upgrade
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Calculating upgrade... Done
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      4 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Setting up freeswitch (1.6.19~36~7a77e0b-1~jessie+1) ...
      chown: changing ownership of ‘/var/lib/freeswitch/storage’: Permission denied
      dpkg: error processing package freeswitch (--configure):
      subprocess installed post-installation script returned error exit status 1
      dpkg: dependency problems prevent configuration of freeswitch-meta-bare:
      freeswitch-meta-bare depends on freeswitch (= 1.6.19~36~7a77e0b-1~jessie+1); however:
        Package freeswitch is not configured yet.

      dpkg: error processing package freeswitch-meta-bare (--configure):
      dependency problems - leaving unconfigured
      dpkg: dependency problems prevent configuration of freeswitch-meta-codecs:
      freeswitch-meta-codecs depends on freeswitch (= 1.6.19~36~7a77e0b-1~jessie+1); however:
        Package freeswitch is not configured yet.

      dpkg: error processing package freeswitch-meta-codecs (--configure):
      dependency problems - leaving unconfigured
      dpkg: dependency problems prevent configuration of freeswitch-dbg:
      freeswitch-dbg depends on freeswitch (= 1.6.19~36~7a77e0b-1~jessie+1); however:
        Package freeswitch is not configured yet.

      dpkg: error processing package freeswitch-dbg (--configure):
      dependency problems - leaving unconfigured
      Errors were encountered while processing:
      freeswitch
      freeswitch-meta-bare
      freeswitch-meta-codecs
      freeswitch-dbg
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      Workaround:
      1. service freeswitch stop
      2. mv /var/lib/freeswitch/storage /var/lib/freeswitch/storage2
      3. mkdir /var/lib/freeswitch/storage
      4. sudo apt-get upgrade
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Calculating upgrade... Done
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      4 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Setting up freeswitch (1.6.19~36~7a77e0b-1~jessie+1) ...
      Setting up freeswitch-meta-bare (1.6.19~36~7a77e0b-1~jessie+1) ...
      Setting up freeswitch-meta-codecs (1.6.19~36~7a77e0b-1~jessie+1) ...
      Setting up freeswitch-dbg (1.6.19~36~7a77e0b-1~jessie+1) ...
      5. rm /var/lib/freeswitch/storage
      6. mv /var/lib/freeswitch/storage2 /var/lib/freeswitch/storage
      7. service freeswitch start

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              shaun.stokes@itec-support.co.uk Shaun Stokes
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: