Issues generating tickets from emails

Discuss and get help installing, using and configuring SiT!

Issues generating tickets from emails

Postby sreecan » Wed Jun 10, 2009 6:54 am

Hey, I am facing some issues with generating tickets from the emails recieved. I have the settings in place and I have checked with the same settings if I am able to access the mailbox using IMAP, but I am not sure if SiT is able to access the mail box because it does not generate any tickets from the emails. Is there some way I can check if SiT is able to access the mail box and debug? I have tried turning the Debug mode on and checking the error log but I could not find any logs regarding the sending and recieving of emails.The journal says that the email was triggered as it is supposed to but it never reached my SMTP server. Please help...

(Thread moved from the developer forum)
Last edited by ivanlucas on Wed Jun 10, 2009 11:09 am, edited 1 time in total.
Reason: Originally posted in wrong forum
sreecan
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Wed May 20, 2009 11:15 am
Location: Hyderabad, India

Re: Issues generating tickets from emails

Postby ivanlucas » Wed Jun 10, 2009 12:37 pm

Hi,

Make sure that you are running auto.php regularly in a cron (or similar). See http://sitracker.org/wiki/Scheduler#Sch ... quirements

If your cron is working and you have debug and error logging turned on you will see messages appear in the log file.

Hope this helps,

Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

Re: Issues generating tickets from emails

Postby sreecan » Wed Jun 10, 2009 2:08 pm

Hey Ivan, I have actually setup SiT on Windows 2003 Server, is it the same process for setting up the scheduler and the email scraping even in windows?
sreecan
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Wed May 20, 2009 11:15 am
Location: Hyderabad, India

Re: Issues generating tickets from emails

Postby ivanlucas » Wed Jun 10, 2009 2:14 pm

sreecan wrote:Hey Ivan, I have actually setup SiT on Windows 2003 Server, is it the same process for setting up the scheduler and the email scraping even in windows?


You would need to schedule the command php -f c:\sit\auto.php using whatever tools windows provides for scheduling. It's a long time since I used windows but I remember there was a tool called at for scheduling things. You might be best to ask this question amongst other windows users, I'm afraid I'm no longer familiar with what windows has to offer. :-/

Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

Re: Issues generating tickets from emails

Postby sreecan » Thu Jun 11, 2009 11:38 am

Hey Ivan, I tried running auto.php once to check if it runs fine and I got some errors with the defaults.inc.php and I edited the file and hardcoded the settings in the file, now when I run it I din't get the errors with the defaults file but yes the other errors remained and I got one extra error at the end which concerned me...the last one with IMAP. Can you help me with it please


Notice: Undefined variable: _SESSION in C:\wamp\www\sit\lib\strings.inc.php on l
ine 19

Notice: Undefined variable: hmenu in C:\wamp\www\sit\lib\strings.inc.php on line
36

Notice: Undefined offset: 10 in C:\wamp\www\sit\lib\strings.inc.php on line 45

Notice: Undefined offset: 1030 in C:\wamp\www\sit\lib\strings.inc.php on line 6
3

Notice: Undefined offset: 103010 in C:\wamp\www\sit\lib\strings.inc.php on line
81

Notice: Undefined offset: 103090 in C:\wamp\www\sit\lib\strings.inc.php on line
88

Notice: Undefined offset: 1040 in C:\wamp\www\sit\lib\strings.inc.php on line 9
2

Notice: Undefined offset: 20 in C:\wamp\www\sit\lib\strings.inc.php on line 103


Notice: Undefined offset: 2010 in C:\wamp\www\sit\lib\strings.inc.php on line 1
11

Notice: Undefined offset: 2020 in C:\wamp\www\sit\lib\strings.inc.php on line 1
15

Notice: Undefined offset: 2030 in C:\wamp\www\sit\lib\strings.inc.php on line 1
19

Notice: Undefined offset: 203010 in C:\wamp\www\sit\lib\strings.inc.php on line
129

Notice: Undefined offset: 30 in C:\wamp\www\sit\lib\strings.inc.php on line 141


Notice: Undefined offset: 40 in C:\wamp\www\sit\lib\strings.inc.php on line 150


Notice: Undefined offset: 50 in C:\wamp\www\sit\lib\strings.inc.php on line 157


Notice: Undefined offset: 60 in C:\wamp\www\sit\lib\strings.inc.php on line 163


Notice: Undefined offset: 6050 in C:\wamp\www\sit\lib\strings.inc.php on line 1
80

Notice: Undefined offset: 70 in C:\wamp\www\sit\lib\strings.inc.php on line 197


Notice: Undefined variable: _SESSION in C:\wamp\www\sit\lib\strings.inc.php on l
ine 199

Notice: Undefined variable: strChased in C:\wamp\www\sit\lib\strings.inc.php on
line 237

Fatal error: Call to undefined function imap_open() in C:\wamp\www\sit\lib\fetch
SitMail.class.php on line 63
sreecan
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Wed May 20, 2009 11:15 am
Location: Hyderabad, India

Re: Issues generating tickets from emails

Postby ivanlucas » Mon Jun 15, 2009 9:46 am

Hi Screecan,

sreecan wrote:Notice: Undefined variable: _SESSION in C:\wamp\www\sit\lib\strings.inc.php on l
ine 19
[...]


You need to edit your php.ini file (you may find there is a separate php.ini for the CLI (command line) version of php) and set:

Code: Select all
error_reporting = E_ALL & ~E_NOTICE


Cheers,

Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

Re: Issues generating tickets from emails

Postby Bruno Renan » Wed Jun 17, 2009 5:07 pm

Hi Screecan, i have the same problem , i try to configure for pop or imap and in any case i dont have any results the mail cannot be a incident , i use windows 2003 server too and i dont know how to make auto.php run just like a cron do . Can you tell me how you do this????
Bruno Renan
SiT! Contributor
SiT! Contributor
 
Posts: 37
Joined: Thu May 21, 2009 10:58 pm
Location: Brasil

Re: Issues generating tickets from emails

Postby xerosis » Wed Jun 17, 2009 5:49 pm

Bruno Renan wrote:Hi Screecan, i have the same problem , i try to configure for pop or imap and in any case i dont have any results the mail cannot be a incident , i use windows 2003 server too and i dont know how to make auto.php run just like a cron do . Can you tell me how you do this????


It looks like you need to use Scheduled Tasks in Windows.
User avatar
xerosis
SiT! Developer
SiT! Developer
 
Posts: 198
Joined: Sat Jan 24, 2009 10:36 pm

Re: Issues generating tickets from emails

Postby Bruno Renan » Fri Jun 19, 2009 8:14 pm

xerosis wrote:
Bruno Renan wrote:Hi Screecan, i have the same problem , i try to configure for pop or imap and in any case i dont have any results the mail cannot be a incident , i use windows 2003 server too and i dont know how to make auto.php run just like a cron do . Can you tell me how you do this????


It looks like you need to use Scheduled Tasks in Windows.



Well I did run the command and the scheduller still runs , hear we have 3.45v running on the production environment and i have the 3.50v beta1 . after i do
php -f c:\wamp\www\sit\auto.php
in 3.50v I did receive emails by pop and imap but in 3.45v i do the same thing and i cant recieve any mail. is the other way to make this work??? or i can edit the config file for mail , if yes what is the file????
Bruno Renan
SiT! Contributor
SiT! Contributor
 
Posts: 37
Joined: Thu May 21, 2009 10:58 pm
Location: Brasil

Re: Issues generating tickets from emails

Postby ivanlucas » Mon Jun 22, 2009 9:45 am

Hi Bruno,

Bruno Renan wrote:in 3.50v I did receive emails by pop and imap but in 3.45v i do the same thing and i cant recieve any mail. is the other way to make this work??? or i can edit the config file for mail , if yes what is the file????


Incoming email is an experimental feature and is likely tol remain so for version 3.50, it's something that we know won't work for everyone (yet), while we encourage you to try it we can't guarantee it will work for you (well, we can't guarantee anything will work for you, this is open source ;) ).

If you configure Debug Logging, you should find some messages in your log file that give a hint to where the incoming mail is failing. This might help you to work out what is going wrong. Personally I think you'd be best to wait for 3.50 to be released, it wont be long now I hope.

All the best,
Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK


Return to Installing, Configuring and Using SiT!

Who is online

Users browsing this forum: No registered users and 2 guests

cron