Updating Contentbox - Always get this error

I had 1.57 and tried to upgrade several times.

The url is http://www.gpickin.com/index.cfm/cbadmin/autoupdates

Dumped output is below.

Not sure whats up with this, or the best way to go on.
Should I just install 1.6 manually and import some data, then go to 2.0 or what.

This happened back when 1.6 was released so I just waited to see.

Any ideas?

Oops! exception Encountered### Application Execution ExceptionError Type: expression : 0

Error Messages: key [THISROUTE] doesn’t exist in argument scope. existing keys are [rc, event]

Tag Context:
ID: ??
LINE: 1257
Template: /home/allwebs/www.gpickin.com/coldbox/system/interceptors/SES.cfc
ID: ??
LINE: 95
Template: /home/allwebs/www.gpickin.com/coldbox/system/interceptors/SES.cfc
ID: ??
LINE: 369
Template: /home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc
ID: ??
LINE: 260
Template: /home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc
ID: ??
LINE: 121
Template: /home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc
ID: ??
LINE: 140
Template: /home/allwebs/www.gpickin.com/coldbox/system/web/services/InterceptorService.cfc
ID: ??
LINE: 64
Template: /home/allwebs/www.gpickin.com/coldbox/system/web/services/RequestService.cfc
ID: ??
LINE: 181
Template: /home/allwebs/www.gpickin.com/coldbox/system/Coldbox.cfc
ID: ??
LINE: 104
Template: /home/allwebs/www.gpickin.com/Application.cfc
Framework Snapshot
Current Event: N/A
Current Layout: N/A (Module: )
Current View: N/A
Bug Date: 01/18/2015 11:11:59 AM
Coldfusion ID: CFID=f56f8225-cc8d-42fe-ad10-c286b6e476d2 ; CFToken=0 ; JSessionID=www.gpickin.com-428DA25C00E4C2F2258FA56C41301685_f56f8225-cc8d-42fe-ad10-c286b6e476d2_0
Template Path : /home/allwebs/www.gpickin.com/index.cfm
Path Info : /cbadmin/autoupdates
Host & Server: www.gpickin.com new-supernova.netxn.com
Query String:

Referrer: http://www.gpickin.com/index.cfm/cbadmin/autoupdates
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0
Remote Address: 108.220.106.138
Form variables:
Session Storage:
loggedInAuthorID: 1
Cookies:
_ga: GA1.2.1838654708.1421255688
cfid: f56f8225-cc8d-42fe-ad10-c286b6e476d2
jsessionid: F1AEEE60BD10910C9192C15A0F44D3C9
cftoken: 0
Stack Trace:

key [THISROUTE] doesn't exist in argument scope. existing keys are [rc, event]
	at railo.runtime.type.scope.ArgumentImpl.get(ArgumentImpl.java:134):134
	at system.interceptors.ses_cfc$cf.udfCall5(/home/allwebs/www.gpickin.com/coldbox/system/interceptors/SES.cfc:1257):1257
	at system.interceptors.ses_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/interceptors/SES.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
	at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:704):704
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
	at system.interceptors.ses_cfc$cf.udfCall1(/home/allwebs/www.gpickin.com/coldbox/system/interceptors/SES.cfc:95):95
	at system.interceptors.ses_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/interceptors/SES.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:199):199
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:624):624
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
	at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1745):1745
	at railo.runtime.tag.Invoke.doComponent(Invoke.java:203):203
	at railo.runtime.tag.Invoke.doEndTag(Invoke.java:176):176
	at system.web.context.interceptorstate_cfc$cf.udfCall2(/home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc:369):369
	at system.web.context.interceptorstate_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:199):199
	at railo.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:713):713
	at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:739):739
	at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1481):1481
	at system.web.context.interceptorstate_cfc$cf.udfCall1(/home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc:260):260
	at system.web.context.interceptorstate_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:199):199
	at railo.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:713):713
	at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:739):739
	at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1481):1481
	at system.web.context.interceptorstate_cfc$cf.udfCall1(/home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc:121):121
	at system.web.context.interceptorstate_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/web/context/InterceptorState.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:199):199
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:624):624
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
	at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1749):1749
	at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:739):739
	at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1481):1481
	at system.web.services.interceptorservice_cfc$cf.udfCall1(/home/allwebs/www.gpickin.com/coldbox/system/web/services/InterceptorService.cfc:140):140
	at system.web.services.interceptorservice_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/web/services/InterceptorService.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
	at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
	at system.web.services.requestservice_cfc$cf.udfCall1(/home/allwebs/www.gpickin.com/coldbox/system/web/services/RequestService.cfc:64):64
	at system.web.services.requestservice_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/web/services/RequestService.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
	at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
	at coldbox.system.coldbox_cfc$cf.udfCall1(/home/allwebs/www.gpickin.com/coldbox/system/Coldbox.cfc:181):181
	at coldbox.system.coldbox_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/coldbox/system/Coldbox.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
	at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:713):713
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1471):1471
	at application_cfc$cf.udfCall(/home/allwebs/www.gpickin.com/Application.cfc:104):104
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:95):95
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:308):308
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:212):212
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:623):623
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:506):506
	at railo.runtime.ComponentImpl.call(ComponentImpl.java:1732):1732
	at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:387):387
	at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:113):113
	at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
	at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2135):2135
	at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2102):2102
	at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:332):332
	at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
	at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source):-1
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source):-1
	at java.lang.reflect.Method.invoke(Unknown Source):-1
	at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:97):97
	at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorRequestHandler.java:472):472
	at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorRequestHandler.java:499):499
	at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCoreFilter.java:36):36
	at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source):-1
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source):-1
	at java.lang.reflect.Method.invoke(Unknown Source):-1
	at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:79):79
	at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source):-1
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source):-1
	at java.lang.reflect.Method.invoke(Unknown Source):-1
	at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactorStaticFilter.java:53):53
	at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChainPointCut.java:41):41
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java):-1
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99):99
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589):589
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source):-1
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1
	at java.lang.Thread.run(Unknown Source):-1

Extra Information Dump
[N/A]

Once it crashes, its toast.
a Reinit doesnt work.

So not sure how to go about it.
Any advice would be great.

Did you update to 1.6 or 2 directly?

Please note that unfortunately Coldfusion does not release byte code in memory. So if there are major changes a restart is required

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

When I check for UPDATES it states I cannot go to 2.0 directly, I need 1.6 first… so I assumed it was trying to install 1.6 when I said update.
If not, then I guess I’ll try downloading the 1.6 patch, and then will upload that into the updates screen and see what happens.

I had the same problems going from 1.57 to 1.6 when there was only 1.6 out.
I’m running it on Railo… if that makes a difference.

I’ll backup again… try the patch upload… then restart Railo, and then we what happens.

But last time, it crashed in the middle of the update, so thats the thing, I think its halfway through the process when it dies.
Do I maybe need to 777 a directory? Is it a file permission issue maybe?

Thanks for the quick feedback

Gavin Pickin
gpickin@gmail.com
http://www.gpickin.com

I just did som this past week and just ran into that server restart issue

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Ok… I’ll upgrade.
Then restart, and see what happens.

Thanks Luis… appreciate the help.
Can’t wait to play with 2.0 :slight_smile:

Gavin Pickin
gpickin@gmail.com
http://www.gpickin.com

I assumed it was trying to install 1.6 when I said update.

I do not believe that to be the case. ContentBox uses ForgeBox for auto-updates, and the nature of ForgeBox (currently) is that it can only point to one download URL at a time. Every time a release is cut, Luis just updates the download URL to point to the latest. As long as the releases are cumulative you’re fine, but if if you’re bridging from one set of cumulative updates to another, you’ve got to manually update to the “new” set of updates.

You can download the patches from the “Patches” tab on our download page.
http://www.gocontentbox.org/download

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I got it to work… but i had more issues before i figured it out.I’ll document it here, so others can learn.

I used the URL for the patch eventually to get it to work from 1.57 to 1.6
NOTE : When you update, it will crash coldbox, you need to restart Railo to work.

Once I restarted railo, I logged in again, checked the About, it showed 1.6
So I used the check for updates, got the 2.0 release, and clicked Apply Update.
Again, this update causes Coldbox to break, so you have to restart Railo.

After restarting, I went back into the About, and it was updated.
So, something to be aware of, if you guys are updating. Maybe I missed the small print.

One other weird thing. When I downloaded the page, and tried to update it via the uploaded zip, I got a weird error (on Mac OSX ) that the mime type of the zip wasn’t right.
So best to use the URL.

Unfortunately, there is nothing I can do when we do major updates as bits in memory are not released. Therefore it seems like the site breaks, but in reality the update was successful but the engine is not releasing the bits in memory.

Therefore, please note that with major versions, usually you will have to restart the engine. We usually add a note about this in the installation instructions. So please be aware of it.

Ok, so I did miss it.
Cool.

Haven’t looked at the code, but could you could redirect to a html or something?
To say DONE, restart your CFML Engine

Anyways, its all updated. Thanks.
I’m blogging again so glad to be on the new version.

Thanks for all your hard work.

Gavin Pickin
gpickin@gmail.com
http://www.gpickin.com

Luis, have we tried doing a structClear(application) in the update?

Also, wouldn’t renaming the application fix it, or are you suggesting there’s another level of caching happening somewhere?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Renaming the application.cfc or structcclear application doesn’t work. I have tried both with no success. I am open to suggestions :slight_smile:

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

I wonder if it’s related to cached CFCs in the session scope?

Renaming the app or clearing the app scope should basically force a full reload of the entire ColdBox framework. I’d probably have to replicate it locally to dig in and find out where the sticking point is. It would seem we’re either missing something or there’s a bug in CF/Railo.

To Gavin’s point though, i think we need to find a better way to handle this. It looks unprofessional and most users will just get frustrated and see ContentBox as being brittle and breaking on them. If our updates are going to bork the entire install and we know that, perhaps we should devise some high-level redirect (like a server variable we check in Application.cfc or something) we can enable that prevents the site from loading again until the server has restarted.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Like I said, I am open to suggestions on this.

It is really difficult to replicate and program against it.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox