PIONEERS Incredible Fax for Ubuntu with Incredible PBX install

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
Are you logged in as root? Should not have any permissions issues. I'm confused now
 

jchuby

Member
Joined
Feb 27, 2008
Messages
47
Reaction score
4
I was logged in as root, but reset permissions on the file


Code:
root@ip-172-31-21-167:/home/ubuntu# apt-get update && apt-get upgrade
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://archive.ubuntu.com trusty Release
Ign http://security.ubuntu.com trusty-security InRelease
Get:2 http://archive.ubuntu.com trusty-updates Release [59.7 kB]
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://security.ubuntu.com trusty-security Release
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Get:3 http://archive.ubuntu.com trusty-updates/main Sources [129 kB]
Get:4 http://archive.ubuntu.com trusty-updates/universe Sources [88.2 kB]
Get:5 http://archive.ubuntu.com trusty-updates/main amd64 Packages [343 kB]
Get:6 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [214 kB]
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 835 kB in 2s (386 kB/s)
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
 
root@ip-172-31-21-167:/home/ubuntu# dpkg --configure -a
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-29-generic
Setting up dbus (1.6.18-0ubuntu4.2) ...
 
<< SYSTEM FROZEN HERE FOR A LONG TIME>> ...Ctrl+C
^Cdpkg: error processing package dbus (--configure):
subprocess installed post-installation script was interrupted
Setting up mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
<SYSTEM FROZEN HERE TOO>
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
The Ctrl-C isn't letting me see the actual error. Can you run it one more time for me and this time instead of hitting CTRL-C - hit Enter/Return a few times until it continues. This will still error out on you but it should show me the actual error/failure.
 

jchuby

Member
Joined
Feb 27, 2008
Messages
47
Reaction score
4
Just so you know... my asterisk system is online - but the Fax did not install.
I re-rain dpkg and below is what happened

The fax plugin module is showing but when clicked it says 404 error..

My system is hosted on amazon ec2- dont know if that changes anything...


Code:
<<
 
root@ip-172-31-21-167:/home/ubuntu# dpkg --configure -a --force-all
Setting up dbus (1.6.18-0ubuntu4.2) ...
 
 
start: Job is already running: dbus
invoke-rc.d: initscript dbus, action "start" failed.
dpkg: error processing package dbus (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
 
start: Job is already running: mysql
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up rsyslog (7.4.4-1ubuntu2.3) ...
The user `syslog' is already a member of `adm'.
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
start: Job is already running: rsyslog
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing package rsyslog (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: mysql-server: dependency problems, but configuring anyway as you requested:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
 
Setting up mysql-server (5.5.40-0ubuntu0.14.04.1) ...
dpkg: systemd-services: dependency problems, but configuring anyway as you requested:
systemd-services depends on dbus; however:
Package dbus is not configured yet.
 
Setting up systemd-services (204-5ubuntu20.7) ...
Setting up libpam-systemd:amd64 (204-5ubuntu20.7) ...
start: Job is already running: systemd-logind
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: language-selector-common: dependency problems, but configuring anyway as you requested:
language-selector-common depends on dbus; however:
Package dbus is not configured yet.
 
Setting up language-selector-common (0.129.3) ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-sg.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-tw.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-mo.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-hk.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-cn.conf ...
Errors were encountered while processing:
dbus
mysql-server-5.5
rsyslog
libpam-systemd:amd64
 

jchuby

Member
Joined
Feb 27, 2008
Messages
47
Reaction score
4
Just wanted to update... I relaunched a new Ubuntu Instance, ran the pbiaf install, etc.. reboot.
Installed from Pg1 - went without issues... was able to reboot, and then change teh avantfax passwd without issues... so i think its up
 

Jay Deal

Phhhhhhhhttttttt :)
Joined
Dec 26, 2013
Messages
267
Reaction score
85
Just wanted to update... I relaunched a new Ubuntu Instance, ran the pbiaf install, etc.. reboot.
Installed from Pg1 - went without issues... was able to reboot, and then change teh avantfax passwd without issues... so i think its up

I can confirm the same thing, I set up a new Ubuntu IPBX install last night (on a dirt cheap HP T5740 thin client I recently got), immediately followed by an IFAX install and sent a couple hundred pages of faxes via GV. No issues whatsoever with Hylafax or Avantfax but for some reason I had to replace Sendmail with Exim4 because I could not get Sendmail to hash the authentication credentials (permissions error I could not resolve). But installation and use of the IFAX script no problems at all.

FYI, I did an 'apt-get update && apt-get upgrade -y' immediately after the IFAX install and it didn't present any issues with Mysql or anything else I could tell.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Confirmed working with Firefox browser. AvantFax login fails with Chrome browser. Other than that, we're back in business.

:party::party::party:
 

Jay Deal

Phhhhhhhhttttttt :)
Joined
Dec 26, 2013
Messages
267
Reaction score
85


wardmundy - I think it would be highly beneficial to include a reference to setting up Sendmail in the Nerdvittles pages for each particular new setup you feature. I know I had to search quite a bit to find it in the forum. Sendmail (obviously) is an important part of all the IPBX components - backup and new modules notification, Hylafax, etc.

Especially helpful for noobs as I once was..................
 

jchuby

Member
Joined
Feb 27, 2008
Messages
47
Reaction score
4
Its working very well, havent had any issues.
Fax receive over flowroute DID - perfect
Fax sent (over flowroute trunk) - perfect
Getting all email notifications (gmail is saying its possibly phishing but its still coming in fine) - and i didnt change any sendmail or etc...

so a big thank you!

and this also just goes to show how awesome it is to be able to "start over" and move your settings quickly when something gets minorly 'fried' on the system!
 

Jay Deal

Phhhhhhhhttttttt :)
Joined
Dec 26, 2013
Messages
267
Reaction score
85
Not so fast.....I just 'apt-get update && apt-get upgrade' my BBB running IPBX with Avantfax and it hosed the server. I realize the IFAX script was not intended to be used on the BBB but it worked well before I did the update. I'm restoring from backup but I wanted to let people know that it might still be an issue for some.
 

Josh North

Guru
Joined
Aug 5, 2014
Messages
27
Reaction score
11
Hackish code to fix apt issues as I find them... so far this only has the fix for the hangup on the udev installation. As I run into more packages that hang I will add them to this script. The script DOES check to see if it needs to be run. Ward - I don't know how well this will play with your login/auto-update script. You may just want to copy the relevant 3 lines that check and replace the lines in the postinst script and use them in your update system - then, if/when I have to add more fixes they can be separate fixes in your program.

So - running this should not hurt anyone's system but it will provide a quick fix if your apt-get upgrade is hanging or giving you udev errors.

EDIT TO ADD: You may have to run this each time a new udev is released - so if you see apt-get upgrade fail, then run this script and do apt-get upgrade again.

Code:
cd /root
wget --no-check-certificate https://raw.githubusercontent.com/joshnorth/UbuntuPIAF/master/FixAptIssues.sh
chmod +x /root/FixAptIssues.sh
/root/FixAptIssues.sh
 

Jeffrccar

New Member
Joined
Nov 26, 2014
Messages
19
Reaction score
2
Hackish code to fix apt issues as I find them... so far this only has the fix for the hangup on the udev installation. As I run into more packages that hang I will add them to this script. The script DOES check to see if it needs to be run. Ward - I don't know how well this will play with your login/auto-update script. You may just want to copy the relevant 3 lines that check and replace the lines in the postinst script and use them in your update system - then, if/when I have to add more fixes they can be separate fixes in your program.

So - running this should not hurt anyone's system but it will provide a quick fix if your apt-get upgrade is hanging or giving you udev errors.

EDIT TO ADD: You may have to run this each time a new udev is released - so if you see apt-get upgrade fail, then run this script and do apt-get upgrade again.

Code:
cd /root
wget --no-check-certificate https://raw.githubusercontent.com/joshnorth/UbuntuPIAF/master/FixAptIssues.sh
chmod +x /root/FixAptIssues.sh
/root/FixAptIssues.sh


Works great! thanks but still having trouble with libpam-systemd:amd64

Code:
root@pbxbox:/var/lib/dpkg/info# 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.
1 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 libpam-systemd:amd64 (204-5ubuntu20.10) ...
(Pressed Enter)
start: Job is already running: systemd-logind
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libpam-systemd:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
 

Jay Deal

Phhhhhhhhttttttt :)
Joined
Dec 26, 2013
Messages
267
Reaction score
85
Works great! thanks but still having trouble with libpam-systemd:amd64

Code:
root@pbxbox:/var/lib/dpkg/info# 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.
1 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 libpam-systemd:amd64 (204-5ubuntu20.10) ...
(Pressed Enter)
start: Job is already running: systemd-logind
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libpam-systemd:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


The temporary hold instructions at the bottom of this webpage worked for me to overcome a similar issue (mine was with udev): http://askubuntu.com/questions/4694...-error-ubuntu-14-04-unable-to-install-updates

dpkg-divert --rename --add /usr/sbin/invoke-rc.d
ln -s /bin/true /usr/sbin/invoke-rc.d
#Run apt-get, dpkg etc...
rm /usr/sbin/invoke-rc.d
dpkg-divert --rename --remove /usr/sbin/invoke-rc.d
 

compuguy1088

Member
Joined
May 25, 2013
Messages
63
Reaction score
8
Not so fast.....I just 'apt-get update && apt-get upgrade' my BBB running IPBX with Avantfax and it hosed the server. I realize the IFAX script was not intended to be used on the BBB but it worked well before I did the update. I'm restoring from backup but I wanted to let people know that it might still be an issue for some.


When you mean "hosed", you mean that asterisk cannot start because of a config file issue?

Edit: this is on 14.04.2, it seems to be unable to untar a file because it cannot allocate memory, during the cpam install/configuring steps.
 

Jay Deal

Phhhhhhhhttttttt :)
Joined
Dec 26, 2013
Messages
267
Reaction score
85
When you mean "hosed", you mean that asterisk cannot start because of a config file issue?

Edit: this is on 14.04.2


You know it's been like forever ago since I posted that. It's kind of fuzzy now to tell you the truth. Yes, I think Asterisk and FreePBX wouldn't start. I do know there were Linux security / bug issues as the time so maybe that had something to do with it. I've moved platforms and on to a new set challenges (er I mean disappointments :() so I can't be of much assistance regarding the whole issue.
 

compuguy1088

Member
Joined
May 25, 2013
Messages
63
Reaction score
8
You know it's been like forever ago since I posted that. It's kind of fuzzy now to tell you the truth. Yes, I think Asterisk and FreePBX wouldn't start. I do know there were Linux security / bug issues as the time so maybe that had something to do with it. I've moved platforms and on to a new set challenges (er I mean disappointments :() so I can't be of much assistance regarding the whole issue.


I understand, though other than this issue, Incredible PBX 12 works fine (as long as you don't run the fax script), I may try to see if there is a way to install incredible pbx 12 on centos 6.5...via PIAF Black....
 

l4cky

Member
Joined
Jan 27, 2015
Messages
175
Reaction score
4
I understand, though other than this issue, Incredible PBX 12 works fine (as long as you don't run the fax script), I may try to see if there is a way to install incredible pbx 12 on centos 6.5...via PIAF Black....
well as stated previously, you need to run terminal and go root and type

However, now we have a problem with incrediblefax on asterisk 12: pear uninstall db, pear install db-1.7.14

hv787c.jpg


Is it that critical?
 

howardsl2

Guru
Joined
Aug 5, 2013
Messages
88
Reaction score
25
well as stated previously, you need to run terminal and go root and type

However, now we have a problem with incrediblefax on asterisk 12: pear uninstall db, pear install db-1.7.14

hv787c.jpg


Is it that critical?
I think you just need to update that CDR module (and others) via Module Admin.
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top