C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/extension.rb:41:in `write': Permission denied @ rb_sysopen - C:/Users/”ユーザー名”/Desktop/TEMP/narou/.narou/database.yaml.backup (Errno::EACCES)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/extension.rb:41:in `write'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:63:in `block in save'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:62:in `synchronize'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:62:in `save'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/database.rb:50:in `save_database'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/update.rb:224:in `ensure in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/update.rb:225:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby32-x64/bin/narou:32:in `load'
from C:/Ruby32-x64/bin/narou:32:in `<main>'
#<Thread:0x0000024c7c0fc600 C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError)
from C:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `ssl_socket_connect'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:1038:in `connect'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:970:in `do_start'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:959:in `start'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:323:in `open_http'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:741:in `buffer_open'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:212:in `block in open_loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:210:in `catch'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:210:in `open_loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:151:in `open_uri'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:721:in `open'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:29:in `open'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:728:in `get_toc_source'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:763:in `get_latest_table_of_contents'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:349:in `run_download'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:332:in `start_download'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:182:in `block in execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2024-03-22 00:13:14] ERROR OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)\n\tC:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `ssl_socket_connect'
== Sinatra has ended his set (crowd applauds)
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/novelinfo.rb:51:in `parse_novel_info'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/novelinfo.rb:18:in `load'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:766:in `get_latest_table_of_contents'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:349:in `run_download'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:332:in `start_download'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:182:in `block in execute'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each_with_index'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `execute'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
C:/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `initialize': Blocking operation timed out! (IO::TimeoutError)
AozoraEpub3 Ver.1.1.1b23Q では、
--------------------------------------------------------------------------------
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 10632 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
--------------------------------------------------------------------------------
と表示され、実行できないようです。
正常に動作するか否かは、エクスプローラー上から「AozoraEpub3.jar」を実行可能かどうかでも判断できる感じでしょうか?
ひとまずは、Javaの最新版から前バージョン以前に戻すことができれば、解決は可能なようですが、色々と不便ですね。
>>898
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
というのは、Java Runtime Class File Version 65.0でコンパイルされているが、クライアントに入ってるJava Runtime Class FileのVersionは52.0だから起動できないというエラーです。
JavaのVerが1上がるごとにClass FileのVerも1上がる。
JDK Class File Versions 相対表
ttps://javaalmanac.io/bytecode/versions/
何が起きたのか:
892さんと同じくjava version "1.8.0_411"にアップデートした後から変換時に文字化けエラーが発生
java version "1.8.0_411をアンインストール、Version:21をインストール
AozoraEpub3-1.1.0b55QからAozoraEpub3-1.1.1b23Qに設定切り替え
再現方法(何をやったら起こったのか詳細に):
EPUBに変換を実行
AozoraEpub3でEPUBに変換しています....C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:202:in `txt_to_epub': invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:315:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:300:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `hook_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:252:in `block in convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/mixin/locker.rb:26:in `lock'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `with_index'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:159:in `block in main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:133:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/narou.rb:369:in `concurrency_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:122:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby32-x64/bin/narou:32:in `load'
from C:/Ruby32-x64/bin/narou:32:in `<main>'
何が起きたのか:narou web を実行したが、WEB UI (ブラウザ) が立ち上がらず、以下のエラーが表示された
D:\MyNovel>narou web
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
D:\MyNovel>narou web --backtrace
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
from <internal:dir>:411:in `glob'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:29:in `load_settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:49:in `settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:947:in `block in <class:AppServer>'
from <internal:kernel>:90:in `tap'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:946:in `<class:AppServer>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:25:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `boot'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:87:in `execute'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:29:in `run'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:43:in `run!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:50:in `block in <top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/backtracer.rb:16:in `capture'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:49:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `<top (required)>'
from C:/Ruby33-x64/bin/narou:32:in `load'
from C:/Ruby33-x64/bin/narou:32:in `<main>'
>java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.411-b09, mixed mode)
D:\MyNovel>narou update 5
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'