Upgrade Module from 2.3 to 2.4

Folks,
I need some testing on an upgrade module that can be installed on FreePBX 2.3 systems and will upgrade you to FreePBX 2.4. I will be publishing this once I have gotten a bit more feedback and make sure there are no issues with it, and once I've seen a fair number of the current 2.4 beta testers move to the final release without reports of porblems.
The module can be found here for testing:
EDIT
I have removed the download location now that the module has been published in the online system. You should pull it from there.
EDIT
and needs to be manually loaded in FreePBX either with Module Admin's upload ability or by exploding the tarball in your modules directory.
The upgrade process works like this:
- You install the module
- You choose the 2.4 Upgrade Tool now in your left navigation bar
- You click on the upgrade button and confirm the upgrade
- You read the instructions (rtfm)
- They tell you to go to module admin and choose to upgrade only Framework, you do that
- They then tell you to upgrade everything else, you do that
- They have already told you to NOT press the reload bar until you have completed the previous step, so you do that now
- You are now done
The process is fairly straight forward but you do have to run through all the steps. In the early testing, the reload bar would come up as usual after loading framework and as expected, people would press it which would result in errors because core had not been upgraded yet. Now the reload bar should not even come up but we left in the warnings in the instructions just in case.
The other mistake people make is to press upgrade all as the first step, which results in an error from module admin because many of the modules depend on Framework being upgraded first. So you have to follow the order of the instructions. (Some day, hopefully next milestone, we will build in the smarts to Module Admin to see the dependencies are also being included in the install request and not complain, but it is not there now and it turns out that there are a lot of complexities in doing that which we won't go into here).
Anyhow - your testing this module before we publish it would be very appreciated. You can do it on a vmware system or real system, we just need feedback that it is working as it should so we don't push it out to the masses broken.
Thanks - please reply to this thread with either success or problem reports testing this.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here



Success!
After uploading the upgrade module, I followed the simple 4 step process and everything took right off.
I only had one warning type of message. PHPAGI Config could not be installed, because I didn't have Module Asterisk API installed. So I installed that, and that went away.
I just tested everything, and it all appears to be working. Very smooth transition.
Thanks
Upgrade Changed sip show inuse behaviour
Hi,
I upgraded my trixbox 2.4 (freepbx 2.3) using the upgrade module and all went fine.
I had a trunk with a SIP provider and before upgrade i was able to list the trunk with the command sip show inuse.
Now this command only shows sip extensions that are defined locally. The trunk is not there anymore..!
Success #2
Like butter.
All is well.
Cheers!
No Problems
I followed the instructions and it worked fine - no problems here
Rgds
to the three of you who
to the three of you who replied, thanks so much. to the dozens of you who have downloaded the module but not given any feedback, please do so as we would like the confidence factor before unleashing it to the world. Thanks for the VERY small effort of just reporting back how it went.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Smooth Upgrade
No problems with the upgrade all. So far everything works great. Thanks very much!!
smooth sailing
I performed two upgrades.
Both were trixbox 2.2.4 installs (started life as FreePBX 2.2.3, upgraded to 2.3.1). These were both fairly recent installs.
I used the "update module" process on one and the "Upgrading Your System" process on the other.
They both worked flawlessly, without even so much as a warning.
I would think that the upgrade module should remove itself from the /modules/ directory though rather than requiring you to do it by hand (it sits in the modules list and says "Not Installed (Locally available)").
That's the only complaint I could come up with! ;)
Nice work.
- Darrin
P.S. - I could try the upgrade against the 2.2.3 build as well if that would be useful. I've got a diskimage of a post-install trixbox 2.2.4 that I can easily bring up in a VM...
- Darrin
www.bitwaretech.com
you wanted feedback. Ok
you wanted feedback.
Ok first off the link in the description for "get help for 2.3 to 2.4 upgrade tool" does not produce a valid page... (yea I know work in progress, but you asked)...
Create a new step 3a for all the slow people, it should say once you have applied the changes "LOOK for the 2.4 Upgrade tool button on your left, chick and follow directions"
When you have completed the process and clicked on the red bar, the 2.4 upgrade tool button was still present. I clicked on it, it disapeared, but I again had the red bar to click on.
other then that it upgraded from 2.3 nice and easy..
Darrin, thanks - feel free
Darrin,
thanks - feel free to try the upgrade from 2.2 it would be really interesting to see how that worked. As far as removing itself completely it is suppose to as soon as it sees that framework and core are at 2.4.0 or beyond. The most likely reason that it did not remove itself and shows locally available would be because it may not have been loaded in the module directory as user asterisk, that, or a bug ...
fskrotzki,
thanks for the details. I guess I should put something in that link and had completely forgotten about the help. I'll look at making a book page with the upgrade instructions so that the help links or top tab provide the same upgrade instructions. As far as step 3a - I debated that. The only reason I have the additional information on the Upgrade Module screen if you navigate there part way is so that people know where they are. In reality, it is simply:
1. press the button
2. go to Module Admin and download Framework
3. download the rest
4. press reload
and all should be done... so telling them to go back, hmm...
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Error upgrading music on hold
I'm getting
Warning: fopen(/etc/asterisk/musiconhold_additional.conf) [function.fopen]: failed to open stream: Permission denied in /var/www/admin/modules/music/install.php on line 21
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/admin/modules/music/install.php on line 23
Cannot write to file ()
when trying to upgrade moh after upgrade to 2.4
that would not have anything
that would not have anything to do with the upgrade or upgrade module. Looks like you may have permission problems on your config file or your music directory.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
FIXED: I am also getting this
Can someone point me in how to fix it?
I am not sure what happened but I restarted the box a couple of times and ran the module upgrade again and it worked.
Thanks.
new
Upgrade went just dandy. Tried to mess up the upgrade and would not let me.
G711
glad to hear all the good
glad to hear all the good feedback. Since we've published it last night we've seen about 400 upgrades, so given the silence I think all is well. And as mentioned, you can just check for online updates on 2.3 now, no need to download it manually.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
I'm unable to upgrade :(
Hi,
I'v tryed to upgrade the machine.. but after clicked on the UPGRADE button and confirmed...
nothing changed in the module admin, no new update avaible for the Framework :(
What I'v to check?
Thank you,
Best Regards
----------------- It's show :
FreePBX Base Version: 2.4.0alpha0
FreePBX Framework Version: 2.3.1.3
FreePBX Core Version: 2.3.1.4
EDIT---
Ok just rebooted the PBX and it have showed the new updates :-)
Just a question.. I got those error during the framework update:
error copying framework files:
'cp -rf' from src: '/var/www/html/admin/modules/framework/htdocs/*' to dst: '/var/www/html'...details follow
cp: cannot create directory `/var/www/html/_asterisk': Permission denied
cp: cannot create directory `/var/www/html/recordings': Permission denied
I'v fixed the permission, but what was wrong? how can I fix it manually?
Thank you,
Best Regards
Custom APP disappared
Hi,
I got noticed the CUSTOM APP as disappared :| Why ?
Thank you,
Best Regards
On an older trixbox...
I had the issue mentioned in this thread:
http://www.trixbox.org/forums/trixbox-forums/open-discussion/freepbx-2-4...
I didn't reboot. I grabbed the full tarball and proceeded with success.
All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved.
Sun Tzu
not as smooth
Philippe,
I most likely added the module as root, which would explain why it didn't remove itself. That makes sense.
I tried to upgrade a production box today from 2.3.1 (same setup as the last two I upgraded) to 2.4 using the now-online update module, but I had the same issue that I'm seeing posted elsewhere - namely that after clicking the Update button and going back to the modules page to "check for updates online", the freepbx framework module did not show an available update for 2.4. Since this was a production box and I didn't want to leave it that way, I went ahead and applied the tar file upgrade method instead, and everything was smooth sailing after that. Also, I noticed that the "upgrade module" did indeed remove itself once the upgrade to 2.4 was complete.
- Darrin
- Darrin
www.bitwaretech.com
The only thing that changed
The only thing that changed going from 2.3. to 2.4 with trunks is to retain the order of settings with your trunks, in the past, they were resorted (reverse alphabetically iirc) which resulted in some problems corner case problems. So that is one possible place to look. The other common issue is people either adding settings to 'freepbx owned' configuration files or settings placed in the wrong files that were working by accident previously.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Having some issues with the upgrade.
All seemed to go well I followed the instructions to the T. After the install my inbound routing/DID's would not route the call from the group to the ext. I could not call from ext to ext my outbound routing does work. When I call from ext to ext I get fast busy and when I call my DID I just get sent right to vmail. The server is sending back a sip message error 603 declined from ext to ext. Any ideas....
Thanks for your help.
"Custom App" choice missing from all modules that used it
Systems that I upgraded using the 2.3 -> 2.4 upgrade module were broken. It seems that the "Custom App" choice has dissappeared from all modules that used to have it, and everywhere that a "Custom App" was used in 2.3 an "Unknown Destination" option appears in red, replacing it. Entries also appear on the "FreePBX System Status" page in "FreePBX Notices" under the heading "There are 8 bad destinations". Another user warned of this on the 13th and no answer was given.
Nevermind! It looks like this can be fixed by adding all of the "Custom Apps" used in 2.3 which now appear in a "Quick Pick List", to the "Custom Destinations" module under "Tools" in 2.4, and then the "bad destinations" are automatically fixed in the other modules.
Custom App choice missing
I am not clear on how to work around the Custom App disappearance. Previously we would have definitions to an A2billing macro but now, we had to rebuild from scratch and this option does not show up. Miscellaneous Destinations & Misc Apps does not seem to work with the a2billing script. At least not in 2.4. Help....
C
One bug found and fixed
OK folks, for those of you who loaded the module and then checked for updates again and found none, I resolved the issue. Here it is and it has now been fixed.
When you check for updates, you are downloading a big XML file which is cached in FreePBX with a timestamp. So if you immediately check for updates again, it will see you just checked and pull the same xml file out of the cache. The age of the cache is set for 5 minutes so if you are going though this process very quickly, you could get caught by this. I just published a new revision of the upgrade module. Now it deletes the cached copy and then bumps the version number up as before. Now that the cached copy has been deleted, you will go back to the server upon the next update check and should pull the 2.4 XML file and see all the updates.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
custom app.
What is everyone else doing now that the custom app option is gone from Misc. Applications? I need the functionality that this offered. Is there a different way to call custom apps in FreePBX? I haven't seen anything like this.
Thanks,
Andrew
see the customappsreg module
see the customappsreg module in the tool tab. It's all documented in the CHANGES file available with each major release.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
customappsreg module
Thanks Philippe. The Custom Extensions and Custom Destinations weren't on my Tools tab, but after searching the site, I grabbed it from source and put it on my server and installed it using the modules admin. The way you referred to it in your post above made me think that it was already in the Module Admin, but it wasn't on mine, so I just wanted to let you know in case it was a bug. Either way, thanks for taking the time to let me know.
Andrew
Andrew, if you checked for
Andrew, if you checked for modules online, once upgrading, you should have seen those as new modules.
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
Correct as usual
I just checked on another box and you are correct. Those modules appeared as you described.
I'm having a similar problem
I'm having a similar problem on a 2.4.0 box. customappsreg, etc is not showing up. I went into Module Admin. and hit "Check for updates online". When it comes back, it shows I'm up to date and have everything installed, but I'm obviously still missing this (and presumable other) module.
What can I do to install customappsreg, etc?
Mike N
Same problem......
Also here after the last update in 2.4 branch my custom apps disappeared.
Online update shows that there are no newer updates available for a long time already and the additional modules do not appear in the list of things that can be installed :((((
How can i 'force' the modules part to check for updates? I found a reference to a big xml file, but i can't find the file. What do i need to nuke to get updates again?
Thanks!
upgrade failed, now inter ext calls declined
i upgraded from 2.3.0.1 to 2.4 from the GUI as per instructions. Went well the first time, but then i started receiving warnings that modules have not been upgraded. Went back to module admin which now shows almost all modules as current: 2.4, upgrade available: 1.3.x.x or osmething like that. Looks strange when u have 2.4, but its asking for upgrading to a lower release.
So what i did was upgraded (which was actually a downgrade). once complete, reboot, upgrade again and now its showing 2.4 for mos tof the things.
However, the problem i have now is that inter-extension calls are being declined. 603, or fast busy. Extensions can still dial trunk lines, but not other extensions. Last time i found a way out to edit extensions.conf and changed something like s10, but cant find it any more. That allowed the exts to call each other.
Any help would be highly appreciated.
Empty "Destination Quck Pick" List
Has the syntax in extensions_custom.conf changed? I have a couple of hundred of these below that worked before the fresh install to 2.4 from 2.3 of FreePBX. None of them show up anymore. I was also wondering what happened to Custom Applications. I don't see my custom applications in the Destination Quick Pick in Custom Destinations.
[custom-n2]
exten => n2-01,1,Answer
;exten => n2-01,n,Flite("Last N 2 Carrier Part 1")
exten => n2-01,n,Playback(custom/preMF)
exten => n2-01,n,ControlPlayback(custom/N2/n2p1,5000,#,*)
exten => n2-01,n,Hangup
I have been looking for cusomappsreg and it is not in the list of modules. It is/was in the list of 49 available modules in the System Status page before any module was installed. I have installed all of the modules except the Print Extensions. I have clicked on Tools to see if it is there and customappsreg is still missing.
You will get a better
You will get a better response if you post this as new question instead of posting it under this subject as it's listed under the beta program for 2.4 which expired a while ago when 2.4 went live.
There was a big change when moving forward to 2.4 where FreePBX starts to maintain a complete list of extensions so that now it will not be possible to create two extensions one being a normal one and one being a custom one.
So there was a additional set of tools created to allow you to enter those custom setting. Take a look under the tools tab for custom extensions and custom applications. Once you register them with FreePBX, it becomes aware of them and tracks them so that no conflict arise in the future.
Cannot Start A New Question
How do you post a new question / post? I would if I could. Please leave me a message in my Inbox.
It's not that hard but many
It's not that hard but many people miss it. On the left hand side. See where it say's forums. click on it, the new page it produces locate Support on the left hand side, look to the right of that and it will say "Post a new forum topic".