Ticket #4515 (closed Bugs: invalid)

Opened 1 year ago

Last modified 1 year ago

FreePBX update overwrote config file and install_amp chown'ed every file on the server

Reported by: mhurst Assigned to: p_lindheimer
Priority: major Milestone: 2.9
Component: Installation Version: 2.5-branch
Keywords: install_amp chown Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: Asterisk 1.4.x Backend Engine Version:

Description

PBX server is elastix-1.6.2-7.

Last week i updated FreePBX from freePBX-2.5.2-2rc to freePBX-2.5.2-5rc via yum. The RPM was retrieved from the Elastix repository.

Install failed, message was:

Connecting to database..FAILED Try running ./install_amp --username=user --password=pass (using your own user and pass) [FATAL] Cannot connect to database

Noticed that the update had overwritten the config file /etc/amportal.conf. Updated that file, then ran install_amp manually. That script changed the owner and group of every file on the filesystem to be asterisk:asterisk. It also cleared the setuid and setgid flags on every file.

By everything i mean /proc, /dev, /bin, /usr, /var, everything.

I spent an entire day fixing the damage caused by the install_amp script.

So there are two issues here:

1) the upgrade overwrote the config file /etc/amportal.conf 2) the install_amp script changed the owner and group and cleared setuid and setgid flags on every file on the server.

I have added FreePBX to the exclude list in yum.conf for the time being, so we do not have the same issues on our other Elastix servers.

I understand that we are not running the latest version of FreePBX, but we have to install the versions that exist in the Elastix repositories.

Apologies if there is an open ticket for this already, i searched and could not find one.

Change History

09/01/10 02:43:33 changed by mbrevda

  • status changed from new to closed.
  • resolution set to invalid.

The issue you are describing sounds like a poorly writen rpm. While FreePBX dose chowing some files, it has an extremely specific list. Additionally, the install script will never overwrite amportal.conf .

09/01/10 04:19:14 changed by mbrevda

p.s. my point is that there is no official rpm from FreePBx at this time, hence any issues related to a rpm should be addressed to the maintainer of the package.

09/01/10 11:41:00 changed by GameGamer43

Just to note you can file a bug with PaloSanto? Solutions who maintains the Elastix project at http://bugs.elastix.org and they can investigate this further.