Jump to content
  • 0

Trouble With Ticket Import Via Pop3


helix247

Question

Greetings everyone!

 

I am having a problem getting ticket imports to work using a pop3 email account. The email account is located on a cpanel server and the blesta software is on a separate vps.

 

The pop3 account is configured using defaults like no ssl, 110 port, email account / password, and mail.exampledomain.com. I have these same credentials setup in outlook which is working.

 

When the cron task executes for the import, it does not complete. After an hour I get the message about a stalled task on the dashboard. The automation section shows the spinning wheel but no option to kill the task. I have tried rebooting the vps and executing cron tasks manually from inside of blesta . I have also tried disabling and then re-enabling the task.

 

I read on another post that i could go and remove the error from the database, but I think it might be better to first figure out what is causing the issue. The logs inside of blesta don't seem to indicate a problem with the task itself, the just display that it started and finished a few hours later.

 

Any help on how I could trouble shoot this would be greatly appreciated. It is running on a VPS with Ubuntu 14.04, PHP 5.5 and NGINX if that helps at all. I compiled mailparse from source as at first their was a warning that mailparse was required, but after compiling that error no longer exists.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Do you have a firewall? Is port 110 egress open? If it stalls, it may be timing out trying to make the connection. If you have SSH on the server, you can test by running: telnet  mail.yourmailserver.com 110

 

If you get no reply, then it's unable to connect due to a firewall, dns, or other issue on the server.

 

A screenshot of your configuration, with the hostname and username masked may also help us determine if anything looks out of the ordinary with your settings.

Link to comment
Share on other sites

  • 0

Hey Paul,

 

Thanks for the reply. The firewall is disabled for testing on the server running blesta for testing purposes. Telnet connects fine on that port. According to blesta the cron taks has been stuck since 8:00 am or so this morning its now 8:45 p.m. Is there anyway I can see exactly what trouble it is running into? I have attached screenshots of settings minus user/pass/host ; telnet connecting from blesta vps, and cron showing frozen with no additional options.

 

 

post-9280-0-40659300-1425174397_thumb.pn

post-9280-0-13232000-1425174398_thumb.pn

post-9280-0-61858900-1425174398_thumb.pn

 

Thanks!

Link to comment
Share on other sites

  • 0

Download tickets won't try again until it's no longer hung or it's been 6 hours. If it's disabled though, it won't try to run.

 

My suggestion is to enable error reporting in your config file, disable your automatic cron, and then run the cron manually. If there are errors, it would spit them out and hopefully give you more information about the issue.

 

1. To enable error reporting, edit /config/blesta.php and change

 
Configure::errorReporting(0);
 
to
 
Configure::errorReporting(-1);
 
2. Disable your cron
 
3. Run the cron manually under Settings > System > Automation.
Link to comment
Share on other sites

  • 0

In addition to what Paul said, you could check if you do not have old unfinished cron tasks, as if there are, they could froze your cron task

 

 

it's SQL query to run on your blesta database

 

 

found if there is unfinished cron task:
---------------------------------------------------------
SELECT * FROM `log_cron` WHERE `run_id` !=0 AND `end_date` IS NULL ORDER BY `start_date` DESC;


if there is, delete unfinished task:
-------------------------------------------------------
DELETE FROM `log_cron` WHERE `run_id` !=0 AND `end_date` IS NULL ORDER BY `start_date` DESC;

 

 

 

And after that run cron manually from blesta interface

------------------------------------------

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...