CON-659 - Umbraco Forms upgrade fails to download

Created by Geoff Beaumont 15 Jan 2015, 12:56:12 Updated by Warren Buckley (Personal) 29 Jan 2016, 08:45:24

Is duplicated by: CON-698

Running UmbracoForms.Package.4.0.0-Build.106 under Umbraco 7.2.1, the forms dashboard states that there is a new version available, and has an inviting blue Upgrade now button - however, when I click that I just get a progress bar "Downloading and upgrading forms..." which never completes.

Running fiddler, I can see that the UI is failing to handle a 500 error from /umbraco/backoffice/UmbracoForms/Updates/InstallLatest?version=, which is in turn caused by a 404 error from /UmbracoForms/4.0/UmbracoForms.Files..zip

I'm guessing the double period before the extension might mean something should have inserted a version number there?

1 Attachments

Download installlatest element.txt

Comments

Tim Geyssens 23 Jan 2015, 09:23:18

Not related to a Forms version but was the nightly build server that was failing, fixed now


Geoff Beaumont 23 Jan 2015, 09:41:24

Hi Tim,

I can confirm that's fixed the issue for us.

Geoff


Greg 23 Jan 2015, 16:26:07

+1 Confirmed this is fixed

thanks


Lindsay Alford 27 Feb 2015, 12:54:37

I'm getting this issue with 7.2.1. I have pressed the upgrade now button in the CMS but it just hangs when trying to upgrade the Umbraco Forms. How did you guys manage to get it to work?

I need this fix as the apostrophes submitted in the form is breaking the export entries function.

Thanks in advance

Lindsay


Geoff Beaumont 27 Feb 2015, 13:37:21

Hi Lindsay,

Can you run fiddler or something similar on the machine where you're attempting the upgrade (ideally a dev machine, obvoiusly), and take a look at the back office call to /umbraco/backoffice/UmbracoForms/Updates/InstallLatest (this call is made server side, so you won't see it in your local browser dev tools)?

Last time, this error was caused by the build server having failed to deploy something, rather than a bug in Umbraco Forms itself. Sounds like it may have happened again.

Geoff


Lindsay Alford 27 Feb 2015, 14:01:23

Hi Geoff,

Thanks for the quick response.

It's producing a 500 error with the url /umbraco/backoffice/UmbracoForms/Updates/InstallLatest?version=

Does that help?

Lindsay


Lindsay Alford 27 Feb 2015, 14:07:16

Hi Geoff,

I've found this - https://our.umbraco.org/forum/umbraco-pro/contour/60624-Umbrao-forms-update-500er-error Would this solve it?

Lindsay


Geoff Beaumont 27 Feb 2015, 14:42:23

Hi Lindsay,

My apologies - I pasted the wrong URL into my last post, which made it rather confusing.

The build server issue caused a 404 missing page error when the URL /UmbracoForms/4.0/UmbracoForms.Files..zip (that should be a fully qualified URL, but I can't remember what the domain is - it's not local) was called from the server, and this then resulted in a 500 error from the URL /umbraco/backoffice/UmbracoForms/Updates/InstallLatest?version= which was passed back to the browser in an AJAX response. Have you taken a look at the server side call in Fiddler?

That forum post is indeed referring to the same issue. It doesn't offer a solution you can implement - Tim sorted out the build server issue and the necessary files were then deployed and available to download.

Geoff


Lindsay Alford 27 Feb 2015, 14:56:54

Hi Geoff,

doh! Re-read your last message and got it I think!

I ran the url through fiddler and got this message back:

{"Message":"No HTTP resource was found that matches the request URI '/umbraco/backoffice/UmbracoForms/Updates/InstallLatest'.","MessageDetail":"No action was found on the controller 'Updates' that matches the request."}

I also got the following message back when I looked at /umbraco/backoffice/UmbracoForms/Updates/GetUpdateStatus

)]}', {"Message":"Authorization has been denied for this request."}

I am running this via HTTPS would this be an issue?

Was something missing when we did the original install do you think? Or would it be permissions?

Lindsay


Lindsay Alford 27 Feb 2015, 15:25:41

Hi Geoff,

Does the attached info help? I clicked on "update" button in CMS and in the inspect element (for the "installLatest?version=" item) and I found the info under the network tab.

Prehaps there is another issue with the build server then....

Lindsay


Geoff Beaumont 27 Feb 2015, 15:30:53

Hi Lindsay,

Looks like the same issue again - nothing you can do from your end, it needs fixing on the build server.

Geoff


Lindsay Alford 27 Feb 2015, 15:32:56

Hi Geoff,

Ok thanks for your help :)

Who do I need to raise this with or are they already on this thread?

Lindsay


Lindsay Alford 12 Mar 2015, 17:06:27

Hi Tim,

Any progress on this?

Thanks

Lindsay


Ben Norman 20 Mar 2015, 21:05:14

This is happening for me also.


Tony Gledhill 26 Aug 2015, 10:08:28

Hi

I'm experiencing the same issue with the umbraco forms. Is there a fix for this and how would I go about applying to my installation.

Thanks

Tony


Warren Buckley 18 Jan 2016, 15:54:46

Hello, This task has been set to open, so I can review it as I have recently joined the team at Umbraco HQ to help work on the forms product.

It is going to take me a while to go through the backlog of issues and get priorities organised.

If you are still experiencing this issue or can provide any new or up-to date details at all for reproducing etc it would be highly appreciated.

Thanks, Warren


Geoff Beaumont 18 Jan 2016, 16:06:45

Hi @warren@umbraco.com,

This issue occurs when something goes wrong on the build server (I'm guessing it fails to generate the files to download, but I don't know any more than is in this bug report) - there's nothing you can do client side to reproduce it.

I haven't seen it for a while, but I don't upgrade forms unless absolutely necessary as it's a pain in the butt sorting out all the files it overwrites.

Geoff


Warren Buckley 20 Jan 2016, 10:30:34

Hi @Geoff.Beaumont I will close this issue if that is OK with you, as like you say this is an issue with the build server that happens periodically. If anyone is still having problems 'currently' with this then please do let me know.


Geoff Beaumont 20 Jan 2016, 10:38:25

Fine by me.


Chriztian Steinmeier 28 Jan 2016, 09:55:17

@warren.buckley I've just had the same issue - Umbraco 7.2.1 - Forms v. 4.0.0-Build.84, trying to upgrade (as per http://umbraco.com/follow-us/blog-archive/2016/1/27/umbraco-forms-security-notice/)

Clicking the "Upgrade now" button just starts the progressbar/spinner and there's an error logged to the console:

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://[domain.com]/umbraco/backoffice/UmbracoForms/Updates/InstallLatest?version=4.1.5


Warren Buckley 28 Jan 2016, 13:36:08

Hi @greystate thanks for informing me of this issue. Interesting that you have a very early build of Umbraco Forms on that installation.

Let's see if we can work together to figure out the problem. Can you let me know what is in the App_Data/Logs/UmbracoTraceLog file please to see if we can look for any clues.

And does the browser dev tools give any insight into a more detailed 500 error from the response of /umbraco/backoffice/UmbracoForms/Updates/InstallLatest?version=4.1.5

Thanks, Warren


Chriztian Steinmeier 28 Jan 2016, 13:49:18

Hi @warren.buckley - not much to go after in the log file, I'm afraid:

2016-01-28 14:40:42,145 [7] INFO Umbraco.Web.Security.WebSecurity - [Thread 109] User Id: 0 logged in 2016-01-28 14:40:42,161 [7] INFO Umbraco.Core.PluginManager - [Thread 55] Starting resolution types of Umbraco.Web.Trees.TreeController 2016-01-28 14:40:42,161 [7] INFO Umbraco.Core.PluginManager - [Thread 55] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 8 (took 0ms) 2016-01-28 14:41:04,223 [7] INFO umbraco.BusinessLogic.Log - [Thread 109] Log scrubbed. Removed all items older than 2015-11-29 14:41:04 2016-01-28 14:42:30,630 [7] INFO umbraco.BusinessLogic.Log - [Thread 55] Log scrubbed. Removed all items older than 2015-11-29 14:42:30

(Those are what was logged after clicking the button)

Console doesn't log anything else - the content of the response is just a JSON message, i.e.: {{"Message": "An error occurred"}}


Warren Buckley (Personal) 28 Jan 2016, 13:59:12

That is odd @greystate that a 500 error is being thrown by the server but nothing has been reported in the log. Can you confirm if there are any Errors logged in the file or previous log files at all?

I am wondering if it has been disabled, perhaps? Is this site running locally on your machine or on the internet?

Is it a development website or a live website instance? If it's live I am wondering if debug=false in the web.config has been set. Alternatively is there any clues or Errors in the umbracoLog Database Table for the website that could help us?


Chriztian Steinmeier 28 Jan 2016, 14:11:25

It's a live site, so running with debug=false - just tried flipping it but no changes - no errors are getting logged.

There are no error records in the umbracoLog DB table either :(


Warren Buckley (Personal) 28 Jan 2016, 14:17:24

Hmm I am now scratching my head as to why no Errors are being logged either in umbracoLog DB table or in UmbracoTrace file. Do you have development copies of this website at all @greystate that you can confirm that can be upgraded?

As it may be easier to try installing this on a development or local environment and go through your normal deployment procedure to your Live site. I will in the mean time try to figure out why no 500 errors are being reported/logged.

Thanks, Warren


Warren Buckley (Personal) 28 Jan 2016, 14:34:42

OK @greystate can you confirm your log4net.config file settings for me.

In the file /config/log4net.config can you ensure the following part of the XML is set please.

<root>
    <priority value="Debug"/> <!-- Change from Info to Debug -->
    <appender-ref ref="AsynchronousLog4NetAppender" />
  </root>

Save that change and see if we get any more detailed info or results in the UmbracoTraceLog file please


Chriztian Steinmeier 29 Jan 2016, 08:17:11

Back again – even after setting the "Debug" priority, there's no trace (pun intended :) of Umbraco Forms in the logfile... but as I can tell from the version number it's a very early version of Forms (and of course, we've never been able to upgrade it).

I got a link to a ZIP with the update yesterday from Sebastiaan, so I'll backup all the files and do a manual "install" - then revert the h... out of it if it breaks stuff.

Thanks, Chriztian


Warren Buckley (Personal) 29 Jan 2016, 08:45:24

Yes still odd, we can't get any logs out, but yes I would agree on trying a manual update with the zip files.

Let me know how this gets on please @greystate

Thanks, Warren


Priority: Normal

Type: Bug

State: Closed

Assignee: Tim Geyssens

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 4.0.0

Due in version:

Sprint:

Story Points:

Cycle: