WebUIを起動したときのコンソールに気になるメッセージがあります。
>PS C:\narou> narou web
>tilt/erubis is deprecated, as erubis requires modifying string literals
>{:uplevel=>1}
>ttp://192.168.11.10:48281/
>サーバを止めるには Ctrl+C を入力
>
>Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) for "192.168.11.10" port 48282
>ポートが使われています。サーバがすでに立ち上がっているかどうか確認して下さい。
>他のアプリケーションが使っているポートだった場合、ポートを変更して下さい。
>
>ポートの変更方法
> $ narou s server-port=5678
このログは毎回出てる?
>Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) for "192.168.11.10" port 48282
>ポートが使われています。サーバがすでに立ち上がっているかどうか確認して下さい。
>他のアプリケーションが使っているポートだった場合、ポートを変更して下さい。
ハーメルンが以下のuser-agentを設定しても削除しても403エラーになる。
ブラウザからはアクセス可能なのでクローラー対策が厳しくなったののかな?
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Linux(Debian12 stable)、narou 3.9.1で下記コマンドを実行
narou u -n 15 --backtrace
narou:3.9.1
ruby:3.3.6
JAVA:openjdk version "21.0.5" 2024-10-15 LTS
AozoraEpub3:1.1.0b46
<internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- tilt/erubis (LoadError)
from <internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/web/appserver.rb:15:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/web/all.rb:7:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/web/all.rb:7:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/web.rb:118:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/web.rb:118:in `boot'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/web.rb:87:in `execute'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandline.rb:29:in `run'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandline.rb:43:in `run!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/narou.rb:49:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/bin/narou:13:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/bin/narou:13:in `<top (required)>'
from C:/Ruby33-x64/bin/narou:32:in `load'
from C:/Ruby33-x64/bin/narou:32:in `<main>'
narou:3.9.1
ruby:3.3.6 (2024-11-05 revision 75015d4c1f) [x64-mingw-ucrt]
JAVA:java version "1.8.0_431"
Java(TM) SE Runtime Environment (build 1.8.0_431-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.431-b10, mixed mode)
AozoraEpub3改造版:AozoraEpub3-1.1.1b30Q
以下、ログ:
ID:1984 悪役令嬢の中の人【書籍化・コミカライズ】 の変換を開始
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.
Exception in thread "main" java.lang.UnsupportedClassVersionError: AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
pid 4652 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
(続き)
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1659:in 'IO.open'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1659:in 'block in Net::HTTP#connect'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/timeout.rb:185:in 'block in Timeout.timeout'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/timeout.rb:192:in 'Timeout.timeout'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1657:in 'Net::HTTP#connect'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1636:in 'Net::HTTP#do_start'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/net/http.rb:1625:in 'Net::HTTP#start'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:351:in 'OpenURI.open_http'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:825:in 'URI::HTTP#buffer_open'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:233:in 'block in OpenURI.open_loop'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:231:in 'Kernel#catch'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:231:in 'OpenURI.open_loop'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:163:in 'OpenURI.open_uri'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in 'OpenURI.open_uri'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:805:in 'OpenURI::OpenRead#open'
from /opt/homebrew/Cellar/ruby/3.4.1/lib/ruby/3.4.0/open-uri.rb:29:in 'URI.open'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/downloader.rb:731:in 'Downloader#get_toc_source'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/downloader.rb:840:in 'block in Downloader#get_subtitles_multipage'
from <internal:numeric>:257:in 'Integer#times'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/downloader.rb:834:in 'Downloader#get_subtitles_multipage'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/downloader.rb:789:in 'Downloader#get_latest_table_of_contents'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/downloader.rb:351:in 'Downloader#run_download'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/downloader.rb:334:in 'Downloader#start_download'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/command/update.rb:182:in 'block in Command::Update#execute'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/command/update.rb:157:in 'Array#each'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/command/update.rb:157:in 'Enumerable#each_with_index'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/command/update.rb:157:in 'Command::Update#execute'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/commandbase.rb:125:in 'Command::CommandBase#execute!'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/commandbase.rb:134:in 'Command::CommandBase.execute!'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/commandline.rb:29:in 'CommandLine.run'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/commandline.rb:43:in 'CommandLine.run!'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/narou.rb:50:in 'block in <top (required)>'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/lib/backtracer.rb:16:in 'Narou::Backtracer.capture'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/narou.rb:49:in '<top (required)>'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/bin/narou:13:in 'Kernel#require_relative'
from /opt/homebrew/lib/ruby/gems/3.4.0/gems/narou-3.9.1/bin/narou:13:in '<top (required)>'
from /opt/homebrew/lib/ruby/gems/3.4.0/bin/narou:25:in 'Kernel#load'
from /opt/homebrew/lib/ruby/gems/3.4.0/bin/narou:25:in '<main>'
c:\MyNovel>narou web ui
<internal:C:/Ruby34-x64/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:141:in 'Kernel#require': cannot load such file -- tilt/erubis (LoadError)
from <internal:C:/Ruby34-x64/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:141:in 'Kernel#require'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/web/appserver.rb:15:in '<top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/web/all.rb:7:in 'Kernel#require_relative'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/web/all.rb:7:in '<top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/command/web.rb:118:in 'Kernel#require_relative'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/command/web.rb:118:in 'Command::Web#boot'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/command/web.rb:87:in 'Command::Web#execute'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandbase.rb:125:in 'Command::CommandBase#execute!'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandbase.rb:134:in 'Command::CommandBase.execute!'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandline.rb:29:in 'CommandLine.run'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandline.rb:43:in 'CommandLine.run!'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/narou.rb:50:in 'block in <top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/backtracer.rb:16:in 'Narou::Backtracer.capture'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/narou.rb:49:in '<top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/bin/narou:13:in 'Kernel#require_relative'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/bin/narou:13:in '<top (required)>'
from C:/Users/arity/AppData/Local/Microsoft/WindowsApps/narou:36:in 'Kernel#load'
from C:/Users/arity/AppData/Local/Microsoft/WindowsApps/narou:36:in '<main>'
<internal:C:/Ruby34-x64/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require': cannot load such file -- tilt/erubis (LoadError)
from <internal:C:/Ruby34-x64/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/web/appserver.rb:15:in '<top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/web/all.rb:7:in 'Kernel#require_relative'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/web/all.rb:7:in '<top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/command/web.rb:118:in 'Kernel#require_relative'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/command/web.rb:118:in 'Command::Web#boot'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/command/web.rb:87:in 'Command::Web#execute'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandbase.rb:125:in 'Command::CommandBase#execute!'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandbase.rb:134:in 'Command::CommandBase.execute!'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandline.rb:29:in 'CommandLine.run'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/commandline.rb:43:in 'CommandLine.run!'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/narou.rb:50:in 'block in <top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/lib/backtracer.rb:16:in 'Narou::Backtracer.capture'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/narou.rb:49:in '<top (required)>'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/bin/narou:13:in 'Kernel#require_relative'
from C:/Users/arity/.local/share/gem/ruby/3.4.0/gems/narou-3.9.1/bin/narou:13:in '<top (required)>'
from C:/Users/arity/AppData/Local/Microsoft/WindowsApps/narou:36:in 'Kernel#load'
from C:/Users/arity/AppData/Local/Microsoft/WindowsApps/narou:36:in '<main>'
c:\MyNovel>ruby -version
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x64-mingw-ucrt]
-e:1:in '<main>': undefined local variable or method 'rsion' for main (NameError)
JAVAも21を入れましたが、相変わらずです。。。
c:\MyNovel>narou web ui
<internal:C:/Ruby34-x64/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:141:in 'Kernel#require': cannot load such file -- tilt/erubis (LoadError)
エラーログ
C:/Ruby33-x64/lib/ruby/3.3.0/fileutils.rb:402:in `mkdir': Invalid argument @ dir_s_mkdir - D:/Narou/Mynovel/小説データ/<th>掲載サイト< (Errno::EINVAL)
from C:/Ruby33-x64/lib/ruby/3.3.0/fileutils.rb:402:in `fu_mkdir'
from C:/Ruby33-x64/lib/ruby/3.3.0/fileutils.rb:380:in `block (2 levels) in mkdir_p'
from C:/Ruby33-x64/lib/ruby/3.3.0/fileutils.rb:378:in `reverse_each'
from C:/Ruby33-x64/lib/ruby/3.3.0/fileutils.rb:378:in `block in mkdir_p'
from C:/Ruby33-x64/lib/ruby/3.3.0/fileutils.rb:370:in `each'
from C:/Ruby33-x64/lib/ruby/3.3.0/fileutils.rb:370:in `mkdir_p'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/downloader.rb:1320:in `init_novel_dir'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/downloader.rb:364:in `run_download'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/downloader.rb:334:in `start_download'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/download.rb:142:in `block in execute'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/download.rb:110:in `each'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/download.rb:110:in `with_index'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/download.rb:110:in `execute'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandline.rb:29:in `run'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandline.rb:43:in `run!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/narou.rb:49:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/bin/narou:13:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/bin/narou:13:in `<top (required)>'
from C:/Ruby33-x64/bin/narou:32:in `load'
from C:/Ruby33-x64/bin/narou:32:in `<main>'
【エラー】
C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:872:in `block in result': no implicit conversion of Hash into Integer (TypeError)
from C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:874:in `result'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.9.1/lib/template.rb:53:in `block in get'