xtyxtyx / sorry

在线制作`sorry 为所欲为`的gif
https://sorry.xuty.cc/
MIT License
6.45k stars 788 forks source link

使用docker部署 调用接口报错 #102

Open yongshengdev opened 4 years ago

yongshengdev commented 4 years ago

已经安装了ffmpeg,docker以及服务也都部署了 调用接口报错 http://我的域名:4567/api/sorry/make 麻烦看下 谢谢了 2020-06-20 05:56:56 - Errno::ENOENT - No such file or directory @ rb_sysopen - temp/c9dcdfe4704b23f7671672d7c943d6a0.gif.ass: /app/src/sorry/make_gif.rb:57:in write' /app/src/sorry/make_gif.rb:57:inrender_ass' /app/src/sorry/make_gif.rb:29:in make_gif_with_ffmpeg' /app/src/sorry/make_gif.rb:87:inrender_gif_api' src/sorry.rb:98:in block in <main>' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:incall' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in block in compile!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:inblock (3 levels) in route!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in route_eval' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:inblock (2 levels) in route!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in block in process_route' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:incatch' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in process_route' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:inblock in route!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in each' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:inroute!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in block in dispatch!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:inblock in invoke' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in catch' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:ininvoke' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in dispatch!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:inblock in call!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in block in invoke' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:incatch' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in invoke' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:incall!' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in call' /var/lib/gems/2.5.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:incall' /var/lib/gems/2.5.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in call' /var/lib/gems/2.5.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:incall' /var/lib/gems/2.5.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in call' /var/lib/gems/2.5.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:incall' /var/lib/gems/2.5.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in call' /var/lib/gems/2.5.0/gems/rack-2.2.3/lib/rack/logger.rb:17:incall' /var/lib/gems/2.5.0/gems/rack-2.2.3/lib/rack/common_logger.rb:38:in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:231:incall' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:224:in call' /var/lib/gems/2.5.0/gems/rack-2.2.3/lib/rack/head.rb:12:incall' /var/lib/gems/2.5.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:incall' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:incall' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in block in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:insynchronize' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in call' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:86:inblock in pre_process' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:84:in catch' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:84:inpre_process' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:50:in block in process' /var/lib/gems/2.5.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:1077:inblock in spawn_threadpool' Unexpected error while processing request: invalid byte sequence in US-ASCII /var/lib/gems/2.5.0/gems/rack-2.2.3/lib/rack/utils.rb:171:in gsub' /var/lib/gems/2.5.0/gems/rack-2.2.3/lib/rack/utils.rb:171:inescape_html' /var/lib/gems/2.5.0/gems/rack-2.2.3/lib/rack/show_exceptions.rb:106:in h' (erb):186:inblock (2 levels) in pretty' (erb):185:in each' (erb):185:inblock in pretty' (erb):157:in each' (erb):157:inpretty' /usr/lib/ruby/2.5.0/erb.rb:876:in eval' /usr/lib/ruby/2.5.0/erb.rb:876:inresult' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:82:in pretty' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:31:inrescue in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:21:in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:incall' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:inblock in call' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in synchronize' /var/lib/gems/2.5.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:incall' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:86:in block in pre_process' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:84:incatch' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:84:in pre_process' /var/lib/gems/2.5.0/gems/thin-1.7.2/lib/thin/connection.rb:50:inblock in process' /var/lib/gems/2.5.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:1077:in `block in spawn_threadpool'

yongshengdev commented 4 years ago

作者能看到吗 很需要这个库 麻烦看下 谢谢了

yongshengdev commented 4 years ago

作者 买了服务器域名想用这个功能,麻烦有空可以改改吗 拜托拜托~