Jekyll 3.8.5 | Error: File exists @ dir_s_mkdir - /home/travis/build


#1

I keep running into this issue while building with netlify or travis and forestry.io. When I inspect the build log, I find a line that looks like

I’m using jekyll-paginate-v2. See the repo here

jekyll 3.8.5 | Error:  File exists @ dir_s_mkdir - /home/travis/build/onweru/onweru.github.io/_site/tag/data-viz/index.html

I have worked with three different repos with the error arising each an every time. I have so far been unable to spot the bug.

The site builds locally too without issues

@mmistakes, maybe you could help?

Anyone with a clue?


#2

googling File exists @ dir_s_mkdir brings up lots of issues with ruby - some with symlink issues.

Are you using symlinks anywhere? which OS are you using?


#3

Try locking jekyll-paginate-v2 to v2.0.0:

gem 'jekyll-paginate-v2', '2.0.0'

#4

@ashmaroli, I stumbled across Github this issue which you have commented on. It didn’t disappoint. Thanks a lot!


#5

You’re welcome. I even submitted a fix for this.
But, the author hasn’t responded yet.