Donate Share

trixbox

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

FreePBX Upgrade to 2.1beta

  1. 2006-05-04 15:11:52 UTC
    I have seen several references to upgrading to 2.1beta. The NerdVittles article on AAH 2.8 indicates that this upgrade shoulds be done prior to entering any settings in FreePBX. Thats fine well and good for a brand new install. Is performing the FreePBX upgrade on an existing, configured AAH 2.8 going to work? Will it damage the config, or wipe it out?

    Inquiring minds want to know :)

    Greg Keys
  2. 2006-05-04 15:40:56 UTC
    I've not been able to get 2.1b to work yet. I've followed the Nerd Vittles instructions as closely as I can and I end up getting lots of SQL errors when I try to use some of the sections. It says that Tables don't exist and things like that. I'm not a wiz with these things...yet. I'm planning to wait until AAH 2.9 or 3.0 includes the updates from 2.1b. I can see the benefit of the the changes though. It becomes possible to download updates for individual modules from within the application.
  3. 2006-05-04 16:04:05 UTC
    We have successfully upgraded to 2.1beta on 2 production machines this week.

    No damage to any config files.

    Just make sure you have recently run:
    cd /usr/src/freepbx
    svn update
    ./install_amp
    amportal restart

    As this fixed a few links that were broken during the upgrade to 2.1beta.

    The worst we have experienced is after upgrading, *97 failed from our cisco phones. But was easily fixed by just going into FreePBX/Feature Code Admin, disabling *97, then re-enabling it.
  4. 2006-05-04 16:38:03 UTC
    That definitely improved the situation. Thanks. I'm still having a problem getting the DISA Module to display. I get this:
    ALTER TABLE disa ADD COLUMN digittimeout INT DEFAULT "5" [nativecode=1146 ** Table 'asterisk.disa' doesn't exist]
  5. 2006-05-04 16:43:59 UTC
    I still can't get the following modules to work:

    Callback:
    SELECT * FROM callback [nativecode=1146 ** Table 'asterisk.callback' doesn't exist]

    Conferences:
    SELECT exten,description FROM meetme ORDER BY exten [nativecode=1146 ** Table 'asterisk.meetme' doesn't exist]

    Misc Destinations:
    SELECT id, description FROM miscdests ORDER BY description [nativecode=1146 ** Table 'asterisk.miscdests' doesn't exist]

    Queues: almost works, but throws this
    SELECT exten,description FROM meetme ORDER BY exten [nativecode=1146 ** Table 'asterisk.meetme' doesn't exist]

    Ring Groups:
    SELECT grpnum, description FROM ringgroups ORDER BY grpnum [nativecode=1146 ** Table 'asterisk.ringgroups' doesn't exist]

    Time Conditions:
    SELECT * FROM timeconditions [nativecode=1146 ** Table 'asterisk.timeconditions' doesn't exist]

    When I try to update DISA using the Module Admin I get the error posted above in my previous post.
  6. 2006-05-04 16:44:21 UTC
    depending on what you are upgrading, you need to do a "--force-version 2.0.1" with your install. And since there are constantly bugs being fixed (as it is a 'beta') you may need to do an svn update on occaision and do this force-version.

    p
  7. 2006-05-04 20:57:26 UTC
    It took 4 installs, and a different computer, but I think that I've finally gotten FreePBX2.1b installed and working.
  8. 2006-05-05 00:14:19 UTC
    I did an 2.1beta1 upgrade on a 2.8 box. The box had been set up for use (ext, trunks, etc), but not actually in service yet. I did the upgrade as NerdVittles outlined (prior to him going back and adding the force version part of the instructions).

    After upgrading, no modules show up. You have to turn your modules back on. All of my settings were still in place. Note, I did not delete any modules prior to upgrading. After doing this, I still have 5 modules listed as "Broken" and unknown(). I think this is because those modules no longer exist (i.e. config edit) in the 2.1beta1 version. Everything else seems to work so far though. I actually went ahead and started using the box today (in a small office w/ a back up plan).
  9. 2006-05-06 01:08:17 UTC
    What does it mean when you try to do the upgrade and you get:
    svn: '.' is not a working copy
  10. 2006-05-06 11:38:26 UTC
    I have done upgrade as described by Nerd Vittes:
    "
    cd /usr/src
    rm -rf /usr/src/freepbx
    svn co https://svn.sourceforge.net/svnroot/amportal/freepbx/trunk freepbx
    cd freepbx
    ./install_amp --force-version=2.0.1
    amportal restart
    cd /usr/src/freepbx
    svn update
    ./install_amp --force-version=2.0.1
    amportal restart
    "

    When I point the browser at Tools|Module admin I get a list of Broken modules.

    How can I fix this?
  11. 2006-05-06 14:09:36 UTC
    I have 4 modules that are showing "broken" as well. The rest are working. I don't know what they were. But I've found that as new features are added to FreePBX and updates are released it is fixing these items slowly.
  12. 2006-05-07 01:13:41 UTC
    Hi,

    I had the missing tables also and simply found the .sql files in the upgrade directories pulled these over to my windows box and copied and pasted the text into the sql command box in phpMyAdmin and it creates the tables that are missing.

    There were two or three of them. Just look at error statement to figure out which module you need to grab the sql file for.

    Cheers!
    ken
  13. 2006-05-07 01:27:47 UTC
    ztirffritz wrote:

    What does it mean when you try to do the upgrade and you get:
    svn: '.' is not a working copy

    This means that you are too high up in the directory structure and are not actually in what svn recognizes as a part of the tree that it knows about.

    For example, let say you do the following:

    mkdir amportal
    cd amportal
    mkdir freepbx
    cd freepbx
    svn co https://svn.sourceforge.net/svnroot/amportal/freepbx/trunk ./trunk

    now you have a directory that looks like theirs, e.g. amportal/freepbx/trunk/...

    now you go:

    cd ../..

    and you can see the ./freepbx directory. At this point if you try to do an svn update you are going to get the error above, because you stepped above the directory that it knows about even though it looks the same.

    p
  14. 2006-05-08 11:07:33 UTC
    I reinstalled A@H 2.1
    Then I follewed Nerd Vittes instructions and did not use the browser to set up anything before I performed the upgrade.

    Now there are no corrupted modules :)
    But when I click on "Connect to Online Module Repository" I get the message:
    "Warning: file_get_contents(http://amportal.sourceforge.net/modules-2.1.xml): failed to open stream: HTTP request failed!  in /var/www/html/admin/page.modules.php on line 445"

    I know that the pc running A@H can access trhe file. I tested it using:
    wget http://amportal.sourceforge.net/modules-2.1.xml

    Any ideas ?
  15. 2006-05-08 11:35:13 UTC
    I did a new install and seems everything is working ... I have my production machine intact. I have not brought the new install inline. I am going to put that somewhere else and I might wait till I get a chance to test at new location.
  16. 2006-05-08 11:39:07 UTC
    I don't know why I get the "Warning: file_get_contents....." and I leave this to someone smarter than me to figure out.
    I found a workaround to the problem.
    Open /var/www/html/admin/page.modules.php on line 443. Comment out this line and uncomment the debugging statement on line 444.
    Then create
    mkdir /usr/src/frepbx-modules
    cd /usr/src/frepbx-modules
    wget http://amportal.sourceforge.net/modules-2.1.xml
    mv modules-2.1.xml modules.xml

    Now the program reads the file from disk and it works.
    I don't know what other problem this workaround creates (if any).

    terchris
  17. 2006-05-08 14:50:17 UTC
    This has been said several times already. Before doing an upgrade the first thing you might want to do is:

    mv freepbx freepbx2.0.1 so there is nothing there when you pull down the new version.
  18. 2006-05-16 20:17:04 UTC
    I have upgraded to the 2.1 Beta, and the Modules that are installed, work fine. However, I have 6 modules that are still broken. Does anyone know how to repair these ? I know that my Cisco Config & Config Edit are missing, and chance someone knows how to get them back ????

    Thanks
  19. 2006-05-16 20:19:36 UTC
    was able to go to individual module using:

    was able to this directory:

    http://192.168.2.xxx/admin/modules/phpmyadmin/index.php

    and the page showed up just fine

    Also I was able to go here:

    http://192.168.2.xxx/admin/modules/configedit/phpconfig.php

    I suppose I can save all those as bookmarks and will be readly available.
  20. 2006-05-16 20:26:58 UTC
    I Believe the 6 Modules are:
    Voice Mail
    My PHP Admin
    System Info
    Asterisk Info
    Config Edit
    Cisco Edit

    Any help restoring these would be greatly appreciated...

    Parry Sands
  21. 2006-05-19 23:15:04 UTC
    heres how to re-enable aah modules into freepbx2.1.0, im sure this will be posted throughout the aah sites, please dont forget to give me some props :P

    cd /var/www/html/admin/modules/asteriskinfo
    cp module.ini module.xml
    nano module.xml
    <copy/paste the following>
    <module>
    <rawname>asteriskinfo</rawname>
    <name>Asterisk Info</name>
    <version>1.0</version>
    <type>tool</type>
    <category>Maintenance</category>

    <menuitems>
    <asteriskinfo>Asterisk Info</asteriskinfo>
    </menuitems>
    </module>

    nano page.asteriskinfo.php
    copy/paste the following
    <a href="modules/asteriskinfo/asterisk_info.php" target="_blank">Asterisk Info</a>

    cd ../configedit
    nano module.xml
    copy/paste the following:
    <module>
    <rawname>configedit</rawname>
    <name>ConfigEdit</name>
    <version>1.0</version>
    <type>tool</type>
    <category>Maintenance</category>
    <menuitems>
    <configedit>Config Edit</configedit>
    </menuitems>
    </module>

    nano page.configedit.php
    copy/paste the following:
    <a href="modules/configedit/phpconfig.php" target="_blank">Config Edit</a>

    cd ../cisoconfig
    nano module.xml
    copy/paste the following:
    <module>
    <rawname>ciscoconfig</rawname>
    <name>Cisco Config</name>
    <version>1.0</version>
    <type>tool</type>
    <category>Maintenance</category>
    <menuitems>
    <ciscoconfig>CiscoConfig</ciscoconfig>
    </menuitems>
    </module>

    nano page.ciscoconfig.php
    copy/paste the following:
    <a href="modules/ciscoconfig/cisco_cfg/phone.html" target="_blank">Cisco Config</a>

    cd ../phpmyadmin
    nano module.xml
    copy/paste the following:
    <module>
    <rawname>phpmyadmin</rawname>
    <name>phpMyAdmin</name>
    <version>2.8.0.2</version>
    <type>tool</type>
    <category>Maintenance</category>

    <menuitems>
    <phpmyadmin>phpMyAdmin</phpmyadmin>
    </menuitems>
    </module>

    nano page.myphpadmin.php
    copy/paste the following:
    <a href="modules/phpmyadmin/phpMyAdmin" target="_blank">phpMyAdmin</a>

    cd ../sysinfo
    nano module.xml
    copy/paste the following:
    <module>
    <rawname>sysinfo</rawname>
    <name>Sys Info</name>
    <version>1.0</version>
    <type>tool</type>
    <category>Maintenance</category>

    <menuitems>
    <sysinfo>Sys Info</sysinfo>
    </menuitems>
    </module>

    nano page.sysinfo.php
    copy/paste the following:
    <a href="modules/sysinfo/" target="_blank">Sys Info</a>

    cd ../sysstatus
    nano module.xml
    copy/paste the following:
    <module>
    <rawname>sysstatus</rawname>
    <name>System Status</name>
    <version>1.0</version>
    <type>tool</type>
    <category>Maintenance</category>

    <menuitems>
    <sysstatus>System Status</sysstatus>
    </menuitems>
    </module>

    page.sysstatus.php should already be configured.

    these were the only modules i had used on the previous freepbx, you may have more you need to convert to the new style. anway with what ive showed you here, you should be able to convert any existing modules easily.
  22. 2006-05-21 21:02:18 UTC
    Jason,
    Perfect, using your instructions, I've created a bash script to do the job

    http://samyantoun.50webs.com/asterisk/athome/updatemaint/

    Thank you very mutch for sharing
  23. 2006-05-22 11:02:09 UTC
    Wow!!!!

    Great Job I used the script and everything is there!!!!!

    THANKS ----
  24. 2006-05-24 19:16:28 UTC
    thanks for the script - it worked like a champ
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.