We have the same problem. It was really tricky to find the cause because it only occurred in the production environment and only sporadic because we are behind a CDN and it seems to be only triggered if assets are delivered (CDN miss).
We downgraded to ruby 2.4.3 and everything works fine again but I also noticed that we still get the occasional warning
warning: conflicting chdir during another chdir block but without the error that ‘kills’ the process.
We do not have problems with
template files but with files we ‘manually’ load with a relative path (like some yml files via
YAML.load_file('lib/data/some.yml')) or even with translation files (via the
We could try to load everything with absolute paths but that would not help with some gems and would be dangerous because we only ever notice the problem in production.
I’m not sure if this is a Hanami or Ruby issue but I didn’t find any other mentioning of this. Does anybody have more insight what the ‘real’ problem is?