search.php on line 446 generating not permitted warning

Come here for help or to post comments on Sphider
Post Reply
captcurrent
Posts: 23
Joined: Mon May 31, 2021 5:48 pm

search.php on line 446 generating not permitted warning

Post by captcurrent »

When I attempt to do a search on images I get some results and and get these warnings
Warning: unlink(/tmp/echogs-438f11.o): Operation not permitted in /usr/local/www/kasdivi.com/sphider/search.php on line 446

Warning: unlink(/tmp/ecp.doRIzzVi): Operation not permitted in /usr/local/www/kasdivi.com/sphider/search.php on line 446

Warning: unlink(/tmp/ecp.uZC3PLl7): Operation not permitted in /usr/local/www/kasdivi.com/sphider/search.php on line 446

Warning: unlink(/tmp/mysql.sock.lock): Operation not permitted in /usr/local/www/kasdivi.com/sphider/search.php on line 446

Warning: unlink(/tmp/portmasterfail.txt): Operation not permitted in /usr/local/www/kasdivi.com/sphider/search.php on line 446

Warning: unlink(/tmp/portoptions.cqVVs41o): Operation not permitted in /usr/local/www/kasdivi.com/sphider/search.php on line 446

Warning: unlink(/tmp/theoceanwindow.com.conf): Operation not permitted in /usr/local/www/kasdivi.com/sphider/search.php on line 446
From the search I assume the image search uses the image name

Jason
User avatar
captquirk
Site Admin
Posts: 168
Joined: Sun Apr 09, 2017 8:49 pm
Location: Arizona, USA
Contact:

Re: search.php on line 446 generating not permitted warning

Post by captquirk »

Using the index that I build for the site, and doing a search for all images (*), the first ten results show these files in sphider/tmp:
-rw-r--r-- 1 www-data www-data 60024 Jun 14 13:58 DSC_7048-2.jpg
-rw-r--r-- 1 www-data www-data 80744 Jun 14 13:58 IMG_0081.jpg
-rw-r--r-- 1 www-data www-data 57486 Jun 14 13:58 kasdivilogo.gif
-rw-r--r-- 1 www-data www-data 246384 Jun 14 13:58 'lghthouse%20(6%20of%206).jpg'
-rw-r--r-- 1 www-data www-data 76395 Jun 14 13:58 P3090052.jpg
-rw-r--r-- 1 www-data www-data 56427 Jun 14 13:58 P4140012-2.jpg
-rw-r--r-- 1 www-data www-data 95475 Jun 14 13:58 P4160041.jpg
-rw-r--r-- 1 www-data www-data 89361 Jun 14 13:58 P4270020-2.jpg
-rw-r--r-- 1 www-data www-data 87363 Jun 14 13:58 P5180011-2.jpg
-rw-r--r-- 1 www-data www-data 82692 Jun 14 13:58 P8310008.jpg
-rw-r--r-- 1 www-data www-data 7414 Jun 14 13:58 thumb_2613.gif
-rw-r--r-- 1 www-data www-data 51711 Jun 14 13:58 thumb_2614.gif
-rw-r--r-- 1 www-data www-data 36723 Jun 14 13:58 thumb_2615.gif
-rw-r--r-- 1 www-data www-data 56025 Jun 14 13:58 thumb_2616.gif
-rw-r--r-- 1 www-data www-data 49583 Jun 14 13:58 thumb_2617.gif
-rw-r--r-- 1 www-data www-data 66069 Jun 14 13:58 thumb_2618.gif
-rw-r--r-- 1 www-data www-data 54213 Jun 14 13:58 thumb_2619.gif
-rw-r--r-- 1 www-data www-data 50756 Jun 14 13:58 thumb_2620.gif
-rw-r--r-- 1 www-data www-data 32153 Jun 14 13:58 thumb_2621.gif
-rw-r--r-- 1 www-data www-data 36186 Jun 14 13:58 thumb_2622.gif
The first 10 files listed are the retrieved images, and the next 10 are the thumbnail versions of the same. The number after "thumb_" is system generated.
When the next page of results is prepared, all these files are deleted. That's how it is SUPPOSED to work, anyway.

What I see with what you posted, these are text files, configuration files, object files, lock files... but no image files!
What the he.. double-hockey-stick?

A clue might be the the unlink files have a path "/tmp/---". I would expect a (relative) path of "tmp/---" or "/usr/local/www.kasdivi.com/sphider/tmp/---" (full path).

Thinking as I type... is it possible that somehow the system /tmp directory is being accessed? Look in your /tmp (the one off of root, /) and see if those file names exist there.

If that is the case, we have to figure out why that is being referenced and not the (relative to sphider) "./tmp". Looking at the code, the ./tmp should be the one referenced, but your errors are not showing any image files...

Th8s is most curious. If these were truly the correct files (image files), then I would suspect a permissions problem, but this! If somehow /tmp is being referenced, I could understand not having permission!

Let's confirm just WHERE these files reside, then go from there.
captcurrent
Posts: 23
Joined: Mon May 31, 2021 5:48 pm

Re: search.php on line 446 generating not permitted warning

Post by captcurrent »

This was a self inflicted wound. Path was wrong. When I corrected it I cleaned everything but o now the index hangs
And here we sit
Continuing suspended indexing.
[Back to admin]
Spidering http://kasdivi.com/

Disallowed files and directories in robots.txt:
http://kasdivi.com/cgi-bin/
http://kasdivi.com/tmp/
http://kasdivi.com/junk/
http://kasdivi.com/templates/

Images will be indexed

1. Retrieving: http://kasdivi.com/ at 10:45:29.
already in database
2. Retrieving: http://kasdivi.com/beachguide.html at 10:45:29.
already in database
3. Retrieving: http://kasdivi.com/index.html at 10:45:29.
Size of page: 19.77kb. Starting indexing at 10:45:29. Page is a duplicate.
Links found: 0. New links: 0
4. Retrieving: http://kasdivi.com/pages/beachdiving/Beachdiving.html at 10:45:29.
Size of page: 18.97kb. Starting indexing at 10:45:29.
Indexed
Image 1. Retrieving: http://kasdivi.com/images/beachguide/general/notme.jpg at 10:45:29.
resume again and
Spidering http://kasdivi.com/

Disallowed files and directories in robots.txt:
http://kasdivi.com/cgi-bin/
http://kasdivi.com/tmp/
http://kasdivi.com/junk/
http://kasdivi.com/templates/

Images will be indexed

1. Retrieving: http://kasdivi.com/pages/beachdiving/Beachdiving.html at 10:51:22.
already in database
2. Retrieving: http://kasdivi.com/pages/Bonaire/2021/i ... e2021.html at 10:51:22.
already in database
3. Retrieving: http://kasdivi.com/pages/Bonaire/2021/U ... April1.php at 10:51:22.
Size of page: 15.85kb. Starting indexing at 10:51:22.
Indexed
Image 1. Retrieving: http://kasdivi.com/images/indeximages/2 ... 310008.jpg at 10:51:22.
significantly different locations

also tried a third time
Spidering http://kasdivi.com/

Disallowed files and directories in robots.txt:
http://kasdivi.com/cgi-bin/
http://kasdivi.com/tmp/
http://kasdivi.com/junk/
http://kasdivi.com/templates/

Images will be indexed

1. Retrieving: http://kasdivi.com/pages/beachdiving/Beachdiving.html at 10:54:25.
already in database
2. Retrieving: http://kasdivi.com/pages/Bonaire/2021/i ... e2021.html at 10:54:25.
already in database
3. Retrieving: http://kasdivi.com/pages/Bonaire/2021/U ... April1.php at 10:54:25.
already in database
4. Retrieving: http://kasdivi.com/pages/Bonaire/2021/U ... April2.php at 10:54:25.
Size of page: 15.85kb. Starting indexing at 10:54:25.
Indexed
Image 1. Retrieving: http://kasdivi.com/images/indeximages/2 ... 0012-2.jpg at 10:54:25.
Thoughts??
User avatar
captquirk
Site Admin
Posts: 168
Joined: Sun Apr 09, 2017 8:49 pm
Location: Arizona, USA
Contact:

Re: search.php on line 446 generating not permitted warning

Post by captquirk »

Indexing hangs are a thorn in my side! It seems the causes vary from setup to setup.
There have been cases where it seems to be a web server configuration issue, cases where MySQL (or MariaDB) settings were an issue.
Shared hosting has been an issue.
Then I've had scenarios when NONE OF THE ABOVE applied!

I wish there were a magic bullet. There isn't.

Things you can try:
Go to the "Clean Tables" tab. If there are entries in the "temp" and/or "temp2" tables, clear them. Then attempt to Reindex.

On the "Database" tab, if the "pending" table is not zero, this indicates a "suspended indexing" condition and not a actual hang. There was an interruption, but it was a clean interrupt and it should be possible to "Continue" without issue.

If hangs (Sphider just up and quits responding) continue to be an issue, the enable error reporting in all pertinent modules --- admin.php, spider.php, and messages.php. Then keep an eye on the system PHP error log. Watch the SQL error log also. The goal is to try to figure out just WHAT is happening when there is a hang...
captcurrent
Posts: 23
Joined: Mon May 31, 2021 5:48 pm

Re: search.php on line 446 generating not permitted warning

Post by captcurrent »

I was kind of surprised by this issue. You had been able to index. I had had one semi successful index session then this
I had not made any changes to sphider,,BUT i had added the GD module to php. Guess this does not play well with sphider

There is a magic bullet.. Turned off indexing of images and everything has seem to work.. For me this is not a great loss. My images have generic names as is the ALT tag. So there really isn't much to find in my more recent years


Thanks again
User avatar
captquirk
Site Admin
Posts: 168
Joined: Sun Apr 09, 2017 8:49 pm
Location: Arizona, USA
Contact:

Re: search.php on line 446 generating not permitted warning

Post by captquirk »

Curious. My installation does have the gd module installed, but I don't THINK I use any of its functions. Of course, the only way I could know that for sure is to disable it and see if any errors pop up.
Sphider is able to index and search images without Imagick, but there would be no way to calculate unknown sizes or display thumbnails... In other words, it would be pretty lame!

Of course, the MAIN objective of Sphider is to index the text content of a site. Beyond that, it is just bells and whistles. And if Sphider is performing its main objective well, I guess we should not complain. Nevertheless, I am here if you need me, even for the bells and whistles...
captcurrent
Posts: 23
Joined: Mon May 31, 2021 5:48 pm

Re: search.php on line 446 generating not permitted warning

Post by captcurrent »

dash my hopes. Thought it was he GD. oh well I have a LOT of work to do...
Post Reply