Skip to content

インデックスが更新されていないのを調査する #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sho-h opened this issue Aug 29, 2017 · 4 comments
Closed

インデックスが更新されていないのを調査する #33

sho-h opened this issue Aug 29, 2017 · 4 comments

Comments

@sho-h
Copy link
Contributor

sho-h commented Aug 29, 2017

最近の更新が反映されてないぽいので確認する。

@sho-h
Copy link
Contributor Author

sho-h commented Aug 29, 2017

syslog。問題なさそう。

Aug 29 00:15:01 (省略) CMD (cd /var/www/docs.ruby-lang.org/current; ruby system/bc-setup-all; ruby system/bc-static-all)

permission。問題なさそう。

$ cd /var/www/docs.ruby-lang.org/current
$ find . ! -user rurema
(出力なし)

併せてls -lしたところ、8/15の日付になっていたため、更新はされてなさそう。

昔のcrontabと今のcrontabで目視で比較するにs/~rurema/.rbenv/shims/ruby/ruby/な感じなので、問題はないように見える。

/var/rubydoc/doctreeを見るに以下なのでgit pullはされてそう。

commit 7eb6db32584f3f48e02636ed63527f6aa5258c7c
Author: Sho Hashimoto <...>
Date:   Thu Aug 24 21:56:17 2017 +0900

    Update net/telnet. (see #303)

crontabの中身についても以下が動くのでコマンドが動いてませんでしたといった事はなさそう。

rurema$ ruby -I /var/rubydoc/bitclust/lib /var/rubydoc/bitclust/bin/bitclust --help
Usage: bitclust [global options] <subcommand> [options] [args]
...

という事は、git pullに失敗してる?(git pullからrmまでの間のどこかに問題があるとか?)

$ cd /var/rubydoc/doctree
$ git status
(未コミットの変更なし)
$ ls -l refm
(新しい)
$ less refm/db-2.4.0/library/minitest.unit
(るりまの#303の修正が反映されてる)

という事なので、上の範囲は問題ないどころか、system/bc-setup-allまではよさそう。system/bc-static-allのどこかと思われるのでもう少し見てみる。

@sho-h
Copy link
Contributor Author

sho-h commented Aug 29, 2017

system/bc-static-allもざっと見た限りでは問題はなさそうに見えるけど実際に影響ない場所に作ってみる...できてしまった。

sho-h$ ruby -I /var/rubydoc/bitclust/lib /var/rubydoc/bitclust/bin/bitclust \
            --database=/var/rubydoc/doctree/refm/db-2.4.0 statichtml \
            --outputdir=/tmp/2.4.0_tmp \
            --templatedir=/var/rubydoc/bitclust/data/bitclust/template.offline \
            --catalog=/var/rubydoc/bitclust/data/bitclust/catalog \
            --fs-casesensitive --canonical-base-url=https://docs.ruby-lang.org/ja/latest/
sho-h$ ls -l /tmp/2.4.0_tmp/library/minitest\=2funit.html
(ファイルができてる)

どこかのバージョンでコンパイルできなくなってないか、確認→問題なし。
一回cronの時間変えてみたりしたけど、変わらず。

最後にmvの辺りを確認してみると、以下の違いがあった。

$ ls -l /var/www/docs.ruby-lang.org/shared/public/ja/2.4.0
(公開されてる方。古い)

$ ls -l /var/www/docs.ruby-lang.org/shared/ja/2.4.0
(system/bc-static-allで作ってる方。新しい)

という事で、system/bc-static-allの置き換えまわりのパスを直すなどしたら更新されるようになりそう。

DOC_ROOT = "/var/www/docs.ruby-lang.org/shared/ja"

/var/www/docs.ruby-lang.org/shared/ja/以下も2.2.0〜2.4.0以外は2.4.0のHTMLみたいなので変えてしまってもいいかは要確認。

@sho-h
Copy link
Contributor Author

sho-h commented Aug 30, 2017

/var/www/docs.ruby-lang.org/shared/ja/以下も2.2.0〜2.4.0以外は2.4.0のHTMLみたいなので変えてしまってもいいかは要確認。

f83ade3 を修正したけど、旧VMではずっとそれ以前のままだったとか?いや、バージョンを更新してるはずだから、それ以後も更新がかかってるはず。というのをもう少し想像してPRを作る事にしよう。

@sho-h sho-h mentioned this issue Sep 4, 2017
3 tasks
@sho-h
Copy link
Contributor Author

sho-h commented Sep 5, 2017

上記ほど昔ではなく、 5ec88c9 で色々とpublicに移動した時に以下を移動していなかったようだ。

  • system/bc-static-all
  • system/rdoc-static-all

@sho-h sho-h closed this as completed in 2b8a86f Sep 6, 2017
sho-h added a commit that referenced this issue Sep 6, 2017
Update output directory to follow 5ec88c9. (fix #33)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant