-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Magento CE 1.7 There has been an error processing your request #144
Comments
Where exactly are you seeing that error? Is it coming from a page load or is it just stuck in the middle of a page (which means it's coming from an ESI request)? |
I'm getting this error from main page to any page. Frontend & backend. I can't login to the backend neither. Tried to reinstall numerous time but same error coming out. |
@maurisource You have cleared all caches? Primarily the config cache (or just empty your |
It looks like you're using the Magento Compiler, as a test can you try disabling it by commenting out this line in define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src'); (You can comment it out by putting a |
Ok, turned off compiler and i'm able to access the config panel. After reading your config guide + FAQ I'm trying now for the past hours to fix this problem:
I don't understand if it's an error related to the key or communication to Varnish installed on my server? My config is as follow: /etc/sysconfig/varnish ## Alternative 3, Advanced configuration
#
# See varnishd(1) for more information.
#
# # Main configuration file. You probably want to change it :)
VARNISH_VCL_CONF=/etc/varnish/default.vcl
#
# # Default address and port to bind to
# # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
# # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
# VARNISH_LISTEN_ADDRESS=
VARNISH_LISTEN_PORT=80
#
# # Telnet admin interface listen address and port
VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
VARNISH_ADMIN_LISTEN_PORT=6082
#
# # Shared secret file for admin interface
VARNISH_SECRET_FILE=/etc/varnish/secret
#
# # The minimum number of worker threads to start
VARNISH_MIN_THREADS=1
#
# # The Maximum number of worker threads to start
VARNISH_MAX_THREADS=1000
#
# # Idle timeout for worker threads
VARNISH_THREAD_TIMEOUT=120
#
# # Cache file location
VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
#
# # Cache file size: in bytes, optionally using k / M / G / T suffix,
# # or in percentage of available disk space using the % suffix.
VARNISH_STORAGE_SIZE=1G
#
# # Backend storage specification
VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
#
# # Default TTL used when the backend does not specify one
VARNISH_TTL=120
#
# # DAEMON_OPTS is used by the init script. If you add or remove options, make
# # sure you update this section, too.
DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
-f ${VARNISH_VCL_CONF} \
-T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
-t ${VARNISH_TTL} \
-w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
-u varnish -g varnish \
-S ${VARNISH_SECRET_FILE} \
-s ${VARNISH_STORAGE}" default.vlc: this is the only uncommented line backend default {
.host = "127.0.0.1";
.port = "8080";
} Screenshot of Varnish settings in Magento. I would appreciate your guiding in my configuration so that I can run this website with Turpentine & Varnish correctly setup. |
That all looks correct, assuming the Varnish Authentication Key value is correct. DId you get that from the contents of |
@aheadley Yes, I did get that from /etc/varnish/secret and have input it in the Varnish Authentification Key field as you can see with a \n at the end as advised. So I don't understand the Failure error.. |
When applying Varnish config in Cache Management I get: Failed to apply the VCL to 127.0.0.1:80: Varnish admin socket timeout |
@aheadley Hey Alex, does the configuration generated by Turpentine should replace the default.vcl located in /etc/varnish/default.vcl perhaps? |
Strange, can you send the output of
That is a different problem. It looks like you changed the entry in the Server List setting to use port 80. The host/port in Server List should be the Varnish Management interface (it's correct in your screenshot). The Backend Host and Backend Port settings should point to your backend webserver (Apache/Nginx/etc).
It can, and once you get it working I would recommend doing that but Turpentine must be able to talk to Varnish over the management port or it won't be able to purge the cache entries that it needs to. |
Strange, can you send the output of hexdump -C /etc/varnish/secret (you will probably need to run this as root/with sudo). Here's the output:
Ok in my case the backend port is 8080 as follows so I changed it back to that value: backend default {
.host = "127.0.0.1";
.port = "8080";
} At this point I'm still having the same error message:
Hopefully you can find a solution.. |
Update: by removing the \n in the Secret key it gives me:
Maybe this is a "good" sign? |
Ok, the issue is that your |
Sort of, now we're getting somewhere. What version of Varnish are you using? EDIT: You can check by running |
varnishd (varnish-2.1.5 SVN ) |
Ok, you've got |
Or otherwise I should upgrade the Varnish version to 3.0.x ? Can I simply do that via ssh? |
That would be best, yes, 3.0.x works somewhat better than 2.1.x and supposedly also performs better.
You should be able to, though the exact process would depend on the distro you're using. I can't help you much with that. |
@aheadley Thanks. Upgrading my Varnish install to the latest solved the issue. Or selecting the 2.1 from the config worked also. Thanks for your support in this matter. I now have all caches disabled except Varnish caches. Another question before closing this topic: could you point me in the right direction for the following: My main magento website has 2 store view, one in French and one in English. when I go to: www.domain.com everything is displayed fine Please feel free to throw me any idea on this before I start digging too deep. EDIT: this problem was related in #130 & #138 my base path is also "/" Maybe you know a fix for this. Or maybe able to help me in private. |
I would recommend enabling at least the Layout and Config caches for performance.
When you say "the content is not there", do you mean you get 404s on pages that should exist or ...? |
@aheadley thanks for the recommendation I enabled those 2 caches also. Yes I do get 404 error on pages that should exists: see for yourself: www.pondicherie.net/en/ www.pondicherie.net/fr/ I would like to be able to continue using the store in URL as before.. |
were you able to check it? |
The missing content implies that it's an issue with your Magento configuration rather than with Turpentine/Varnish. Does it work without Varnish/Turpentine? |
Yes, indeed it works without Varnish/Turpentine. as you can see you can access www.pondicherie.net but adding the store URL triggers that error. Turning OFF the store URL makes it work, but I unfortunately isn't the best solution for me. As I see on previous thread, there's some other people having issues too. |
There's something I want to show you: it works well before I refresh the index management: for example: http://www.pondicherie.net/en/nighty-panties.html?___SID=U << this works with Varnish/Turpentine ON. After refresh/reindexing the data I get the cleaned url: http://www.pondicherie.net/en/nighty-panties.html which gives me a 404. |
Seemed I've solved the issue for compatibility between the Store URLS. So, here’s the simple solution:
Refresh Full Cache. It's working for now.. |
Glad you got it working. |
hi, |
this is not support group, but log for tech issues! |
please send the link when these issues have been solved. On Tue, May 21, 2013 at 8:25 AM, gondo notifications@github.com wrote:
|
@hozefahd This issue is still closed. Please create a new one describing your problems and what tests you have done so far. |
created a new issues no 200. Please check and look if u can help. On Tue, May 21, 2013 at 5:17 PM, Erik Eng notifications@github.com wrote:
|
use command |
Got this error after installing Magento-Turpentine. I can't find anyway to debug it, any help please?
Error report thrown:
The text was updated successfully, but these errors were encountered: