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

I keep running into this issue while building with netlify or travis and 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/

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?

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?

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

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

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

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

1 Like