I'm getting a strange error intermittently on cron run:

Referrer URI:
User:         (0)
Link:
Message:
Error occurred submitting sitemap to !engine: !code.

Not quite sure how to troubleshoot this, or if it's a bug...

Comments

Anonymous’s picture

Component: Code » xmlsitemap_engines.module
modctek’s picture

This might be related to the error in my logs:

Message Error occurred submitting sitemap to Ask.com: -111.

I've disabled the Ask.com search engine submission to see if the errors subside.

modctek’s picture

Disabling submission to Ask.com fixed the recurring errors on my site. I'm hesitant to change this to "bug" status, but I can reproduce on at least one other website that is running the same code. Anyone else having trouble with submitting sitemaps to Ask.com?

avpaderno’s picture

Effectively, the code is not doing something correctly, at least for the fact that the message error should not be "Error occurred submitting sitemap to !engine: !code."; the error message you see should be "Error occurred submitting sitemap to Ask.com: -111." (similarly to the error message you see in Drupal log).

I still don't understand why there are two error messages, and only one is not correctly shown; the code present in xmlsitemap_engines_submit_sitemap() simply calls watchdog().

avpaderno’s picture

Status: Active » Postponed (maintainer needs more info)

Was the -111 error intermitent?
If the error was always shown, it means that the module is trying to connect to a URL that is not anymore valid, or that should not used anymore (-111 means "Connection refused").

Anonymous’s picture

Issue tags: +Release blocker
nemsis’s picture

I get almost the same error in my logs except the error code number and the fact that I get it on EVERY submission.

"Error occurred submitting sitemap to Ask.com: -61."

I have tried searching for information on this error code but I couldn't find anything useful.
Interesting that both errors come from "Ask.com".

avpaderno’s picture

The negative error number returned by drupal_http_request() is the error code returned by a low level function, with the sign changed; you can find a list of errors on Linux System Errors. In the specific, 61 means "no data available".

Both the errors could mean there are problems on connecting to the server used to submit the sitemap to Ask.com because a problem on server side, or because a problem on client side; it's not actually possible to understand that only from the error code returned by drupal_http_request().

avpaderno’s picture

I tried connecting to http://submissions.ask.com using a browser, and I got the following error message: Safari can’t open the page “http://submissions.ask.com/” because Safari can’t connect to the server “submissions.ask.com”.
It seems they have problems with the server, or the URL is not anymore the one to use to submit the sitemaps to Ask.com.

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Fixed
Issue tags: -Release blocker

http://about.ask.com/en/docs/about/webmasters.shtml#22

The SeaMonkey browser shows

Failed to Connect
          

The connection was refused when attempting to contact submissions.ask.com.
        

Though the site seems valid, the browser was unable to establish a connection.
modctek’s picture

I've also received this error when submitting to Yahoo. I forgot to mention in the original post that the error is coming via email sent by the "Email Logging and Alerts" module. Maybe the "!engine" and "!code" snippets are assuming proper implementation of the "Token" module (which is also enabled on my site).

Emailed error alert:

Site:         http://www.calabasasdogwalker.com
Severity:     (3) Error
Timestamp:    Tue, 2009-07-14 20:02
Type:         xmlsitemap
IP Address:   216.129.119.13
Request URI:  http://www.calabasasdogwalker.com/content/6-3-09-rescue-alert-mango
Referrer URI:
User:         (0)
Link:
Message:

Error occurred submitting sitemap to !engine: !code.

Watchdog alert:

Type	xmlsitemap
Date	Tuesday, July 14, 2009 - 20:02
User	Anonymous
Location	http://www.calabasasdogwalker.com/content/6-3-09-rescue-alert-mango
Referrer	
Message	Error occurred submitting sitemap to Yahoo!: 403.
Severity	error
Hostname	216.129.119.13
avpaderno’s picture

http://about.ask.com/en/docs/about/webmasters.shtml#22 takes to a page where the first words I read are "Q: Why aren't the pages the Ask crawler indexed showing up in the search results at Ask.com?". I am not sure how that is related with the problem reported here.

EDIT: I also tried to insert a complete submission URL (which included the URL of the sitemap to submit) in a browser, but the error has been the same. The real problem is that the server is not replying to any requests.
Their web site don't report any changes in the URL to use to submit a sitemap, nor that they are having any problems with the server.

Anonymous’s picture

Title: Strange Error on cron run » Incorrectly formatted error message on engine submit.
Category: support » bug
Status: Fixed » Active
Issue tags: +Release blocker

@Kiam: The html attribute id="22" is "Q: Does Ask.com support sitemaps?".

@modctek: Yahoo will give you access denied if you submit too often. I've experienced this with my own site.

The errors received from the documented methods for pinging the servers are not bugs for xmlsitemap.

The ill formatted error message is though, so I'm changing the issue attributes to reflect that.

avpaderno’s picture

@earnie: Thanks for the help; that was not what I was seeing as first text.

The link to the page doesn't report any changes to the submission URL; I would rather think the problem originally reported here is caused by some problems they are having with their server (and XML sitemap can do nothing, in such cases).

If I understood well what reported about the error message, XML sitemap doesn't have any bug. See #11, where modcteck says:

I forgot to mention in the original post that the error is coming via email sent by the "Email Logging and Alerts" module.

The problem is then with "Email Logging and Alerts", which seems to report in an email the error messages the modules emit through watchdog().

dave reid’s picture

Status: Active » Closed (won't fix)

The problem with the Logging and alerts module is a known issue in the latest official release but has been fixed in the development build.
#303369: log message in email without variables

Since the original reported issue is not a problem with XML sitemap, I'm marking as won't fix. Please file new issues for the ask.com error codes since those are not technically incorrectly formatted error messages.

Anonymous’s picture

Issue tags: -Release blocker