[back] [Abstract] [Copyright Notice] [Contents] [next]

Smart Cache Manual - Chapter 10
Troubleshooting


10.1 Browsing problems

I get the following error: 403 Forbidden by rule If I disable the proxy in Netscape and set it for direct Internet connection, the page loads with no problem. How can I fix this?
See section URL blocking, section 5.6

I sometimes find SmartCache alters the behavior of some pages; to be sure, I then disable the proxy setting in Netscape and get a different result. Could this be related to Java programs within the page?
Smart Cache do not alter received pages/data in any way; It changes just HTTP headers (when sending to server or to client). If you see different page, it means that remote server sent you a different page. Right question is: ,,why server send me a different page?''

Why server sent me a different page when I am using Smart Cache?
Because Smart Cache modified HTTP request from your browser. The biggest effect on sending different pages has User-Agent: header. If you are using fake_user_agent disable it, if it do not helps, set append_via 0 also.

Which configuration options affects modifing my requests?

  1. fake_user_agent changes your web browser identity. Some server sends slightly modified versions of pages to some browsers. [6]

  2. append_via If fake user agent is NOT used, this controls appending "via Smart Cache X.YY" to User-Agent: header.

  3. remove_pragma_no_cache When set, 'Pragma' header will be deleted in outgoing requests. (Increases sucessfull IMS hit rate)

  4. referer_hack dynamicaly changes referer header.

  5. fake_referer changes Referer header to specified String. If fake_referer is used, referer_hack is ignored.

  6. fake_cookie and cookies filter can replace/remove cookies.

Reloads in my browser don't work anymore!
Look at directive default_refresh_pattern. First number is for ignoring reload requests. If there is bigger number than zero, reloads of younger page than that are forbidden. If you don't want to ignore reload requests, set it to zero, but better is to use some small value, such as 1-3 minutes for avoiding reloads forced by browser itself. [7]

Automatic dialing does not work any more. How do I fix it?
Some browsers (such as MSIE-4) can be configured to dial your ISP automatically when you click on a link, but this feature gets disabled if you specify a proxy running on your own computer (with address localhost or 127.0.0.1) because these addresses don't require dialing. Smart Cache knows nothing about dialing, so it doesn't work. To make automatic dialing work, make up a name such as smart.cache and use it in the proxy settings instead of localhost, and then add 127.0.0.1 smart.cache to file c:\windows\hosts (if there already is a line beginning with 127.0.0.1, just add smart.cache at the end of it.) This should also work with Netscape Communicator 4 on machines where IE-4 has been installed.


10.2 Start up problems

I got message "Command not found" from OS.
Add Java runtime directory to your PATH if it was not done by Java installation program. See also Checking the Java installation, section 3.4

I got message "Class not found" from Java runtime.

  1. Are .class files in your current directory?

  2. Do you unpack scache.zip with utility with long names support?

  3. Are .class files located on disk, which supports long names?

  4. Do not write .class extension when running smartcache. DO NOT RUN java scache.class !

  5. Do you have at least Java 1.1 version ? Type java -version for report.

  6. If you are using OS/2, Smart Cache will not operate on FAT drives.
See also Generic installation from .zip file, section 3.6

Smart Cache ends with fatal error Can not bind to my port

This may be caused by one of following things: [8]

  1. Smart Cache is already running or

  2. Other application runs on the Smart Cache port. Try telnet to it. If you do not get Connection refused. error, change port in configuration file.

  3. Address specified as BindAddress is not your local IP address. [9]

  4. You do not have the loopback interface configured. Type: ifconfig lo 127.0.0.1


10.3 Memory usage problems

Java runtime eats too much of my memory!
add -ms1m (start JVM with 1MB memory pool) option, before scache to command line for invoking java interpreter. If this do not helps too much, try different Java runtime.

Java uses on my Linux much more memory than written in this document.
It is normal. Java tries to use free memory when it is available. If this memory will be required by other applications kernel just swaps it out and it will be never (rarely) loaded back. For forcing kernel to do that (free memory is good for dynamic disk cache) use some utility, such as my swapout, which allocates all available physical memory, touches this memory and exits.


10.4 Run time problems

I can't connect to Smart Cache from other computers!
See Setting the bindaddress, section 6.8


[back] [Abstract] [Copyright Notice] [Contents] [next]
Smart Cache Manual
0.44
Radim Kolar hsn@cybermail.net