Skip to main content
Participant
August 5, 2009
Question

File Not Found Error on Fresh MX7 Installation

  • August 5, 2009
  • 1 reply
  • 1415 views

After spending days getting CFMX 7.0.2 installed on a CentOS5.3 (production) server running Apache 2.2.3 and WHM/cPanel 11, by religiously following Bill Mitchell's lifesaving guide, CF is up and running but I cannot access the administrator or anything else in user public_html directories.

If I place a simple foo bar test file in the /usr/local/apache/htdocs/testfile.cfm directory, I can call it at http://[IPaddress]/testfile.cfm and it parses properly.

However, if I place the same file at /home/cfusion/public_html/testfile.cfm and call it at http://[IPaddress]/~cfusion/testfile.cfm, I get a CF-generated 404 "File Not Found" error.

cfusion is a cPanel account I created via WHM prior to installing ColdFusion as a repository for my CFIDE directory.

If I place a symlink for /usr/local/apache/htdocs/CFIDE -> /home/cfusion/public_html/CFIDE:"File Not Found". If I cp -R my CFIDE into htdocs: "File Not Found." These files are physically there. I can easily verify that of course. But CF is still saying File Not Found. In fact, if I disconnect Apache - JRun, Apache finds the files all by itself no problem. They are definitely there.

I thought this might be a permissions issue, but all my .cfm files are nobody:root 775.

Here's what I'm seeing in the exception.log:

coldfusion.runtime.TemplateNotFoundException: File not found: /~cfusion/filetest.cfm
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

I guess maybe I need to know where the config for webroots is set from the CF/JRun perspective? I'm a decent hand with web server admin stuff, but despite being a CF dev for 10 years, CF admin stuff is still a bit over my head. Any help would be GREATLY appreciated. I'm at my wit's end!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    August 6, 2009

    Enable verbose logging for the jrun connector and see if the logs

    contain anything interesting.

    Mack

    drpepperAuthor
    Participant
    August 6, 2009

    Thanks Mack. I set verbose to true in my httpd.conf, restarted Apache, restarted CF, but I can't see any difference in the logging. Errors seem the same, and no additional info.

    The Apache error_log file is filled with cryptic stuff that looks like it's referencing JRun. Does any of this mean anything to you? Is there another log file I should be looking at?

    [Thu Aug 06 00:06:52 2009] [notice] jrApache[8608: 15070]  filtering / (/usr/local/apache/htdocs/) HOST=null
    [Thu Aug 06 00:06:52 2009] [notice] jrApache[8608: 15070]  filterRequest:   no match
    [Thu Aug 06 00:06:52 2009] [notice] jrApache[8608: 15070]  jrun_trans: sub-request so DECLINED
    [Thu Aug 06 00:06:52 2009] [notice] jrApache[8608: 15070]  jrun_trans: sub-request so DECLINED
    [Thu Aug 06 00:06:52 2009] [notice] jrApache[8608: 15070]  jrun_trans: sub-request so DECLINED
    [Thu Aug 06 00:06:52 2009] [notice] jrApache[8608: 15070]  jrun_service: r is 0x9d1aa98, server is 0x99df290, virtual 1
    [Thu Aug 06 00:06:52 2009] [notice] jrApache[8608: 15070]  jrun_service: no handler, return DECLINED
    [Thu Aug 06 01:10:01 2009] [notice] jrApache[8548: 18910]  jrun_trans: r is 0x9d169d8, server is 0x99df290, virtual 1
    [Thu Aug 06 01:10:01 2009] [notice] jrApache[8548: 18910]     HOST: <null>
    [Thu Aug 06 01:10:01 2009] [notice] jrApache[8548: 18910]  filtering /whm-server-status (/usr/local/apache/htdocs/whm-server-status) HOST=null
    [Thu Aug 06 01:10:01 2009] [notice] jrApache[8548: 18910]  filterRequest:   no match
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  jrun_trans: r is 0x9e5b930, server is 0x99df290, virtual 1
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]     HOST: <null>
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  filtering / (/usr/local/apache/htdocs/) HOST=null
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  filterRequest:   no match
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  jrun_trans: sub-request so DECLINED
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  jrun_trans: sub-request so DECLINED
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  jrun_trans: sub-request so DECLINED
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  jrun_service: r is 0x9e5b930, server is 0x99df290, virtual 1
    [Thu Aug 06 00:11:53 2009] [notice] jrApache[8518: 55474]  jrun_service: no handler, return DECLINED
    [Thu Aug 06 00:15:01 2009] [notice] jrApache[8519: 59314]  jrun_trans: r is 0x9f96cc8, server is 0x99df290, virtual 1
    [Thu Aug 06 00:15:01 2009] [notice] jrApache[8519: 59314]     HOST: <null>
    [Thu Aug 06 00:15:01 2009] [notice] jrApache[8519: 59314]  filtering /whm-server-status (/usr/local/apache/htdocs/whm-server-status) HOST=null
    [Thu Aug 06 00:15:01 2009] [notice] jrApache[8519: 59314]  filterRequest:   no match