Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Windows service problem - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
RCDAwebmaster
#1 Posted : Thursday, June 16, 2016 2:06:55 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
My web server had to be rebuilt. As part of that rebuild, I had to reinstall SearchUnit. I've reinstalled the code to the site and the search feature is working fine.

I configured the windows service to index the site every day at 1am. When the service finished indexing, It should optimize and email me when complete. I am not receiving those emails. I am however seeing that the indexing is running as the files in the index directory have times of 1:38 am and 2:36 am.

Since I am not receiving the email, I configured the service to generate the txt files so I could see what is going on. I looked at the file 'KEYOTI_WINDOWS_SERVICE.txt' and saw the following:

06/16/2016 01:00 Reimport started
06/16/2016 03:28 Service task (#0) started on index directory: C:\inetpub\wwwroot\production\Keyoti_SearchEngine_Web_common\Keyoti_search_index
06/16/2016 03:28 Start hour is set for 1 in configuration.xml
06/16/2016 03:28 The first crawl/build should be performed after 1291.26826 minutes

I do not see any entries with regards to optimization or the sending of email. What might I need to change in my configuration to get those 2 things to occur?
Jim
#2 Posted : Thursday, June 16, 2016 5:44:54 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Would you be able to email all txt files from the index directory to me via support @ keyoti.com You may also be able to attach files to your post if you're sure they don't have sensitive info in them.

By the way, did you use the trigger now button, because there has been a bug that would cause that to mess up timing, although your timing looks fine...

Jim
-your feedback is helpful to other users, thank you!


RCDAwebmaster
#3 Posted : Thursday, June 16, 2016 6:22:18 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
I initially used the button to import an initial load of the index. I knew that would cause the indexing to skip the 1am indexing time because 24 hours had not passed since the last indexing. Therefore, I stopped and restarted the windows service. As expected the indexing occurred at 1am.

I m sending you the files via email.

Mike
RCDAwebmaster
#4 Posted : Friday, June 17, 2016 4:07:51 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
I checked the txt files today and everything seems to be working except the sending of email.


06/17/2016 01:00 Reimport started
06/17/2016 03:33 Reimport finished
06/17/2016 03:33 Optimize started
06/17/2016 03:33 Optimize finished
06/17/2016 03:34 Service task (#0) couldn't send email: Failure sending mail. at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Keyoti.SearchEngine.WindowsService.Task.SendEmail(String subject, String body, Configuration Configuration, Int32 id)

I thought the code was saying that there is a problem with the configuration file in the index directory. I checked the configuration using the Index Management tool and could find no errors. How do I fix this so email sends?
Jim
#5 Posted : Friday, June 17, 2016 5:58:52 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
That's good. Ok, so you rebuilt the server and now SU cannot send email. Have you double checked the SMTP email settings?

It's going to be tricky if it just cannot connect to the SMTP server, because there could be a few network issues preventing that, besides incorrect port, host name etc, there are firewall issues.


http://stackoverflow.com...from-remote-mail-server

One thing you can do is get on the server and use telnet to try to connect to the SMTP server

https://technet.microsof...p;MSPPError=-2147217396

Sorry I can't think of anything obvious that could be wrong...

Jim
-your feedback is helpful to other users, thank you!


RCDAwebmaster
#6 Posted : Monday, June 20, 2016 2:30:27 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
I've tried removing the settings for email and telling the service to not send email. I then turned the email feature on and re-entering the settings. I'm still not getting any emails. Additionally, I tried a website that allowed me to test my settings and I received a test email. I then checked the windows service log file and it is failing every day with the same error as the one I posted the other day.

I then re-read your message and realized that you mentioned network problems. I then tried pinging the server and got no response. That confirms that for some reason, I am unable to reach the server even though I have correct settings to send email.

I will talk to a network admin and see if we can resolve this.

Thanks for the help.



Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.