• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Random File Permission Errors

Community Beginner ,
Apr 15, 2021 Apr 15, 2021

Copy link to clipboard

Copied

Just recently, I am getting the following error on a CFDUMP command.  I have a routine that runs every hour and 95% of the time, it works perfectly fine.  Every once in a while I'll get this error.  Would love to hear any thoughts as to how to possibly tackle this mysterious error!

 

COLUMN

0

LINE

-1

RAW_TRACE

java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\ColdFusion11\cfusion\wwwroot\CFIDE" "read")

TEMPLATE

"java.io.FilePermission" "C

TYPE

CFML

Views

257

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 16, 2021 Apr 16, 2021

Do you have sandboxes enabled? Those will cause this kind of error, although they usually cause it to happen all the time. But if you disable sandboxes, you shouldn't get any permissions issues when executing CF's own code.

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate
Community Expert ,
Apr 16, 2021 Apr 16, 2021

Copy link to clipboard

Copied

Mysterious, indeed. It appears that, once in a while, cfdump is denied read-access to a file. A potential cause is that, at the time, some other process was busy with the file.

 

If so, then a named lock around the cfdump will solve the problem. Something like:

 

<cflock name="lockToPreventRaceConditions" timeout="10">
    <cfdump var="xxx">
</cflock>

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 16, 2021 Apr 16, 2021

Copy link to clipboard

Copied

Do you have sandboxes enabled? Those will cause this kind of error, although they usually cause it to happen all the time. But if you disable sandboxes, you shouldn't get any permissions issues when executing CF's own code.

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

Thanks for the replies.  It turns out a change my host made did the trick.  They added an explicit sandbox READ permission on C:\ColdFusion11\cfusion\wwwroot\CFIDE and C:\ColdFusion11\cfusion\wwwroot\CFIDE\

 

Since that change, I haven't seen the error appear.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2021 Apr 25, 2021

Copy link to clipboard

Copied

LATEST

I'm glad that helped! Sandboxes are a bit too complicated for me, so I try to avoid them. I owe this specific bit of knowledge to a guy named Russ Michaels.

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation