file error, what file?

Michael McDaniel erlang@REDACTED
Tue Jan 18 04:44:47 CET 2005


On Mon, Jan 17, 2005 at 07:18:09PM -0800, Michael McDaniel wrote:
> 
> On Tue, Jan 18, 2005 at 02:45:57AM +0100, Thomas Lange wrote:
> > Michael McDaniel wrote:
> > >When I start my erlang shell, I consistently get the following error:
> > >{error_logger,{{2005,1,11},{15,7,9}},std_error,'File operation error: 
> > >eacces. Function: get_file. Process: kernel_sup.'}
> > >
> > >I forced a linewrap after the 'eacces.'.  Of course, date/time changes
> > >on each start!
> > >
> > >How can I find out what is the problem file?  The system starts and 
> > >appears to
> > >work fine for what I am doing.  No erlang_crash.dump is created.
> > <...>
> > 
> > If you want to see exactly what erlang is doing, use strace command.
> > Example:
> > 
> > # strace erl 2>/tmp/x
> > Erlang (BEAM) emulator version 5.3.6.3 [source] [hipe]
> > 
> > Eshell V5.3.6.3  (abort with ^G)
> > 1>
> > 
> > /tmp/x will then contain all system calls performed and you can grep
> > for EACCESS.
> > 
> > /Thomas
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Thank you very much.  I thought I had done that before.  It is
> now apparent that I had used ltrace rather than strace.
> 
> Using the proper strace, of course, I can find the error!
> 
> I had been running Erlang for so long, and changed a file
> permission sometime.  After the system crash I had to 
> restart Erlang and then the eaccess startup problem showed.
> 
> Also, it becomes readily apparent where the 
> systools:make_script() problem is when I use the proper
> trace tool, so that is solved now also!
> 
> thanks again,
> 
> ~Michael
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
P.S. using strace and running   systools:make_script("start_ssl_clean")
shows error

stat64("/usr/local/lib/erlang/lib/ssl-3.0.4/src/ssl_pkix_oid.erl", 0xbfffeadc) = -1 ENOENT (No such file or directory)

After I symlink the .erl files from ... /ssl-3.0.4/pkix/   to ... /ssl-3.0.4/src/  directory
then systools:make_script() worked without the problems of not finding source code.

contents of start_ssl_clean.rel:
{release, {"OTP  APN 181 01","R10B"}, {erts, "5.4.2.3"},
 [{kernel,"2.10.3"},
  {stdlib,"1.13.3"},
  {ssl,"3.0.4"}]}.
% see
% file:///usr/local/lib/erlang/lib/ssl-3.0.4/doc/html/ssl_distribution.html
% for ssl info


~Michael





More information about the erlang-questions mailing list