Code Analyzer - file in use problem

11 views
Skip to first unread message

Kristin

unread,
Sep 9, 2015, 12:13:12 PM9/9/15
to Central New York ColdFusion Users Group
Hi All,

Using CF10 Enterprise: I occasionally use the Code Analyzer on a dev server when I upload a bunch of code to catch syntax errors before testing.  Sometimes it seems to "hang on" to the the files and not let me upload(ftp)/overwrite any of the files recently analyzed.  Usually when that happens, I can just analyze another directory, then it "lets go" of the original directory.  So recently I did just that, but now it will not "let go" of some of the files.

By this, I mean when I try to ftp some files up to the server, I get permission denied, the file is in use by another process.  If I get on the server, I can edit the file directly, but I can't delete it, it tells me the file is in use by coldfusion.exe.  It is just a few (cfm) files within one particular directory on the site.  Not all files, and so far, I haven't seen this on any other directories.

Any ideas on how to get CF to "release" these files?

Thanks,

Kristin






Pete Freitag

unread,
Sep 9, 2015, 2:00:07 PM9/9/15
to cfu...@googlegroups.com
Hi Kristin,

It sounds like the code analyzer is not closing the files after reading them, or perhaps if there is a syntax error in the file it keeps it open... To workaround this I would simply run the code analyzer locally on my computer instead of on the server.

I haven't really seen any other issue of coldfusion hangin on to a file like that unless some sort of error condition occurred while processing the file, for example: https://bugbase.adobe.com/index.cfm?event=bug&id=3929327

--
Pete Freitag
https://foundeo.com/ - ColdFusion Consulting & Products
http://hackmycf.com - CFML Server Security Scanner


--
You received this message because you are subscribed to the Google Groups "Central New York ColdFusion Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfugcny+u...@googlegroups.com.
To post to this group, send email to cfu...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfugcny.
For more options, visit https://groups.google.com/d/optout.

Kristin

unread,
Sep 9, 2015, 2:31:24 PM9/9/15
to Central New York ColdFusion Users Group
Thanks Pete, in the future, I'll do that.  But how do I get CF to close the files it says are in use on the server now?  Do I need to restart CF?

Thanks,

Kristin

Pete Freitag

unread,
Sep 9, 2015, 2:56:49 PM9/9/15
to cfu...@googlegroups.com
On Wed, Sep 9, 2015 at 2:31 PM, Kristin <kgi...@itx.net> wrote:
Thanks Pete, in the future, I'll do that.  But how do I get CF to close the files it says are in use on the server now?  Do I need to restart CF?

Restarting is the only way that I know of.

Jason Quatrino

unread,
Sep 9, 2015, 3:08:23 PM9/9/15
to cfu...@googlegroups.com
Kristin, if you're using a Windows server, you may be able to open Share and Storage Management, choose the "Manage Open Files..." option, choose the file(s) currently locked, then close them that way. Good luck!

Regards,
Jason

--
Jason Quatrino
Senior Web Developer
Library and Information Technology Services
Hamilton College

--

Kristin

unread,
Sep 9, 2015, 3:28:31 PM9/9/15
to Central New York ColdFusion Users Group
Ok, thanks Jason, I'll try that first, and restart CF if it doesn't work.

Thanks!
Reply all
Reply to author
Forward
0 new messages