Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Long step defintion -> filename too long (linux fc 13) #34

Closed
reckbo opened this issue Jan 29, 2013 · 3 comments
Closed

BUG: Long step defintion -> filename too long (linux fc 13) #34

reckbo opened this issue Jan 29, 2013 · 3 comments
Assignees
Labels

Comments

@reckbo
Copy link
Contributor

reckbo commented Jan 29, 2013

As an example, this step fails for me:

dwi_found, t1_found, t2_found, flair_found, swi_found  <- find_dicom_folders

with

BASE=/tmp/case_id_020_20130104_1_23_2013_14_20_6.zip.dir

java.io complains "(File name too long)" when trying to write to .drake/.

(2.6.34.9-69.fc13.x86_64 #1 SMP Tue May 3 09:23:03 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux)

@ghost ghost assigned aboytsov Jan 29, 2013
@aboytsov
Copy link
Contributor

The problem is that Drake creates temporary files which names it builds from the step definition using absolute filenames. We probably need to switch to relative ones, and make sure the directory filenames are less than 255 character long, disambiguating conflicts with .1, .2 or something similar. I'll try to fix it soon.

In the meantime, you have two options:

  1. Shorten absolute filenames. Try symlinks:
ln -s /tmp/case_id_020_20130104_1_23_2013_14_20_6.zip.dir /a
cd /a
drake
  1. Use fewer outputs. If you can't, hardcode outputs in your steps command. You can still use them as inputs elsewhere, but the dependency link will be lost. So, you'll have to specify targets manually in the command line for the time being, if you choose this workaround.

@aboytsov
Copy link
Contributor

Fixed it feature/filenames: 342d495

Will close when moved to develop.

@aboytsov
Copy link
Contributor

aboytsov commented Feb 3, 2013

Fixed in develop.

@aboytsov aboytsov closed this as completed Feb 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants