-
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
Authentication Key and Review problems #890
Comments
Hi -
|
Nexcess.net Turpentine (Varnish) Extensionapp/etc/modules/Nexcessnet_Turpentine.xml app/etc/modules/Nexcessnet_Turpentine.xml Thanks |
You don't need to worry about the modman file unless you're actually using modman to install Turpentine. As far as the VCL syntax error, what version of Varnish are you using? |
Ok, so the change of the link #1 is not needed in my case (for the issue of the Review). Varnish ver.2.1.5-5 |
Have you actually selected Varnish 2 in the admin panel? |
Is selected default "Automatic", the other options are: "2.1.x" and "3.0.x". |
Try selecting 2.x and let us know if anything changed. |
Nothing changes. |
What version of Turpentine are you using? Can you post the VCL file that Turpentine is generating for you? |
Nexcessnet_Turpentine-0.6.4.tgz From: Aric Watson What version of Turpentine are you using? Can you post the VCL file that Turpentine is generating for you? — |
Thanks, can you send us a copy of the VCL that Turpentine is generating? You can access it via the 'cache management' screen in the magento admin. |
When i click on "Download Varnish Config" get this error: At this link http://www.a2gp3.it/default.zip |
As an alternative to using the download button, you can grab the file from the save location, which by default is As set under System -> Configuration -> Varnish Options -> Config File Location |
Thanks Barry, that's what I did. You can see at this link http://www.a2gp3.it/default.zip |
Could you try replacing your current version-2.vcl file with this older version? Then try applying the VCL to your varnish and see if you get the same syntax error. |
@golf2849 any update on this? |
FWIW I have the same issue so I would be happy to provide further debugging if required. My setup: Magento 1.9.0.1, Nexcessnet_Turpentine-0.6.6, Varnish 2.1.5, CentOS 6.x x86_64. Fresh install of Turpentine. The generated deafult.vcl is here: http://pastebin.com/5v2CU1aw Precise error message is as follows. I tried the older version-2.vcl that you posted above but it creates the same error (albeit on line 151 instead). Failed to apply the VCL to 127.0.0.1:6082: Got unexpected response code from Varnish: 106 Message from VCC-compiler: Syntax error in condition, expected '(', '!' or variable name, found 'true' (input Line 154 Pos 5) if (true && req.url ~ "?&=") { ----####--------------------------------------------------------------------------------------------------------- Running VCC-compiler failed, exit 1 VCL compilation failed |
Hello aricwatson, sorry for the delay in the coming days test the last change you suggested and let you know. |
Hello aricwatson, and i get this new error: Failed to apply the VCL to 127.0.0.1:6082: Got unexpected response code from Varnish: 106 Message from VCC-compiler: Syntax error in condition, expected '(', '!' or variable name, found 'true' (input Line 148 Pos 5) if (true && req.url ~ "?&=") { ----####--------------------------------------------------------------------------------------------------------- Running VCC-compiler failed, exit 1 VCL compilation failed |
I think I've pinned this down to this line 198 of the version-2.vcl file (in the current master branch):
And see if that works better? If so we'll tweak version-2.vcl. |
I copied the files of your last link with suggested change and the save was successful without any errors, but now in the frontend of the site I get this error: |
Errata corrige: I restarted Varnish and now works correctly! |
Thanks a lot per the solution of problem 1), now remains only the second problem: |
I think my first recommendation would be to look in the logs to see if there's anything useful explaining why they didn't work. Is there a particular reason why you're using Varnish 2? Varnish 3+ should work quite a bit better. |
Closing for lack of feedback. Feel free to reply and we'll reopen if you're still having problems! |
I installed Turpentine on magento ver.1.7.0.2 (with Varnish ver.2.1.5-5 with hosting on Virtual Server) on the site www.garneroarredamenti.com.
I have two problems:
Failed to apply the VCL to 127.0.0.1:6082: Got unexpected response code from
Varnish: 106 Message from VCC-compiler: Syntax error in condition, expected
'(', '!' or variable name, found 'true' (input Line 148 Pos 5) if (true &&
req.url ~
"?&=")
{ ----####---------------------------------------------------------------------------------------------------------
Running VCC-compiler failed, exit 1 VCL compilation failed
"Unable to post the review."
if I uninstall Turpentine, reviews return to work.
Thanks for help
The text was updated successfully, but these errors were encountered: