VMware Cloud Community
andreaspa
Hot Shot
Hot Shot

Errors after migrating from 3.3.3 to 3.4.0

Hi,

Did an upgrade from 3.3.3 to 3.4.0, so far all is looking good, except when trying to log on after migration:

Exception occured while processing /

Message: java.lang.RuntimeException: No session is bound to current thread, a session must be created via Session.create

and bound to the thread via 'work' or 'bindToCurrentThread'

Usually this error occurs when a statement is executed outside of a transaction/inTrasaction block

    org.squeryl.internals.Utils$.throwError(Utils.scala:95)

    org.squeryl.Session$$anonfun$currentSession$2.apply(Session.scala:124)

    org.squeryl.Session$$anonfun$currentSession$2.apply(Session.scala:124)

    scala.Option.getOrElse(Option.scala:120)

    org.squeryl.Session$.currentSession(Session.scala:123)

    org.squeryl.dsl.AbstractQuery.org$squeryl$dsl$AbstractQuery$$_dbAdapter(AbstractQuery.scala:153)

    org.squeryl.dsl.AbstractQuery$$anon$1.<init>(AbstractQuery.scala:157)

    org.squeryl.dsl.AbstractQuery.iterator(AbstractQuery.scala:155)

    org.squeryl.Query$class.headOption(Query.scala:51)

    org.squeryl.dsl.AbstractQuery.headOption(AbstractQuery.scala:27)

    com.vmware.cloud.usgmtr.schema.User$.exists(User.scala:21)

    com.vmware.cloud.usgmtr.snippet.Authenticator.authLocally(Authenticator.scala:58)

    com.vmware.cloud.usgmtr.snippet.Authenticator.com$vmware$cloud$usgmtr$snippet$Authenticator$$logIn(Authenticator.scala:32)

    com.vmware.cloud.usgmtr.snippet.Authenticator$$anonfun$authForm$1.apply$mcV$sp(Authenticator.scala:29)

    com.vmware.cloud.usgmtr.snippet.Authenticator$$anonfun$authForm$1.apply(Authenticator.scala:29)

    com.vmware.cloud.usgmtr.snippet.Authenticator$$anonfun$authForm$1.apply(Authenticator.scala:29)

    net.liftweb.http.S$NFuncHolder$$anonfun$apply$4.apply(S.scala:185)

    net.liftweb.http.S$NFuncHolder$$anonfun$apply$4.apply(S.scala:185)

    scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

    scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

    scala.collection.immutable.List.foreach(List.scala:318)

    scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

    scala.collection.AbstractTraversable.map(Traversable.scala:105)

    net.liftweb.http.S$NFuncHolder.apply(S.scala:185)

    net.liftweb.http.S$ProxyFuncHolder.apply(S.scala:114)

    net.liftweb.http.LiftSession$$anonfun$net$liftweb$http$LiftSession$$buildFunc$1$2.apply(LiftSession.scala:763)

    net.liftweb.http.LiftSession$$anonfun$21$$anonfun$apply$37.apply(LiftSession.scala:777)

    net.liftweb.http.LiftSession$$anonfun$21$$anonfun$apply$37.apply(LiftSession.scala:777)

    scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

    scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

    scala.collection.immutable.List.foreach(List.scala:318)

    scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

    scala.collection.AbstractTraversable.map(Traversable.scala:105)

    net.liftweb.http.LiftSession$$anonfun$21.apply(LiftSession.scala:777)

    net.liftweb.http.LiftSession$$anonfun$21.apply(LiftSession.scala:768)

    scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)

    scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)

    scala.collection.immutable.List.foreach(List.scala:318)

    scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)

    scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)

    net.liftweb.http.LiftSession.runParams(LiftSession.scala:767)

    net.liftweb.http.LiftSession.processRequest(LiftSession.scala:1214)

    net.liftweb.http.LiftServlet.net$liftweb$http$LiftServlet$$dispatchStatefulRequest(LiftServlet.scala:423)

    net.liftweb.http.LiftServlet$$anonfun$doSession$1$1.apply(LiftServlet.scala:301)

    net.liftweb.http.LiftServlet$$anonfun$doSession$1$1.apply(LiftServlet.scala:301)

    net.liftweb.http.S$class.net$liftweb$http$S$$wrapQuery(S.scala:1460)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$$anonfun$apply$37.apply(S.scala:1625)

    net.liftweb.http.S$class.net$liftweb$http$S$$doAround(S.scala:1389)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1.apply(S.scala:1623)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$class.net$liftweb$http$S$$_nest2InnerInit(S.scala:1622)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43$$anonfun$apply$44.apply(S.scala:1666)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$$anonfun$withReq$1.apply(S.scala:1676)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$class.withReq(S.scala:1675)

    net.liftweb.http.S$.withReq(S.scala:47)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41$$anonfun$apply$42$$anonfun$apply$43.apply(S.scala:1662)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41$$anonfun$apply$42.apply(S.scala:1660)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$41.apply(S.scala:1659)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1.apply(S.scala:1658)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$class.net$liftweb$http$S$$_innerInit(S.scala:1657)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48$$anonfun$apply$49$$anonfun$apply$50$$anonfun$apply$51.apply(S.scala:1699)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48$$anonfun$apply$49$$anonfun$apply$50.apply(S.scala:1697)

    net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:613)

    net.liftweb.http.RequestVarHandler$.apply(Vars.scala:515)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48$$anonfun$apply$49.apply(S.scala:1696)

    net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:613)

    net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:528)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47$$anonfun$apply$48.apply(S.scala:1695)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1$$anonfun$apply$47.apply(S.scala:1694)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_init$1.apply(S.scala:1693)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.S$class.net$liftweb$http$S$$_init(S.scala:1692)

    net.liftweb.http.S$class.init(S.scala:1274)

    net.liftweb.http.S$.init(S.scala:47)

    net.liftweb.http.LiftServlet.doSession$1(LiftServlet.scala:300)

    net.liftweb.http.LiftServlet.doService(LiftServlet.scala:310)

    net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:148)

    net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:147)

    net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:345)

    net.liftweb.util.Helpers$.calcTime(Helpers.scala:34)

    net.liftweb.util.TimeHelpers$class.logTime(TimeHelpers.scala:364)

    net.liftweb.util.Helpers$.logTime(Helpers.scala:34)

    net.liftweb.http.LiftServlet.doIt$1(LiftServlet.scala:147)

    net.liftweb.http.LiftServlet.service(LiftServlet.scala:158)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(HTTPProvider.scala:72)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(HTTPProvider.scala:71)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(HTTPProvider.scala:71)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.URLRewriter$.doWith(Req.scala:1278)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1.apply$mcV$sp(HTTPProvider.scala:70)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1.apply(HTTPProvider.scala:70)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2$$anonfun$apply$mcV$sp$1.apply(HTTPProvider.scala:70)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply$mcV$sp(HTTPProvider.scala:66)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:60)

    net.liftweb.http.provider.HTTPProvider$$anonfun$service$2.apply(HTTPProvider.scala:60)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.provider.HTTPProvider$class.service(HTTPProvider.scala:60)

    net.liftweb.http.LiftFilter.service(LiftServlet.scala:928)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(ServletFilterProvider.scala:82)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ServletFilterProvider.scala:82)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ServletFilterProvider.scala:82)

    net.liftweb.http.provider.servlet.ServletFilterProvider$class.handleLoan$1(ServletFilterProvider.scala:59)

    net.liftweb.http.provider.servlet.ServletFilterProvider$class.net$liftweb$http$provider$servlet$ServletFilterProvider$$handleLoanWrappers(ServletFilterProvider.scala:63)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ServletFilterProvider.scala:82)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:77)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1$$anonfun$apply$mcV$sp$1.apply(ServletFilterProvider.scala:77)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16$$anonfun$apply$17.apply(Vars.scala:619)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(Vars.scala:618)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15.apply(Vars.scala:617)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14.apply(Vars.scala:616)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:615)

    net.liftweb.http.RequestVarHandler$.apply(Vars.scala:515)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply$mcV$sp(ServletFilterProvider.scala:75)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:75)

    net.liftweb.http.provider.servlet.ServletFilterProvider$$anonfun$doFilter$1.apply(ServletFilterProvider.scala:75)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16$$anonfun$apply$17.apply(Vars.scala:619)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15$$anonfun$apply$16.apply(Vars.scala:618)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14$$anonfun$apply$15.apply(Vars.scala:617)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$$anonfun$apply$14.apply(Vars.scala:616)

    net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:71)

    net.liftweb.http.CoreRequestVarHandler$class.apply(Vars.scala:615)

    net.liftweb.http.TransientRequestVarHandler$.apply(Vars.scala:528)

    net.liftweb.http.provider.servlet.ServletFilterProvider$class.doFilter(ServletFilterProvider.scala:74)

    net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:928)

    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

    java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    java.lang.Thread.run(Unknown Source)

Any ideas on what is wrong?

Data migration went without any issues (after the second try, the old appliance had the directory in /tmp/ that needed removing before all could be executed properly), so it should not be that.

Labels (2)
Reply
0 Kudos
13 Replies
admin
Immortal
Immortal

Please check if this helps Re: Can't login with User "usgmtr"

Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

Thanks, but I already checked. Seems like a software bug or something.

Doesn't matter what username I try to enter, still the same result. I will try and do the setup once again and see if that helps.

Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

Ok - before import of data I can log on using "admin" and my password.

After data import, I cannot log on using "admin" and my (old) password, I just get the crash message seen before.

Reply
0 Kudos
admin
Immortal
Immortal

Has the import completed successfully? Can you share the screen shot of the login screen error message?

Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

Yep, completed successfully!

Here is the printscreen, this is what is shown no matter what I enter as login credentials:

pastedImage_0.png

Reply
0 Kudos
admin
Immortal
Immortal

Whether SSH is enabled in both source and destination appliances prior to running the "importum" command?

Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

Yes, and according to the import log all went fine, no warnings or anything.

Doing Plan B now, setting it up again as no data in regards to measurement is migrated due to the new monitoring method

Reply
0 Kudos
admin
Immortal
Immortal

Can you share the permission on /tmp with ls -l in the appliance and upload the first boot log.

Reply
0 Kudos
vhsp
Contributor
Contributor

I have nearly the same error - anybody any idea?

Exception occured while processing /

Message: java.lang.RuntimeException: No session is bound to current thread, a session must be created via Session.create and bound to the thread via 'work' or 'bindToCurrentThread' Usually this error occurs when a statement is executed outside of a transaction/inTrasaction block org.squeryl.internals.Utils$.throwError(Utils.scala:95) org.squeryl.Session$$anonfun$currentSession$2.apply(Session.scala:124) org.squeryl.Session$$anonfun$currentSession$2.apply(Session.scala:124) scala.Option.getOrElse(Option.scala:120) org.squeryl.Session$.currentSession(Session.scala:123) org.squeryl.dsl.AbstractQuery.org$squeryl$dsl$AbstractQuery$$_dbAdapter(AbstractQuery.scala:153) org.squeryl.dsl.AbstractQuery$$anon$1.<init>(AbstractQuery.scala:157) org.squeryl.dsl.AbstractQuery.iterator(AbstractQuery.scala:155) org.squeryl.Query$class.headOption(Query.scala:51) org.squeryl.dsl.AbstractQuery.headOption(AbstractQuery.scala:27) com.vmware.cloud.usgmtr.schema.User$.exists(User.scala:21) com.vmware.cloud.usgmtr.snippet.Authenticator.authLocally(Authenticator.scala:58) com.vmware.cloud.usgmtr.snippet.Authenticator.com$vmware$cloud$usgmtr$snippet$Authenticator$$logIn(Authenticator.scala:32) com.vmware.cloud.usgmtr.snippet.Authenticator$$anonfun$authForm$1.apply$mcV$sp(Authenticator.scala:29) com.vmware.cloud.usgmtr.snippet.Authenticator$$anonfun$authForm$1.apply(Authenticator.scala:29) com.vmware.cloud.usgmtr.snippet.Authenticator$$anonfun$authForm$1.apply(Authenticator.scala:29) net.liftweb.http.S$NFuncHolder$$anonfun$apply$4.apply(S.scala:185) net.liftweb.http.S$NFuncHolder
Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

All working OK now. I set up a new appliance, recreated the rules and all settings on the Web interface, so all is set for starting measurements in September.

In with the new, out with the old 🙂

Reply
0 Kudos
admin
Immortal
Immortal

The issue could be the embedded DB was not created properly during the import process and it would be resolved by either creating the DB manually or trying with the new appliance.

Reply
0 Kudos
dbriccetti
Hot Shot
Hot Shot

Hi. I’m sorry about the problem. Will you please open a support case with GSS and mention the importum script.

Reply
0 Kudos
andreaspa
Hot Shot
Hot Shot

I'm afraid I don't have the time for that at the moment, since I solved it by setting everything up from scratch again. I hope someone else who still has the issue can open up a support ticket.

Reply
0 Kudos