[Shake-dev] genex error

Bruce Worden cbworden at gmail.com
Fri Feb 8 16:47:21 UTC 2013


Hi Branden,

I'm not 100% sure what is going on here -- it could just be that the path name is too long, or some element of the path name is too long -- but the error seems to indicate that your system isn't allowing the creation of a symbolic link to a directory that doesn't exist. The message is coming from a symlink() call from .../genex/ftp/<evid> to .../genex/web/shake/<evid>/download. But that call is made before the download directory is actually created. This is called a "dangling link" and has been allowed on every system I've ever used and seems to be widely endorsed. You could try a test to see if that might be the problem. At your system prompt ('%' in this example), try:

	% ln -s ../nonexistentfile

or something like that. If it doesn't work, that explains the problem. If it does, then we'll have to look for something else, or test that it works in your system's particular implementation of symlink(). (If it does work, you'll want to remove the link 'nonexistentfile' from your  working directory.)

Bruce


On Feb 7, 2013, at 7:32 PM, Branden Christensen <branden.christensen at osop.com.pa> wrote:

> Hi all:
> 
> 
> I am working on generating shakemaps for event.xml and event_db.xml files created by SeisComP's scwfparams. 
> 
> When running genex I get this error:
> 
> Creating 'genex/ftp/20130208000119_45_07080_-76708_20130208000925/' directory
> genex: Unable to create 'genex/ftp/20130208000119_45_07080_-76708_20130208000925/' link -- No such file or directory
> 
> This directory does not exist so genex did not generate it. The file permissions at ...genex/ftp are OK so genex should have been able to generate the genex/ftp/20130208000119_45_07080_-76708_20130208000925/ directory. There are no early errors hinting to why genex failed to create this directory. Any ideas what might be wrong here?
> 
> Best, B
> 
> 
> Branden Christensen
> branden.christensen at osop.com.pa
> www.osop.com.pa
> Volcan, Panama
> 
> Follow OSOP on Facebook: https://www.facebook.com/osop.pamama
> _______________________________________________
> Shake-dev mailing list
> Shake-dev at geohazards.usgs.gov
> https://geohazards.usgs.gov/mailman/listinfo/shake-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20130208/61491f0e/attachment.html>


More information about the Shake-dev mailing list