2010-05-03(Mon) [長年日記] この日を編集
_ hudson pxeboot プラグイン!
ubuntu lucid のアップグレードに失敗してしまった...orz.
- 9.10から、アップグレードを試みるも途中でXが固まった。
- 省エネ設定は全部きったのだが...スタンバイっぽくなってた。
- sshで外からはいってごにょごにょしたのだが、手づまりでshutdown -r nowしたら、bootで固まる(--;
- 10.04のCDをおとしてきて、焼いて起動するもインストーラ画面がでてこない
- alt+f1-f12してみたけどうんともすんとも
で、pxebootでと思ったのだけど、そういえばpxebootプラグインがあったなーと思い試す。
- hudson 1.352でpxeプラグインを有効化、再起動
- 最初、desktop-cdをセットしてみたら、エラーになったので、再度落としなおす
- ...ubuntu-10.04-desktop-i386.iso doesn't have the network boot installer in it. Perhaps it's a desktop CD?
- fisheyeでみると、http://fisheye.hudson-ci.org/browse/Hudson/trunk/hudson/plugins/pxe/src/main/java/hudson/plugins/pxe/UbuntuBootConfiguration.java?r=HEAD の UbuntuBootConfiguration#getReleaseInfo で出している模様。
- http://cdimage.ubuntu.com/releases/10.04/release/ から。詳しくはhttp://wiki.hudson-ci.org/display/HUDSON/Ubuntu+PXE+boot+ISO+imagesを。
- DVDイメージをもってきて、パスをセットし、"Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)"なんてのがみえてればおk
- ISOイメージをちゃんとJavaが読み取ってるんだ!すげえ...
- たしかに ISO9660FileSystem オブジェクトからよみとってんなあ...(getReleaseInfoで)
- saveするとどうしてもエラーになる
- sudo visudoで "hudson ALL=NOPASSWD: ALL"を設定するととおった。
- 対象のPCを再起動し、pxebootを選択すると、no-image
- Approve MAC Address で 該当のmacアドレスを受け入れてやり、PCを再起動。
- おお、インストーラがっ!
ふう、長かった...
たしかに、このプラグインの売りのとおり、既存のDHCPは一切変更なしでできた。便利すぎる...。
2010-05-04(Tue) [長年日記] この日を編集
_ ubuntu 10.04なんとか起動した@CF-W2B
インストールが完了したものの、どうもX起動時点で固まってしまうので、いろいろ探してためしたらworkaroundが見つかった!
echo options i915 modeset=1 | sudo tee /etc/modprobe.d/i915-kms.conf sudo update-initramfs -u sudo shutdown -r now
でおk。
そもそも、ここまでたどりつけんのじゃ!という場合は、以下の手順:
- 起動時点でshiftキー押しっぱなし
- grubのメニューがでるので、(recovery mode)を選択
- テキストベースのメニューがでるので、resumeを選択
- ここ、文字化けしてて読めない...英語のほうがマシなんだが
- alt-F1を押すとログインまちになっているので、ここでログインして、上記手順を実施。
これは...ubuntu serverも先が思いやられるな。ちゃんとテストしないとやばげ。
もし問題がでたらリリースノートをあたろう
_ Xが安定しません@CF-W2B
どうもいじってるとXがおっこちる。vesaに切り替えるか、ドライバーをダウングレードすればよいのか...?
_ 起動時にこんなメッセージ
error: no suitable mode found. error: unknown command 'terminal'
気になる...これ、Xの件と関係が...?
2010-05-15(Sat) [長年日記] この日を編集
_ hudson自前ビルドしてみた(失敗)@ubuntu hardy
mavenも初めてなのだけど、とりあえずやってみた。
$ sudo apt-get install maven2 $ mvn --version Maven version: 2.0.8 Java version: 1.6.0_17 OS name: "linux" version: "2.6.24-23-virtual" arch: "i386" Family: "unix" $ git clone git://github.com/kohsuke/hudson.git $ cd hudson $ mvn ....(途中何回かとまったのでとにかく) $ mvn
最初は~/.m2に大量にダウンロードとかをやるようなので、落ち着くまでmvnを連発。だいたいおんなじところで止まるようになってきた。
$ LANG=C mvn -e
....
[INFO] ------------------------------------------------------------------------
[INFO] Building Hudson core
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: default}]
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.8
[INFO] JDK Version: 1.6.0_17 normalized as: 1.6.0-17
[INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.24-23-virtual
[INFO] [localizer:generate {execution: default}]
[INFO] [antlr:generate {execution: default}]
[INFO] grammar: /home/kog/git/hudson/core/src/main/grammar/crontab.g
[INFO] The grammar is already generated
[INFO] [remote-resources:process {execution: default}]
[INFO] inceptionYear not specified, defaulting to 2010
[INFO] [antrun-extended:run {execution: default}]
[INFO] Executing tasks
[echo] The build id is: 1.358-SNAPSHOT (private-05/15/2010 11:52-kog)
[resolveArtifact] Copying /home/kog/.m2/repository/com/sun/winsw/winsw/1.8/winsw-1.8-bin.exe to /home/kog/git/hudson/core/target/classes/windows-service/hudson.exe
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3290 resources
[INFO] [stapler:apt-compile]
[INFO] Compiling 618 source files to /home/kog/git/hudson/core/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/kog/git/hudson/core/src/main/java/hudson/util/ReflectionUtils.java:[26,26] org.kohsuke.stapler.ClassDescriptor is not public in org.kohsuke.stapler; c
annot be accessed from outside package
/home/kog/git/hudson/core/src/main/java/hudson/util/ReflectionUtils.java:[26,26] org.kohsuke.stapler.ClassDescriptor is not public in org.kohsuke.stapler; c
annot be accessed from outside package
/home/kog/git/hudson/core/src/main/java/hudson/util/ReflectionUtils.java:[99,24] cannot find symbol
symbol : variable ClassDescriptor
location: class hudson.util.ReflectionUtils.MethodInfo
/home/kog/git/hudson/core/src/main/java/hudson/model/Run.java:[1535,20] cannot find symbol
symbol : method writeLogTo(int,hudson.util.FlushProofOutputStream)
location: class hudson.console.AnnotatedLargeText
/home/kog/git/hudson/core/src/main/java/hudson/model/AbstractProject.java:[1411,31] cannot find symbol
symbol : method error(int,java.io.IOException)
location: class org.kohsuke.stapler.HttpResponses
/home/kog/git/hudson/core/src/main/java/hudson/PluginManager.java:[513,32] cannot find symbol
symbol : method error(int,java.lang.IllegalArgumentException)
location: class org.kohsuke.stapler.HttpResponses
/home/kog/git/hudson/core/src/main/java/hudson/model/DirectoryBrowserSupport.java:[277,15] cannot find symbol
symbol : method serveFile(org.kohsuke.stapler.StaplerRequest,java.io.InputStream,long,int,long,java.lang.String)
location: interface org.kohsuke.stapler.StaplerResponse
/home/kog/git/hudson/core/src/main/java/hudson/model/DirectoryBrowserSupport.java:[279,15] cannot find symbol
symbol : method serveFile(org.kohsuke.stapler.StaplerRequest,java.io.InputStream,long,int,long,java.lang.String)
location: interface org.kohsuke.stapler.StaplerResponse
/home/kog/git/hudson/core/src/main/java/hudson/console/AnnotatedLargeText.java:[110,4] method does not override or implement a method from a supertype
/home/kog/git/hudson/core/src/main/java/hudson/console/AnnotatedLargeText.java:[149,74] charset has private access in org.kohsuke.stapler.framework.io.LargeText
/home/kog/git/hudson/core/src/main/java/hudson/console/AnnotatedLargeText.java:[150,22] writeLogTo(long,java.io.Writer) in org.kohsuke.stapler.framework.io.LargeText cannot be applied to (long,hudson.console.ConsoleAnnotationOutputStream)
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.kohsuke.stapler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:508)
at org.kohsuke.stapler.CompilerMojo.execute(CompilerMojo.java:111)
at org.kohsuke.stapler.AptMojo.execute(AptMojo.java:21)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 11 seconds
[INFO] Finished at: Sat May 15 11:45:36 JST 2010
[INFO] Final Memory: 39M/63M
[INFO] ------------------------------------------------------------------------
きっとソースじゃなくて、ビルドするときになにかが間違っていると思うのだけど...なんだろう?ビルド途中の成果物をいったんクリーンアップすればいいのかしら?
_ hudson自前ビルドしてみた(失敗)@ubuntu 10.04/CF-W2B
ubuntu 10.04でも同じようにやってみたのだけど、こちらは上で書いたものよりあきらかに先に進んだ。しかし、
- hudson core のテストが全滅
- ubuntu自体が途中で落っこちるようになってしまった(!)
ので、ESXiで10.04を作成中。pxeboot経由でいれてしまえ。
2010-05-16(Sun) [長年日記] この日を編集
_ hudson自前ビルドしてみた(続)@ubuntu lucid/ESXi
とりあえず、失敗はしているものの環境的にはできつつある? ESXi上でubuntu lucidのインスタンスを作り、ubuntu hardy/ESXi 上にあったソースと.m2リポジトリをまるごとコピーしてからやってみたら、同じところまではきた。
.... FAILURES!!! Tests run: 257, Failures: 0, Errors: 255 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Tests run: 257, Failures: 0, Errors: 255 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14 minutes 18 seconds [INFO] Finished at: Sat May 15 21:47:55 JST 2010 [INFO] Final Memory: 79M/158M [INFO] ------------------------------------------------------------------------
CF-W2Bのときは、Total timeが50minくらいだったからやっぱり相当性能差があるんだなー。たしかにCF-W2BはずっとHDDランプもつきっぱなしだしガリガリずっと言ってるし。
このビルドの話とは別に,CF-W2BのHDDをSSDに変えたらそれなりに使えたりするんだろうか?DISKとのIFが遅いから一緒かなあ。
hardyとlucidの違いは、mavenのバージョンとjdkのバージョン?やっぱりビルドとかするマシンはLTSじゃなくてそこそこ最新使ったほうがいいのかも。
2010-05-28(Fri) [長年日記] この日を編集
_ ipad来た
注文しておいたipadがきたので早速使ってみている。 とはいえ、最初に全部シンクしようとしたのが間違いだったみたいで都合3回ほどwindowsが死んでしまった
ipad自体は大きさといい美しさといいとりあえず満足。実際にはもうちょっと使ってみないとわからんだろうけれども
cloudreader とhtml5widgetの組み合わせは早速試してみたが、正直htmlとcssであれだけのものが 動くってのはちょっと衝撃だった。
ちょっとしらべてみようかな。
2010-05-29(Sat) [長年日記] この日を編集
_ ipad 2日目
やはり日本語109キーボードのほうがはやくうてる。ブラインドタッチができるのが大きいのと、日本語入力がそれなりに鍛えられてるからではあるんだが...
ただし、音楽をかけながらお気楽ブラウジングをするにはこの上なくいいデバイスではある。大きさもほどよいし。
safariのブックマークをどうにかシンクしたい。いちいちxmarksから呼ぶのが面倒だし。
あとは...mykeepass導入かなあ。その前にkeepass自体をいれなきゃならんが。
_ oba1 [error: no suitable mode found. error: unknown command 'ter..]