Not sure where to start looking to fix. But crawler is working or trying to work.. yipee, half way home, lol.

; Information added by drupal.org packaging script on 2009-08-21
version = "6.x-1.x-dev"
core = "6.x"
project = "boost"
datestamp = "1250856404"
(downloaded Aug 29th, 2 am)

directory permissions 755

caching html, gz, css, js --all seem to be fine

URL, www.bexleymarine.com
Boost is producing cached files upon request.
Repeats the same actions for every cron run.

Drupal Db log:
access denied 08/29/2009 - 5:18pm boost-crawler Anonymous
boost 08/29/2009 - 5:18pm Crawler Start Anonymous
boost 08/29/2009 - 5:18pm Expired stale files from static page cache. Anonymous

no errors in server log.
apache, Debian
Mysql, 5.0.45
PHP, 5.2.2

any hints as to where to look would be great awesome

Comments

mikeytown2’s picture

Here's my guess...
Crawler grabs all url's from your url_alias table, inside that are some non-published url's that also have an alias. Crawler hit's it and gets a 403 as expected. Can you check to see if this is the case; is the access denied message legitimate? Looks like I need to make the url_alias table import only get published url's.

dbeall’s picture

StatusFileSize
new1.66 KB

could this be from the robots file?

addition info: normal install, single domain, shared host, installed in root.
running poormanscron.dev

edit: I will have a look, but I am almost positive all aliases are published and available to all users

mikeytown2’s picture

eh scratch that... for some reason the menu hook is not working for anonymous users.

access callback inside boost_menu() isn't happy...

Try doing a flush_all_caches on the performance page at the bottom.

dbeall’s picture

There was one page not published as it was a base path for views tabs page, changed it to published. Have cron set to every hour for now, will see.

dbeall’s picture

flushed caches on performance page. you want in there...

dbeall’s picture

still same result:
Db log:
access denied 08/29/2009 - 7:42pm boost-crawler Anonymous
boost 08/29/2009 - 7:42pm Crawler Start Anonymous
boost 08/29/2009 - 7:42pm Expired stale files from static page cache. Anonymous

user 08/29/2009 - 6:24pm Session closed for batman. batman (this is last log out)
boost 08/29/2009 - 6:24pm Flushed ALL files from static page cache. batman (cleared cache performance page)
content 08/29/2009 - 6:22pm page: updated Service BASE PAGE. batman view (set page to published)

mikeytown2’s picture

would you mind running this in a php block?

echo db_result(db_query("SELECT access_callback FROM {menu_router} WHERE path LIKE 'boost-crawler'"));

It should return 1

dbeall’s picture

I put it in a block, on front page rt, bottom.. It just shows the php code.. howto?

mikeytown2’s picture

Input format should be PHP code. Select below the text area

mikeytown2’s picture

you might have to enable the php filter, on the module page

dbeall’s picture

I added an input format as php with no filters, block shows, but no code and no characters.
..never have used php format,.. am i doing something wrong... can you say noob...

edit... ok module page...

mikeytown2’s picture

ok that means for some reason that didn't get set right... Can your try pressing the 'Clear cached data' button at the bottom of the performance page again? Then check the output from the block again.

dbeall’s picture

damit. added module, shows php code selection, selected. now block shows nothing or no block

mikeytown2’s picture

Do this to keep your self sane. It should print output before the result from the database.

echo 'output: ' . db_result(db_query("SELECT access_callback FROM {menu_router} WHERE path LIKE 'boost-crawler'"));
dbeall’s picture

cleared cache, php input format is set to default, all users, no block shows.

mikeytown2’s picture

what region is the block located in? footer is a good place.

dbeall’s picture

out put==1
.. I hate being stupid...

mikeytown2’s picture

go ahead and disable the block, the database has the correct setting. Run cron and let me know; after this I'll have to think of another reason why it wouldn't be working. I hoping the 'Clear cached data' this time did the trick. It's now in my list of things to do #563408: flush all caches before releasing RC3

dbeall’s picture

block is right, bottom, front page.. not an issue, my client(friend) is just tickled...

dbeall’s picture

ok, back to normal... This is not a priority, as in this second... a work in progress.
Did I say thank you...

dbeall’s picture

cleared all caches, including the performance page and ran manual cron before logout.

dbeall’s picture

don't know if this would help, I do have access to set php.ini
I assume clearing Boost database(clean boost database, use caution) is left as is or(not cleared)

mikeytown2’s picture

yeah you don't need to clear the boost database

dbeall’s picture

update, no change.
cron 08/29/2009 - 10:13pm Cron run completed (via poormanscron). Anonymous
cron 08/29/2009 - 10:13pm Cron run completed. Anonymous
warning access denied 08/29/2009 - 10:13pm boost-crawler Anonymous
boost 08/29/2009 - 10:13pm Crawler Start Anonymous
boost 08/29/2009 - 10:13pm Expired stale files from static page cache.

Thank You.
Will be checking out your new stuff tomorrow..

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new965 bytes

here is the patch. going to commit it, so it should be in the latest dev

mikeytown2’s picture

once this issue if fixed, expect RC3 :)

dbeall’s picture

been up sudo-ing all night(lol), finally got my first networked linux(lamp) server running(rough, but running)named it DRU.
by the time i get sleep, your commits will be cycled or i will apply patches where needed.
-The php(block) server test you did, checks to see that mysql is responding properly to boost? yes.
I noticed this was the URL listed in details at access denied time, http://bexleymarine.com/boost-crawler?nocache=1

mikeytown2’s picture

@dbeall, have you tried the latest dev yet?
ps this is how I do it with XAMPP
http://drupal.org/node/505974

dbeall’s picture

well, still getting same result, access denied. It just has me thinking that I am doing something wrong. ?
You know what they say, It's not the computer, It's the idiot using it(that would be me).

mikeytown2’s picture

@dbeall
what modules are installed? Out of those what has to do with access control?

$result = db_query('SELECT name FROM {system} where status = 1');
while ($output = db_result($result)) {
  echo $output . "<br>\n";
}
dbeall’s picture

have block visible www.bexleymarine.com front page, rt side, bottom. No access controls that I am aware of other than core permissions(which are mostly open to all). There are only 2 auth users, admin(me) and the business owner.

also running test on my site db.com

dbeall’s picture

This may or may not be an issue:
noticed that the access denied has my host IP address listed.. Is there a way to assign an IP other than the host for crawler?
Trying this:
I have set an 'allow host rule' in the Drupal access settings and added the host IP address into htaccess for 'allow'.
It has to be something, because it faithfully tries at each cron run.

dbeall’s picture

nope, adding rules to allow host IP address didn't do anything.

mikeytown2’s picture

StatusFileSize
new920 bytes

K figured it out... now I need a solution. Your guesses at the IP address where correct, but for another reason. I do a test to make sure the crawler can only be called by its self, which does a simple IP address comparison. Your server doesn't set the $_SERVER['SERVER_ADDR'] variable. I might end up doing something similar to a cron key, thats now in drupal 7 core, in order to protect access from outsiders http://api.drupal.org/api/function/system_update_7001/7. I should also put in a test on the requirements page to make sure drupal allows access to this url.

Attached is a patch that removes this logic, but it's not the correct solution. It's a way to confirm that this is the problem. Apply the patch or remove-manually/comment-out the 4 lines and let me know if this fixed it.

mikeytown2’s picture

Title: all normal, crawler starts, then access denyed » all normal, crawler starts, then access denied
StatusFileSize
new4.4 KB

this should do it

dbeall’s picture

Status: Reviewed & tested by the community » Needs review

!!! You nailed it !!!
mikeytown2 == Boost Drupal PHP server wizard

mikeytown2’s picture

Status: Needs review » Reviewed & tested by the community
mikeytown2’s picture

Status: Needs review » Fixed

committed

dbeall’s picture

Possibly the final post here, and it should read something like this;
Thank You mikeytown2 for your patients, persistence, goals, knowledge and know-how.
The developers do play a huge role in making Drupal the best it can be, what a crowd.
Boost is awesome, get yours today!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.