Unable to access file - error 201 (ErrDisallowed)

I have built a stats program that reads logs files. Since we updated to 6.5.3 one of the background agents cannot open the daily “access.log” page. I keep getting Err 201 (ErrDisallowed). Theyre are others agents that read without problems the other log files (referer, etc.) located in the same directory. So it’s not a problem of file location or having access to the files.

It’s as if the fileNum% is not free. I tried using a random fileNum% instead of freeFile% in the code, to no avail.

======== code I use

Dim fileNum As Integer

fileNum% = Freefile()

nFile$ = “myfile.log”

Open nFile$ For Input As fileNum%

==============

Our logs files have become quite large (15 to 20mb). Could that be the cause?

Any ideas?

Thanks,

Bernard Lebleu

L’Encyclopédie de L’Agora

http://agora.qc.ca

Subject: Unable to access file - error 201 (ErrDisallowed)

Normally you should only read log files which are finished and never touched again by Domino, for example if you set Domino to create log files for each month, you should only read log files of the previous month. The current months log file is probably locked by Domino, since it keeps adding new entries to it.

Subject: RE: Unable to access file - error 201 (ErrDisallowed)

Thanks for your answer but I tried accessing a log from the previous month and I got the same error message. Furthermore, why could I be able to access the “referer” log files, not the “access”? (Which means that it’s not an ECL problem as suggested by Dallas. This is what puzzles me the most.

Subject: RE: Unable to access file - error 201 (ErrDisallowed)

It sounds like the agent which tries to open the access logs, has not “2. Allow restricted operations” in the “Agent Design/Security” tab selected, like Dallas suggested.

Subject: RE: Unable to access file - error 201 (ErrDisallowed)

I did not understood Dallas explanation at first. The agent level of access was indeed the problem.

Thanks to both of you.

Subject: Unable to access file - error 201 (ErrDisallowed)

In addition to Mika’s observation/suggestion . . .In my experience, error 201 is often an ECL problem. You may want to check the runtime security level of the agent and make sure it’s set to at least “2 - Allow restricted operations”.

dgg