Quantcast
Channel: Adobe Community: Message List - ColdFusion Server Administration
Viewing all 2068 articles
Browse latest View live

Re: updgrade CF9 to CF11

$
0
0

Sure, Mike. That’s indeed why I am able to make a full-time business of providing CF server troubleshooting help. Most people are busy enough with their day jobs (whether as CF devs or non-CF sys admins), so they just can’t spend too much time (or prefer not to) to fully understand problems like this, which can sometimes be rather involved (and involve multiple moving parts, as well as things from different releases which may not be documented in one place).

 

I do also share such solutions in the form of answers on forums/lists, blog posts, presentations, and videos. And this (resolving issues with the web server config when transitioning from 9 to 10 or 11) is something I’ve been meaning to blog about but had not. That’s why I went ahead and shared the insights for you here in the meantime.

 

If you (or anyone reading this) may be interested in more direct help, you can learn more about my services at the consulting page of carehart.org, including rates, approach satisfaction guarantee, and more. I also list other CF troubleshooting consultants in a category of my cf411 site, at cf411.com/cfconsult.

 

Hope all that’s helpful, for you and future readers here, and that you’ll have your problem solved soon, one way or another.

 

/charlie


Re: updgrade CF9 to CF11

$
0
0

Happy to pay for your services if I need them. No problem there.

 

But here is another quick question first. I launched C:\Coldfusion9\runtime\bin\wsconfig but the only option there is to delete/add a web server. I don't see anything listed about connectors. Am I in the wrong place? Screen shot 2015-03-11 at 9.39.27 AM.png

Re: updgrade CF9 to CF11

$
0
0

You’re in the right place. You would delete (remove) the current “web site”. It’s not that you’ll remove the web site (from iis) but you’ll (implicitly) remove the connector between that site and CF.

 

(Now you can appreciate why a video would be helpful. And especially when it comes to the parts about tweaking IIS config files, if needed.)

 

/charlie

Re: updgrade CF9 to CF11

$
0
0

Ok, very good. Thanks.

I'll let you know if I need your services.

Re: updgrade CF9 to CF11

$
0
0

Just to finish off this thread and help others that might have the same problem. I used the web config tool as suggested above by Charlie. It worked and solved the problem I was having for the past week.
First I launched the Webconfig tool (see path above) in CF 9 and removed the Website Connector.

Then I launched the Webconfig tool in CF 11 and also removed the website connector.

Then I added a website connector in for CF11.


Why this small but crucial step wasn't included in the CF 11 upgrade docs I don't know. Seems like it was just something you had to know about

Thanks for the help.

Mike

Re: updgrade CF9 to CF11

$
0
0

Glad to hear that it helped you to solve things, Mike.

 

As for documentation, I will confirm that I just looked at the installation manual and I don’t see it mentioned.

 

As for why it may not be, I think the challenge may be that there are some nuances that they’d have to cover:

 

- is one planning to have CF9 (or earlier, which I’ll call  docs may have been more focused on documenting how to install it on a new system, and the one reference to the wsconfig not removing settings in Apache on OSX may have been a remnant from prior releases, written by other engineers.

 

This is indeed often a problem in docs: the writer may be told “document how to install CF10/11, including implementing web server connections”. They did that part. It doesn’t seem they did the other part. I’ll forward this thread to the CF Product Manager and ask him if it could be considered for refinement in the docs. (I simply can’t do that for all problems or I’d be ignored, but I agree that this one is important and affects many people. They may tell me/us to just open a bug report. You may want to do that now, and point back to this thread for details, and then report here the bug id so others could vote it up, and then I could pass it on to them, if they do not chime in on the thread here.)

 

/charlie

Re: Updated Java and now ColdFusion services won't start

$
0
0

Any updates for getting CF10 to work with Java 8?  I had installed Java 8 a couple of weeks ago and it has been working fine.  Out of nowhere, this morning, I can't log into cfadmin...when i log in, it keeps just going to the login page.  If I try to run a site, it says I cannot access datasources...something about not being able to find jce.jar.  So I followed some of the steps I saw online like making sure ethe java_home was pointing ot the jre directory in the new jdk and I copies msvcr100.dll to the cfusion/bin directory and copied over tools.jar to cfusion/lib.  Now I get "HTTP Status 500 - coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available."  Here is the stack trace info:

 

type Exception report

messagecoldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available.

descriptionThe server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:745) 

root cause

coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. coldfusion.server.ServiceFactory.getRuntimeService(ServiceFactory.java:117) coldfusion.CfmServlet.init(CfmServlet.java:99) coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:745) 

noteThe full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.


What do i do?  I am at a loss and cannot move forward.  Help!!!!


Thanks!


Eric Roberts

Application Developer

Andy Frain Services

Re: updgrade CF9 to CF11

$
0
0

Thanks for confirming to me that wsconfig was not mentioned in the install docs. This way I'm not pissed at myself for missing something that didn't exist when I first started trying to do this about a week ago.

I'll report the bug also.

When I posted here, I also tried to contact Adobe support. First with Chat/phone. They said they can't help me with coldfusion but to email cfinstal@adobe.com (I thought they were missing the second 'l' so I tried cfinstall@adobe.com, but no, that wasn't it. They meant to leave off the second 'l'. Ugh.) Anyway, I didn't have high hopes but just as I saw your response here, they emailed me basically the same information. And they were fast to respond. It seemed likely they were used to getting that question.

I'm a programmer and database admin so I'm used to reading docs and troubleshooting issues. I could tell something was missing and was about to start deleting handlers in IIS but really didn't want to go down that road. Thanks again for the quick and accurate response.
Mike


Re: New CF10 Install coesn't see any updates

$
0
0

Charlie - just closing the loop on this - thanks for your initial analysis.  It turned out that there were in fact firewall rules that prevented port 80 traffic from passing through.  Once the network guys fixed that, the updates started working.

 

Thanks again, plus thanks for all the other tidibts that were in your answer!

-reed

Re: Updated Java and now ColdFusion services won't start

$
0
0

Hi Eric,

 

  1. Stop ColdFusion service, if already running.
  2. Launch Command prompt as Administrator.
  3. Browse to cf_root\cfusion\bin and run the following command coldfusion.exe -start console
  4. Try to access the CF admin, once the services are started.

 

In case it gives an error message, please share the same.

 

Regards,

Anit Kumar

Re: updgrade CF9 to CF11

$
0
0

Well, wsconfig is indeed mentioned. I was saying that it talks about it only in the context of a new install, not a migration.

 

But really, most people never look a the docs anyway. And I suspect that 9 our of 10 who know there are CF docs and would look at them would only know of the CFML Reference manual (since that’s what tends to come up when you google a tag or function). They don’t know about the wonderful (and equally big) “Developing CF Apps” manual, and few even know there is am Installing manual and an Admin manual. But I carry on the good fight for folks to know of them and for them to be as good as they can be.

 

Good to hear you’re reporting the bug. Let us know when you do.

 

And good to hear that they did indeed reply, and with similar info. That’s very encouraging to hear.

 

/charlie

Re: Updated Java and now ColdFusion services won't start

$
0
0

Also, Eric, you haven’t clarified: are you running on at least update 14 of CF10? That’s what added support for Java8 in CF10.

 

And if you’d say yes, I’d wonder if you might confirm whether you may have had any errors in that or previous updates you had applied. You can see a log for each in the HF-updates, which will have a folder for each update applied. It can be that CF still comes up sometimes, even when something may have been amiss. (And the installer status windows would have said if there were any errors, but people often don’t notice  when it says that. The logs are the best way to know for sure.)

 

 

 

/charlie

Creating a Coldfusion Data Source that connects to a DB on a different server

$
0
0

Your assistance is appreciated.  I am attempting to create a data source on server #1 that is to connect to a database residing on Server #2.  Thus far, each attempt made results in an error that the database "is already opened exclusively by another user, or you need permission to view its data."  Be advised that I am experienced in working with data sources when the database resides on the same server.

 

 

 

 

Re: Creating a Coldfusion Data Source that connects to a DB on a different server

$
0
0

There is no problem creating a datasource on server 1 that references a database on server 2.  But you will have to check the permissions on server 2 to make sure server 1 can connect. I suppose the error message is telling you as much.

Clustering losing session

$
0
0

I have been trying to get clustering going but sessions never work. In a virtual machine, I have CF11 Enterprise on Windows installed. The VM was copied from a staging environment that was previously setup following the common "CF Lockdown Guide", but I don't believe we're having an issue there.

 

I have stripped the VM down to the basics and reverted many "lockdown" changes. The CF services are setup to run as an administrator. I have two websites in IIS - one basic index.cfm site that dumps instance name, and a full site that is dumping instance name, alongside having a login and much functionality. Three instances are setup in CF Admin - cfusion, Instance1, and Instance2. Instance1 and Instance2 are both part of a cluster, Cluster1.

 

I have tried all combinations of "sticky sessions" and "session replication", reinstalling the CF Connectors (tried both globally and per-site) and Handler Mappings each setting update. Services were restarted after each change, as necessary.

 

I have also tried moving the "Cluster" node in each Instance's server.xml to be contained within the Host node, but it did nothing.

 

Neither Sticky Sessions or Session Replication seem to work. Each requests goes to the next instance (set as 1/1 load balancing factor). Session replication doesn't work as I can never login. Sticky sessions never work as each subsequent request hits the next instance, apparently invalidating the login request. I can make other updates to the load balancing, such as changing the factor to 5/1 and having Instance1 take 5 requests for every 1 of Instance2, but session ID's and replication do not appear to be working.

 

My first attempt at this was on CF10. It had the exact same problem (with a difference being that Session Replication isn't a check-able option in CF Admin).

 

Does anyone have any other ideas of what to try? There isn't much on Google, and I've already seen all pages/forum posts that seem to apply to my issue.


Re: Clustering losing session

$
0
0

CFadmin > Server Settings > Memory Variables  tick Use J2EE session variables on each instance. Perhaps you might have to restart those to take effect.

 

HTH, Carl.

Re: Clustering losing session

$
0
0

Carl’s suggestion is certainly of first importance. If you’d not done that, Masejoer, that may be all you need.

 

If you HAD done that, I will say that trying to resolve this remotely via email will prove knotty.

 

And this is why you find little discussion on the topic in google searches. There are just too many moving parts: how you installed CF, how you configured the cluster in CF (in the primary server and then in the remote one), indeed whether you are talking about instances within one machine or between machines, what instructions you followed, and so on. Even factors like how your code is written can have an influence.

 

The bottom line is that session replication can work. I have done configured it for folks and confirmed it was working fully as expected, with CF11.

 

But often it takes only a slight miss of something for it not to work. Once you solve that, it then often works just find from that point forward. (Then again, other problems can hit you if you end up having thousands or tens of thousands of sessions unexpectedly being replicated all the time between instances, but that’s a separate issue. We can cross that bridge when you come to it.)

 

All this is to say that we can’t in email consider all the possibilities that may be making things not work for you. But you can solve it, by looking at the right things, the right way.

 

If this is important for you to resolve from a business perspective, you may do best by having someone work with you remotely (where they see your screen while look at your setup). With that approach, this might be solved in as little as 15 minutes, because we don’t have to consider remotely and one step at a time all the possibilities and narrow down to the problem with a lot of back and forth.  Instead, all that happens in minutes based on what’s presented in your setup, and based on review of some diagnostic tests.

 

This sort of remote assistance does not require the assistant to be given remote access (opening a firewall, creating an account). Instead, the remote assistance just “looks over your shoulder” using a service like join.me, gotomeeting, etc. I’ll say that I do that sort of troubleshooting consulting and am fairly confident we could quickly resolve your problem. But so that this does not seem to be purely a “sales pitch”, I’ll point out that I list several such consultants in a category of my CF411.com site, specifically cf411.com/cfconsult.

 

Hope that’s helpful.

 

/charlie

Re: Clustering losing session

$
0
0

This is all exploratory testing at the moment.

 

I was missing the J2EE session-variable setting on the CF instances. Sticky sessions and replication appears to be working now. One remaining issue though - I am unable to get the CF instances to start-up with Sticky Sessions enabled, Session Replication disabled. Nothing useful is appearing in the ColdFusion logs. If I delete the log files and attempt to start the instances, only coldfusion-error.log is populated. After a couple minutes, the services stop after failing to start.

 

Mar 19, 2015 11:14:48 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\ColdFusion11\Instance2\lib;C:\ColdFusion11\Instance2\jintegra\bin;C:\ColdFusion11\Inst ance2\jintegra\bin\international;C:\ColdFusion11\Instance2\lib\oosdk\classes\win

Mar 19, 2015 11:14:49 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8013"]

Mar 19, 2015 11:14:49 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-nio-8501"]

Mar 19, 2015 11:14:49 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

INFO: Using a shared selector for servlet write/read

Mar 19, 2015 11:14:49 AM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Mar 19, 2015 11:14:49 AM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.54

Mar 19, 2015 11:14:49 AM org.apache.catalina.ha.tcp.SimpleTcpCluster startInternal

INFO: Cluster is about to start

Mar 19, 2015 11:14:49 AM org.apache.catalina.tribes.transport.ReceiverBase bind

INFO: Receiver Server Socket bound to:/192.168.0.14:4002

Mar 19, 2015 11:14:49 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket

INFO: Setting cluster mcast soTimeout to 500

Mar 19, 2015 11:14:49 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4

Mar 19, 2015 11:14:49 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded

INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{192, 168, 0, 14}:4001,{192, 168, 0, 14},4001, alive=1516, securePort=-1, UDP Port=-1, id={-22 97 123 -80 119 -97 77 -75 -97 -77 -16 82 -114 70 96 109 }, payload={}, command={}, domain={}, ]

Mar 19, 2015 11:14:49 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded

INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{192, 168, 0, 19}:4001,{192, 168, 0, 19},4001, alive=766813963, securePort=-1, UDP Port=-1, id={32 60 -93 -104 -4 -62 67 107 -74 13 -128 16 121 -30 57 20 }, payload={}, command={}, domain={}, ]

Mar 19, 2015 11:14:49 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded

INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{192, 168, 0, 19}:4002,{192, 168, 0, 19},4002, alive=766813963, securePort=-1, UDP Port=-1, id={-54 30 -101 46 -2 23 66 20 -74 92 -61 -6 34 -22 -76 52 }, payload={}, command={}, domain={}, ]

Mar 19, 2015 11:14:50 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Done sleeping, membership established, start level:4

Mar 19, 2015 11:14:50 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:8

Mar 19, 2015 11:14:50 AM org.apache.catalina.tribes.io.BufferPool getBufferPool

INFO: Created a buffer pool with max size:104857600 bytes of type:org.apache.catalina.tribes.io.BufferPool15Impl

Mar 19, 2015 11:14:51 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers

INFO: Done sleeping, membership established, start level:8

 

Windows Event Log Info:

 

Description:

The description for Event ID 261 from source ColdFusion 11 Application Server Instance2 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

The following information was included with the event:

ColdFusion 11 Application Server Instance2

240

C:\ColdFusion11\Instance2\bin\coldfusionsvc.exe

ColdFusion 11 Application Server Instance2

Re: SEVERE: The web application [/] created a ThreadLocal

$
0
0

I am seeing this too in a default installation of CF11 on windows 2012.

 

It appears to show up when cf service is started.

Unsuccessful at getting https working with coldfusion 11 update 2

$
0
0

I have made the changes I found in the Coldfusion 11 - Web Sockets via SSL discussion and I am getting "The connection was interrupted" in firefox when I try and go to the coldfusion administrator.  I have successfully gotten https working in a Apache Tomcat server without Coldfusion.  Is there something I am missing.  Here is my connector page from the server.xml file:

 

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS"
   keystoreFile="C:\keystore.jks"
   keystorePass="MyPassword"
   keystoreType="JKS"/>
Viewing all 2068 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>