Ruby Daemons not starting

I use ruby ​​daemon pearls to create my own daemon for my rails project. The only problem is that when I try to start the daemons ruby lib/daemons/test_ctl start, it fails and will not start. This log file has this file.

# Logfile created on Wed Oct 22 16:14:23 +0000 2008 by /  
*** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally \*\*\*  
# MissingSourceFile: no such file to load -- utf8proc_native  
*** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***  
# NoMemoryError: failed to allocate memory>  
# SystemStackError: stack level too deep>  
# fatal: exception reentered>  
# LoadError: no such file to load -- daemons>  
# LoadError: no such file to load -- active_support>  
# MissingSourceFile: no such file to load -- lib/string>  
# MissingSourceFile: no such file to load -- utf8proc_native>  

This happens even when I generate a daemon (from the rails plugin) and try to run it. Does anyone know how to solve this problem?

+3
source share
2 answers

, . config/environment.rb. , rails, . .

+3

30 , , :

LoadError: no such file to load -- active_support

- active_support lib, . (, - ).
, active_support ctl (, lib/daemons/mailer_ctl).

5:

   require 'active_support'

to

 require './vendor/rails/activesupport/lib/active_support.rb'
+1

Source: https://habr.com/ru/post/1698563/


All Articles