-
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
Errors in admin area #5
Comments
Your Varnish secret key is incorrect, it needs to match what Varnish uses exactly. If you are using a CentOS package then that would be the contents of |
Hi Alex! Thanks for the reply. I'm using Debian and have the same directories for In attachment all config files and Magento Admin Area Screenshot. Best regards, 19.11.2012 19:24, Alex Headley пишет:
default backend definition. Set this to point to your content server.backend default { admin backend with longer timeout values. Set this to the same IP & port as your default server.backend admin { add your Magento server IP to allow purges from the backendacl purge { sub vcl_recv {
} sub vcl_pipe {# Note that only the first request to the backend will have# X-Forwarded-For set. If you use X-Forwarded-For and want to# have it set for all requests, make sure to have:# set bereq.http.connection = "close";# here. It is not set by default as it might break some broken web# applications, like IIS with NTLM authentication.return (pipe);}sub vcl_pass {return (pass);}sub vcl_hash { sub vcl_hit {if (!obj.cacheable) {return (pass);}return (deliver);}sub vcl_miss {return (fetch);}sub vcl_fetch {
} sub vcl_deliver {
} sub vcl_error {set obj.http.Content-Type = "text/html; charset=utf-8";synthetic {"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><title>"} obj.status " " obj.response {"</title>Error "} obj.status " " obj.response {""} obj.response {" Guru Meditation:XID: "} req.xid {" Varnish cache server "};return (deliver);}sub design_exception { Configuration file for varnish/etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCKto be set from this shell script fragment.Should we start varnishd at boot? Set to "yes" to enable.START=yes Maximum number of open files (for ulimit -n)NFILES=131072 Maximum locked memory size (for ulimit -l)Used for locking the shared memory log in memory. If you increase log size,you need to increase this number as wellMEMLOCK=82000 Default varnish instance name is the local nodename. Can be overridden withthe -n switch, to have more instances on a single server.INSTANCE=$(uname -n) This file contains 4 alternatives, please use only one.Alternative 1, Minimal configuration, no VCLListen on port 6081, administration on localhost:6082, and forward tocontent server on localhost:8080. Use a 1GB fixed-size cache file.DAEMON_OPTS="-a :6081 Alternative 2, Configuration with VCLListen on port 6081, administration on localhost:6082, and forward toone content server selected by the vcl file, based on the request. Use a 1GBfixed-size cache file.DAEMON_OPTS="-a :6081 Alternative 3, Advanced configurationSee 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=6081# Telnet admin interface listen address and portVARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1VARNISH_ADMIN_LISTEN_PORT=6082# The minimum number of worker threads to startVARNISH_MIN_THREADS=1# The Maximum number of worker threads to startVARNISH_MAX_THREADS=1000# Idle timeout for worker threadsVARNISH_THREAD_TIMEOUT=120# Cache file locationVARNISH_STORAGE_FILE=/var/lib/varnish/$INSTANCE/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# File containing administration secretVARNISH_SECRET_FILE=/etc/varnish/secret# Backend storage specificationVARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"# Default TTL used when the backend does not specify oneVARNISH_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} \-S ${VARNISH_SECRET_FILE} \-s ${VARNISH_STORAGE}"Alternative 4, Do It YourselfDAEMON_OPTS="" |
Alexey, For example, on my dev machine:
It's not obvious, but there is a new line at the end of the file, which is why the next prompt is on a line by itself. If it didn't have a newline at the end it would look like this:
Since it does have the newline, my Varnish Authentication Key option looks like this: |
Alex, I added \n to the Varnish key in admin area, but now I see other Best regards, 19.11.2012 21:15, Alex Headley пишет:
|
Alexey, This error is odd, can you send me the output of |
Alex, Backend Host: 127.0.0.1 Admin Timeout: 21600 Servers Config File Location: {{root_dir}}/var/default.vcl And the output of varnishd -v root@dev ~ # varnishd -V 19.11.2012 22:54, Alex Headley пишет:
|
Alexey, |
Alex, thank you very much. At last it works :)
Your extension is perfect! But need only fix bug with Varnish version 20.11.2012 0:15, Alex Headley пишет:
|
Alex, I'm testing site and don't see any changes. Looks like the same page 20.11.2012 0:37, Alexey Maltsev пишет:
|
Alexey,
Turpentine does not serve any cached pages to you if you have the adminhtml cookie set (have logged into the admin panel), I usually recommend testing with a separate browser. I don't think I actually documented this anywhere and this "feature" is going away in the next release since it causes more problems than it solves. |
Alex,
I found a site with Varnish, which looks like fast, but have errors when You can see author's blog, there are have extension with all settings. 20.11.2012 0:56, Alex Headley пишет:
|
It looks like they're doing a sort of hacky AJAX hole-punching, where Varnish caches the page, then the session-specific parts of the page are replaced via AJAX requests. There is another extension that does something similar on Magento Connect I believe. The major feature of the next release of Turpentine (hopefully by the end of this week) will be ESI support so Varnish will do the fetching/replacing of the session-specific parts of the page. It will also fix some things in the current version that do not work real well (like caching being disabled after a customer logs in or adds something to their cart). |
I'm testing in Google Chrome on 2 computers and look speed at tools. For Product Page Category Add to Cart (mega slow) May be you also can use this AJAX method to Turpentine? 20.11.2012 1:34, Alex Headley пишет:
|
Alexey, Regarding the tests with Google Chrome, I'm not familiar with Chrome's performance testing tools that you seem to be using, do you know if those tests support cookies or not? If they don't, then Turpentine will never serve a cached page because it always forces a request without a cookie to go to the backend so that the visitor gets the
|
Hi Alex! Yes, I understood about "dynamical" parts of Magento. Really, if some I've tested my site at GTMetrix (http://gtmetrix.com) and have following Page Speed Grade:
YSlow Grade: This results are independent from my cookies or browsers. If ESI is faster - that's really good. I will be waiting your next version. 20.11.2012 20:43, Alex Headley пишет:
|
Alexey, |
Hey Alex! Thanks for the new version. I've installed it, but something wrong with Varnish Version: 2.1.x Config File Location:{{root_dir}}/var/default.vclBackend Host: 127.0.0.1 Is it correct? 27.11.2012 3:11, Alex Headley пишет:
|
Alexey, Unfortunately because of that I don't really have a solution for you right now, sorry. |
Alex, if you can tell me how yo update Varnish from 2.1 to 3.0.3 for 27.11.2012 21:45, Alex Headley пишет:
|
Alexey, |
Alex, I've tried to installed it early, but had error:
I'm not server admin, so update something on server is difficult for me. 28.11.2012 0:18, Alex Headley пишет:
|
Alexey, Your update failed because the Varnish default.vcl (probably located at |
Alex, really I can't install Varnish 3.0+ to the server. Every time I apt-get install varnishReading package lists... Done or such errors (after apt-get update) ... W: Failed to fetch W: Failed to fetch W: Failed to fetch E: Some index files failed to download, they have been ignored, or old After removing and installing Varnish 3.0, I have no many files on 28.11.2012 3:16, Alex Headley пишет:
|
Hi Alex! Today I've talked with my friend, he is server admin. And he told me, Also, do you know something about Magento's Zend FullPage Cache option Best Regards, Alexey. 28.11.2012 3:16, Alex Headley пишет:
|
Alexey,
Not really, I've not used it with Memcached. I do know that it is not likely to work real well with Turpentine due to FPC cached pages not sending the Set-Cookie header. |
Alex, I'll ask my friend to install completely new software on server What average page load time you have on server? And how many products 29.11.2012 21:16, Alex Headley пишет:
|
I don't have any numbers to give you that would be relevant to a "real" site, I don't run a Magento store. |
Alex, Today I'm and admin have test different server and Magento solutions. We Before Varnish we have following results: Main Page Cartegories Product Page Add to Cart After Varnish was enabled: Main Page Cartegories Product Page Add to Cart So really I have no difference :( We can't get the same results as on this site: Best Regards, 02.12.2012 10:34, Alex Headley пишет:
|
Alexey, |
Hi Alex! Ok, thanks, I'll try it today. 13.12.2012 0:18, Alex Headley пишет:
|
For anyone else who came to this page and realized that you were missing |
I have some bugs in admin area.
In System > Varnish Management don't work functions. No one.
After click on any button, I'm redirecting to Magento error page:
"There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 837656914520"
Inf file:
The text was updated successfully, but these errors were encountered: