Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Sally W. on April 16, 2018, 10:34:09 am



Title: fgl_getfile & error -8066
Post by: Sally W. on April 16, 2018, 10:34:09 am
I have code that works for me, another user tried to use it, when an attempt was made to transfer the file to the server it failed with STATUS set to error -8066.  Originally it did that for me as well but the error 'went away'.  I can't find what error -8066 means.


Title: Re: fgl_getfile & error -8066
Post by: Reuben B. on April 16, 2018, 10:39:38 am
Did you try this page, it documents the BDL errors http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/r_fgl_errors_001.html


Title: Re: fgl_getfile & error -8066
Post by: Sally W. on April 16, 2018, 07:29:06 pm
Thanks I'd not managed to find that page


Title: Re: fgl_getfile & error -8066
Post by: Reuben B. on April 17, 2018, 12:44:11 am
For any Genero error number, you should be able to type that number into the documentation search tool (online, Studio, or PDF), and it should return an entry. 


Title: Re: fgl_getfile & error -8066
Post by: Nuno G. on April 19, 2018, 12:38:10 pm
check umask and file permissions at the destinattion dir.


Title: Re: fgl_getfile & error -8066
Post by: Sally W. on April 23, 2018, 03:32:50 pm
OK, target directory is drw-rw-rw, and umask for the user in question is 0000.  I'm not sure that this should cause a problem.  However I think we have a different and better solution which means she won't have to do anything at all - the file will get loaded by the people who create it (who were emailing it to her) and a script will pick it up and send it to the program which processes it.  :)


Title: Re: fgl_getfile & error -8066
Post by: Nuno G. on May 02, 2018, 10:31:42 am
You can also use os.path.chmod(...) method and change the file permissons at creation time.


Title: Re: fgl_getfile & error -8066
Post by: Sally W. on May 02, 2018, 03:07:21 pm
I believe I had to be able to copy the file from the PC to the Unix box before I can use os.path.chmod(...).  Anyway changed how it will be done so no copying from the PC is required.  Thanks all.


Title: Re: fgl_getfile & error -8066
Post by: Nuno G. on May 02, 2018, 03:13:17 pm
I assumed you were creating the file on the server side. If that's not the case then yes, you area right. os.path.chown only on the server side