transcription stop working after upgrade to v5

Status
Not open for further replies.

Newbee

Member
Apr 15, 2020
58
5
8
Florida
Hello All,

After upgrading to Version 5 from 4.5 my transcription email stopped working. I get a voicemail to email with an attachment with
Transcription ${message_text} in the end of the email . When I enable the Email queue my email sending stop working. when the email queue is disabled my email gets delivered ( no Transcription).
before the upgrade, everything was working fine and I test IBM URL and all other settings all those seem to be correct

my server information
1663447174939.png

Voicemail settings

1663447308677.png
I did regenerate the new key and url from IBM Cloud.


can someone help me with this? I search This form and google and follow all the steps but no result
Thanks in advance
 

Newbee

Member
Apr 15, 2020
58
5
8
Florida
After looking at the email queue status
I have this. looks like have PHP Fatal error: Uncaught Error. I'm not sure is this the problem. looks like services working

root@switch01:~# systemctl status email_queue
● email_queue.service - FusionPBX Email Queue
Loaded: loaded (/etc/systemd/system/email_queue.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-09-17 16:30:47 UTC; 4h 51min ago
Process: 18471 ExecStartPre=/bin/mkdir -p /var/run/fusionpbx (code=exited, status=0/SUCCESS)
Main PID: 18472 (php)
Tasks: 1 (limit: 4701)
Memory: 33.0M
CGroup: /system.slice/email_queue.service
└─18472 /usr/bin/php /var/www/fusionpbx/app/email_queue/resources/service/email_queue.php

Sep 17 21:22:02 switch01.skypbx php[18472]: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/fusionpbx/app/email_
Sep 17 21:22:02 switch01. php[18472]: Stack trace:
Sep 17 21:22:02 switch01. php[18472]: #0 /var/www/fusionpbx/app/email_queue/resources/jobs/email_send.php(234): transcribe('/var/lib/freesw...'
Sep 17 21:22:02 switch01. php[18472]: #1 {main}
Sep 17 21:22:02 switch01. php[18472]: thrown in /var/www/fusionpbx/app/email_queue/resources/functions/transcribe.php on line 35
Sep 17 21:22:02 switch01.php[18472]: PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/fusionpbx/app/email_
Sep 17 21:22:02 switch01.php[18472]: Stack trace:
Sep 17 21:22:02 switch01. php[18472]: #0 /var/www/fusionpbx/app/email_queue/resources/jobs/email_send.php(234): transcribe('/var/lib/freesw...'
Sep 17 21:22:02 switch01. php[18472]: #1 {main}
Sep 17 21:22:02 switch01. php[18472]: thrown in /var/www/fusionpbx/app/email_queue/resources/functions/transcribe.php on line 35
lines 1-20/20 (END)
 
Last edited:

Newbee

Member
Apr 15, 2020
58
5
8
Florida
Ok got the Email Queue working. But Still No Email delivery when email queue enable
Had to install php7.1-curl, and libcurl4
root@switch01:~# systemctl status email_queue
● email_queue.service - FusionPBX Email Queue
Loaded: loaded (/etc/systemd/system/email_queue.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-09-17 16:30:47 UTC; 5h 8min ago
Main PID: 18472 (php)
Tasks: 1 (limit: 4701)
Memory: 20.1M
CGroup: /system.slice/email_queue.service
└─18472 /usr/bin/php /var/www/fusionpbx/app/email_queue/resources/service/email_queue.php

Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4246'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4248'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4250'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4252'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4254'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4256'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4258'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4260'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4262'; resource
Sep 17 21:38:04 switch01. php[18472]: 'Resource id #4264'; resource
 

UCtech

Member
Jan 9, 2019
36
7
8
This is likely from a fairly recent code change, not v5 in general. It is broken on my test system after the upgrading to the code changes made in the past few weeks? or so. It was working fine with version 5 before that. I did do Debian 10 updates at about the same time, so there is a possibility of something there also, but more likely a code change. My broken system shows V5.03.

On my test system, turning off the email queue results in emails flowing again, but transcription seems to be broken -- no transcription occurs, just a message in the email:

Transcription
${message_text}

Turning the email queue back on results in all the emails just stuck in the queue, including fax emails.
 

Newbee

Member
Apr 15, 2020
58
5
8
Florida
This is likely from a fairly recent code change, not v5 in general. It is broken on my test system after the upgrading to the code changes made in the past few weeks? or so. It was working fine with version 5 before that. I did do Debian 10 updates at about the same time, so there is a possibility of something there also, but more likely a code change. My broken system shows V5.03.

On my test system, turning off the email queue results in emails flowing again, but transcription seems to be broken -- no transcription occurs, just a message in the email:

Transcription
${message_text}

Turning the email queue back on results in all the emails just stuck in the queue, including fax emails.
Hi UCtech,

Yes, This is exactly what happens to me. I did update my OS from 9 to 10 about a month ago no issue that time ( when my fusionpbx is in 4x) this email and voicemail issue started after the V5 update. now I see a few people having email queue issues too. seems like a code bug.
 

Newbee

Member
Apr 15, 2020
58
5
8
Florida
Ok now i see all my email stop working voicemail and fax . nothing goes out . its in the email queue cant send out, when I try to test my smtp its working and sending out.

now I see my emal_queue services also stop and cant start .

anybody can help me on this?
 

NVT

New Member
Feb 23, 2022
8
1
3
36
Yes, this is when everything stops working. soon as you install the email queue email delivery stops
After installing it and following those docs is the default setting for enable email queue set to "true" ?
 

Newbee

Member
Apr 15, 2020
58
5
8
Florida
After installing it and following those docs is the default setting for enable email queue set to "true" ?
Yes it is. but when its set to True all email delivery will stop and setting on the queue. . all my smtp settings are correct.
 

UCtech

Member
Jan 9, 2019
36
7
8
Running 5.04 on my test system. Transcription does not work unless I install/enable the email queue as noted by NVT above. If installed/enabled, it works fine. Using IBM transcription with latest recommended settings from IBM.
Just curious if anyone knows how to automate the cleanup of the email queue as it does not appear to auto delete after sending?
 

ronthompson

New Member
Dec 5, 2021
8
2
3
59
Running 5.04 on my test system. Transcription does not work unless I install/enable the email queue as noted by NVT above. If installed/enabled, it works fine. Using IBM transcription with latest recommended settings fr
Upgraded to 5.0.3 and google transcription stopped working. Rolled back to 4.5.30 and it works.

om IBM.
Just curious if anyone knows how to automate the cleanup of the email queue as it does not appear to auto delete after sending?

Upgraded to 5.0.3 and google transcription stopped working. Rolled back to 4.5.30 and it works.
I found my issue and fixed two of my 5.0.4 servers. And Why I didn't start here?
systemctl status email_queue
sox: not found
apt-get install sox -y
systemctl stop email_queue
systemctl start email_queue
systemctl status email_queue shows no error now
Transcription is working, They are slower to transcribe, like 45-60 seconds than before so wait for it.
 
  • Like
Reactions: akametala

UCtech

Member
Jan 9, 2019
36
7
8
I noticed the slowness also using the queue. Found a setting: Default-Settings-Email Queue-interval which by default is 120 seconds. I tried changing it to 10 seconds and it definitely speeds things up, but not sure if there might be other unintended consequences of making the number low. If anyone else knows please chime in!
 

Newbee

Member
Apr 15, 2020
58
5
8
Florida
Hello All,

This is how I got it to work.

As my server is in the cloud I build a new Debian 11 server and install fusion PBX 5.0.3
then back up my old system ( that upgrade from 4. X to 5.0.3 ) and restore it to the new server. after that, all start to work.

I did upgrade my server from Debian 9 to 10 about a month before the fusion upgrade which may contribute to this transcript and email queue issues
thanks for all that comments
 
Status
Not open for further replies.