Running on Android SD-Card

Hello,

I use Android, the UserLAnd app to run Jekyll.
It works fine on the internal storage but when I run it on the SD card, I get

~/.gem/ruby/2.7.0/gems/jekyll-4.2.2/lib/jekyll/static_file.rb:204:in 
`utime': Operation not permitted @ apply2files - 
/host-rootfs/storage/emulated/0/Documents/niccokunzmann.github.io/_site/LICENSE.txt (Errno::EPERM)

To remove this error, I commented this line in
nano ~/.gem/ruby/2.7.0/gems/jekyll-4.2.2/lib/jekyll/static_file.rb:

unless File.symlink?(dest_path)
    #File.utime(self.class.mtimes[path], self.class.mtimes ...
end

Now, it works!

1 Like