イナバ化粧品店さんの取材記事はこちら
RuntimeError at /cgi-bin/feedlink/inaba.cgi

RuntimeError at /cgi-bin/feedlink/inaba.cgi

redirection forbidden: http://www.e-tsuyama.com/report/tag/%E3%82%A4%E3%83%8A%E3%83%90%E5%8C%96%E7%B2%A7%E5%93%81%E5%BA%97/atom.xml -> https://www.e-tsuyama.com/cgi-bin/mt/mt-search.cgi?blog_id=45&tag=%e3%82%a4%e3%83%8a%e3%83%90%e5%8c%96%e7%b2%a7%e5%93%81%e5%ba%97

Ruby /usr/lib/ruby/1.8/open-uri.rb: in open_loop, line 174
Web GET www.e-tsuyama.com/cgi-bin/feedlink/inaba.cgi

Jump to:

Traceback (innermost first)

  • /usr/lib/ruby/1.8/open-uri.rb: in open_loop
    1. if redirect
    2. if redirect.relative?
    3. # Although it violates RFC2616, Location: field may have relative
    4. # URI. It is converted to absolute URI using uri as a base URI.
    5. redirect = uri + redirect
    6. end
    7. unless OpenURI.redirectable?(uri, redirect)
    1. raise "redirection forbidden: #{uri} -> #{redirect}"...
    1. end
    2. if options.include? :http_basic_authentication
    3. # send authentication only for the URI directly specified.
    4. options = options.dup
    5. options.delete :http_basic_authentication
    6. end
    7. uri = redirect
  • /usr/lib/ruby/1.8/open-uri.rb: in open_uri
    1. unless mode == nil ||
    2. mode == 'r' || mode == 'rb' ||
    3. mode == File::RDONLY
    4. raise ArgumentError.new("invalid access mode #{mode} (#{uri.class} resource is read only.)")
    5. end
    1. io = open_loop(uri, options)...
    1. if block_given?
    2. begin
    3. yield io
    4. ensure
    5. io.close
    6. end
    7. else
  • /usr/lib/ruby/1.8/open-uri.rb: in open
    1. # pbar.set s if pbar
    2. # }) {|f| ... }
    3. #
    4. # OpenURI::OpenRead#open returns an IO like object if block is not given.
    5. # Otherwise it yields the IO object and return the value of the block.
    6. # The IO object is extended with OpenURI::Meta.
    7. def open(*rest, &block)
    1. OpenURI.open_uri(self, *rest, &block)...
    1. end
    2. # OpenURI::OpenRead#read([options]) reads a content referenced by self and
    3. # returns the content as string.
    4. # The string is extended with OpenURI::Meta.
    5. # The argument `options' is same as OpenURI::OpenRead#open.
    6. def read(options={})
  • /usr/lib/ruby/1.8/open-uri.rb: in open
    1. # In these case, the opened file object is extended by OpenURI::Meta.
    2. def open(name, *rest, &block) # :doc:
    3. if name.respond_to?(:open)
    4. name.open(*rest, &block)
    5. elsif name.respond_to?(:to_str) &&
    6. %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} =~ name &&
    7. (uri = URI.parse(name)).respond_to?(:open)
    1. uri.open(*rest, &block)...
    1. else
    2. open_uri_original_open(name, *rest, &block)
    3. end
    4. end
    5. module_function :open
    6. end
  • ./feedlink.rb: in to_s
    1. urls = []
    2. @feed_urls.each do |data|
    3. url = data[:url]
    4. doc = nil
    5. begin
    1. doc = REXML::Document.new(open(url).read)...
    1. rescue OpenURI::HTTPError => e
    2. #
    3. end
    4. if doc
    5. retrieve_title = nil
    6. retrieve_alternate = nil
    7. retrieve_handheld = nil
  • ./feedlink.rb: in each
    1. excludes << url
    2. end
    3. end
    4. end
    5. urls = []
    1. @feed_urls.each do |data|...
    1. url = data[:url]
    2. doc = nil
    3. begin
    4. doc = REXML::Document.new(open(url).read)
    5. rescue OpenURI::HTTPError => e
    6. #
    7. end
  • ./feedlink.rb: in to_s
    1. excludes << url
    2. end
    3. end
    4. end
    5. urls = []
    1. @feed_urls.each do |data|...
    1. url = data[:url]
    2. doc = nil
    3. begin
    4. doc = REXML::Document.new(open(url).read)
    5. rescue OpenURI::HTTPError => e
    6. #
    7. end
  • /var/www/cgi-bin/feedlink/inaba.cgi: in call
    1. html = feedlink.to_s(
    2. :latest => latest,
    3. :handheld => true,
    4. :limit => limit || 20,
    5. :template => '・<a href="#{url}">#{title}</a> #{options[:new] if published > Time.now - 60*60*24*30}<br /> <font size="-1">#{ published.strftime("%Y.%m.%d") }</font><br />',
    6. :new => '<font color="red">[e:B36]</font>')
    7. else
    1. html = feedlink.to_s(...
    1. :latest => latest,
    2. :limit => limit,
    3. :new => '<img src="http://www.e-tsuyama.com/top/image/new.gif" />')
    4. end
    5. case req.params['ocode']
    6. when 'sjis'
    7. html = NKF.nkf('-Ws --cp932', html)
  • /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/showexceptions.rb: in call
    1. def initialize(app)
    2. @app = app
    3. @template = ERB.new(TEMPLATE)
    4. end
    5. def call(env)
    1. @app.call(env)...
    1. rescue StandardError, LoadError, SyntaxError => e
    2. exception_string = dump_exception(e)
    3. env["rack.errors"].puts(exception_string)
    4. env["rack.errors"].flush
    5. if prefers_plain_text?(env)
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in forward
    1. true
    2. end
    3. end
    4. end
    5. # Delegate the request to the backend and create the response.
    6. def forward
    1. Response.new(*backend.call(@env))...
    1. end
    2. # The request is sent to the backend, and the backend's response is sent
    3. # to the client, but is not entered into the cache.
    4. def pass
    5. record :pass
    6. forward
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in validate
    1. # We keep the etags from the client to handle the case when the client
    2. # has a different private valid entry which is not cached here.
    3. cached_etags = entry.etag.to_s.split(/\s*,\s*/)
    4. request_etags = @request.env['HTTP_IF_NONE_MATCH'].to_s.split(/\s*,\s*/)
    5. etags = (cached_etags + request_etags).uniq
    6. @env['HTTP_IF_NONE_MATCH'] = etags.empty? ? nil : etags.join(', ')
    1. response = forward...
    1. if response.status == 304
    2. record :valid
    3. # Check if the response validated which is not cached here
    4. etag = response.headers['ETag']
    5. return response if etag && request_etags.include?(etag) && !cached_etags.include?(etag)
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in lookup
    1. if entry
    2. if fresh_enough?(entry)
    3. record :fresh
    4. entry.headers['Age'] = entry.age.to_s
    5. entry
    6. else
    7. record :stale
    1. validate(entry)...
    1. end
    2. else
    3. record :miss
    4. fetch
    5. end
    6. end
    7. end
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in call!
    1. @default_options.each { |k,v| env[k] ||= v }
    2. @env = env
    3. @request = Request.new(@env.dup.freeze)
    4. response =
    5. if @request.get? || @request.head?
    6. if !@env['HTTP_EXPECT'] && !@env['rack-cache.force-pass']
    1. lookup...
    1. else
    2. pass
    3. end
    4. else
    5. invalidate
    6. end
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in call
    1. end
    2. # The Rack call interface. The receiver acts as a prototype and runs
    3. # each request in a dup object unless the +rack.run_once+ variable is
    4. # set in the environment.
    5. def call(env)
    6. if env['rack.run_once']
    1. call! env...
    1. else
    2. clone.call! env
    3. end
    4. end
    5. # The real Rack call interface. The caching logic is performed within
    6. # the context of the receiver.
  • /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/handler/cgi.rb: in serve
    1. "rack.url_scheme" => ["yes", "on", "1"].include?(ENV["HTTPS"]) ? "https" : "http"
    2. })
    3. env["QUERY_STRING"] ||= ""
    4. env["HTTP_VERSION"] ||= env["SERVER_PROTOCOL"]
    5. env["REQUEST_PATH"] ||= "/"
    1. status, headers, body = app.call(env)...
    1. begin
    2. send_headers status, headers
    3. send_body body
    4. ensure
    5. body.close if body.respond_to? :close
    6. end
    7. end
  • /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/handler/cgi.rb: in run
    1. require 'rack/rewindable_input'
    2. module Rack
    3. module Handler
    4. class CGI
    5. def self.run(app, options=nil)
    6. $stdin.binmode
    1. serve app...
    1. end
    2. def self.serve(app)
    3. env = ENV.to_hash
    4. env.delete "HTTP_CONTENT_LENGTH"
    5. env["SCRIPT_NAME"] = "" if env["SCRIPT_NAME"] == "/"
  • /var/www/cgi-bin/feedlink/inaba.cgi: in nil
    1. cache = Rack::Cache.new(
    2. Rack::ShowExceptions.new(App.new),
    3. :verbose => true,
    4. :metastore => 'file:' + File.join(File.dirname(File.expand_path(__FILE__)), 'tmp/inaba/meta'),
    5. :entitystore => 'file:' + File.join(File.dirname(File.expand_path(__FILE__)), 'tmp/inaba/body')
    6. )
    1. Rack::Handler::CGI.run cache...

Request information

GET

Variable Value
ocode
"sjis"

POST

No POST data.

No cookie data.

Rack ENV

Variable Value
DOCUMENT_ROOT
/var/www/html/movabletype
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip
HTTP_CONNECTION
close
HTTP_HOST
www.e-tsuyama.com
HTTP_IF_MODIFIED_SINCE
nil
HTTP_IF_NONE_MATCH
nil
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_VERSION
HTTP/1.0
HTTP_X_FORWARDED_FOR
54.80.219.236
HTTP_X_FORWARDED_HOST
www.e-tsuyama.com
HTTP_X_FORWARDED_PROTO
http
HTTP_X_FORWARDED_SERVER
www.e-tsuyama.com
HTTP_X_REAL_IP
54.80.219.236
PATH
/usr/local/rbenv/bin:/sbin:/usr/sbin:/bin:/usr/bin
QUERY_STRING
ocode=sjis
REMOTE_ADDR
54.80.219.236
REMOTE_PORT
53708
REQUEST_METHOD
GET
REQUEST_PATH
/
REQUEST_URI
/cgi-bin/feedlink/inaba.cgi?ocode=sjis
SCRIPT_FILENAME
/var/www/cgi-bin/feedlink/inaba.cgi
SCRIPT_NAME
/cgi-bin/feedlink/inaba.cgi
SERVER_ADDR
127.0.0.1
SERVER_ADMIN
post@e-tsuyama.com
SERVER_NAME
www.e-tsuyama.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.0
SERVER_SIGNATURE
<address>Apache/2.2.15 (CentOS) Server at www.e-tsuyama.com Port 80</address>
SERVER_SOFTWARE
Apache/2.2.15 (CentOS)
on
127.0.0.1
rack-cache.allow_reload
false
rack-cache.allow_revalidate
false
rack-cache.cache_key
Rack::Cache::Key
rack-cache.default_ttl
0
rack-cache.entitystore
file:/var/www/cgi-bin/feedlink/tmp/inaba/body
rack-cache.ignore_headers
["Set-Cookie"]
rack-cache.metastore
file:/var/www/cgi-bin/feedlink/tmp/inaba/meta
rack-cache.private_headers
["Authorization", "Cookie"]
rack-cache.storage
#<Rack::Cache::Storage:0x7f757154ca70 @entitystores={"file:/var/www/cgi-bin/feedlink/tmp/inaba/body"=>#<Rack::Cache::EntityStore::Disk:0x7f757151b998 @root="/var/www/cgi-bin/feedlink/tmp/inaba/body">}, @metastores={"file:/var/www/cgi-bin/feedlink/tmp/inaba/meta"=>#<Rack::Cache::MetaStore::Disk:0x7f757151c230 @root="/var/www/cgi-bin/feedlink/tmp/inaba/meta">}>
rack-cache.use_native_ttl
false
rack-cache.verbose
true
rack.errors
#<IO:0x7f7572167aa8>
rack.input
#<Rack::RewindableInput:0x7f757151cca8 @unlinked=false, @rewindable_io=nil, @io=#<IO:0x7f7572167af8>>
rack.multiprocess
true
rack.multithread
false
rack.request.cookie_hash
{}
rack.request.query_hash
{"ocode"=>"sjis"}
rack.request.query_string
ocode=sjis
rack.run_once
true
rack.url_scheme
http
rack.version
[1, 1]

You're seeing this error because you use Rack::ShowExceptions.


〜イナバ化粧品店さんからご提供いただきました〜

   

がまぐちポーチ(スカイブルー

  ・パッションオレンジ

  ・ライムグリーン)を

  各お一人様にプレゼント!

 

1品で5役!洗顔後は

  これ1品でOK!

  弾力ジェルクリームを

  3名様にプレゼント!

 

ナチュラルローズの惠で

  贅沢リラックス「ばら園」

  シャンプーとコンディショナー

  セットを1名様にプレゼント!


その他、イナバ化粧品店で新製品3本買うと下記のプレゼントもあるそうです。

■詳細内容

【応募締切】 平成25年2月28日(木)まで
【提供者】 イナバ化粧品店様、津山瓦版(「ばら園」
【賞品】 がまぐちポーチ 3名様
アクアレーベル スペシャルジェルクリーム 3名様
「ばら園」シャンプー・コンディショナーセット 1名様
【応募要件】
  • アンケートにお答え下さい。(個人情報は公開しません)
【審査方法】 抽選により当選者を決定し、津山瓦版プレゼントコーナー内で発表します。
ご入力頂いた個人情報がプレゼントの発送以外に利用されることはありません。

 

ニックネーム(当選者発表用)
電子メールアドレス
お名前(公表されません)
プレゼント発送先郵便番号
プレゼント発送先住所
電話番号
性別
年齢
岡山県北在住以外の方にお尋ねします。
津山へ訪れたことはありますか?
訪れた目的は何ですか? ※訪れたことのある方のみ
観光等で訪れた方は、どこへ行きましたか?思い出に残った場所やエピソードはありますか? ※訪れたことのある方のみ
訪れたことのない方、あるかた両方の皆さんにお尋ねします。
これから行ってみたい場所やしてみたいことなどはありますか?
みなさんにお尋ねします。
ご意見・ご感想・スタッフやイナバ化粧品店へのメッセージなど自由に
入力忘れ、間違いがないことをよくご確認の上「応募確認画面へ」を押してください。
ご応募は締め切りました。