Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.
There is a version mismatch between the spring client and the server.
You should restart the server and make sure to use the same version.
CLIENT: 1.1.3, SERVER: 0.9.2
situation:
when I try to start rails, it fails with the error message above.
and it works if I comment out the part of loading spring
$ for i in {1..100000}; do echo "hoge,fuga" >> /var/tmp/tail.log; done
* Treminal 1
# run logrotate during processing on Terminal 2
$ sudo logrotate logrotate.tdtest
$ ll
合計 1988
-rw-rw-rw- 1 td-agent td-agent 1100000 6月 21 19:14 2013 hoge.log
-rw-r--r-- 1 m-iwamoto contentsuser 131 6月 21 18:54 2013 logrotate.tdtest
-rw-r--r-- 1 m-iwamoto contentsuser 674200 6月 21 19:14 2013 tail.log
-rw-r--r-- 1 m-iwamoto contentsuser 236387 6月 21 19:14 2013 tail.log.1.gz
-rw-r--r-- 1 m-iwamoto contentsuser 242 6月 21 18:38 2013 tail.log.3.gz
# confirm if the line number of file produced by Fluentd matches to process of Terminal 1
$ wc -l hoge.log
100000 hoge.log
# check line number of current target log #=> (★)
$ wc -l tail.log
67420 tail.log
# check line number by decompressing archived file
$ gunzip tail.log.1.gz
$ wc -l tail.log.1
12185320 tail.log.1
# minus line number of previous file (before experiment) #=> (☆)
$ expr 12185320 - 12152740
32580
# confirm sum of (★) and (☆) matches the number of process of Terminal 2
$ expr 67420 + 32580
100000
Although I figured out that I enable syntax highlight for some files by vim's setf command,
its cumbersome that I type 'setf' each time when I open the file.
so I added the line bellow to my .vimrc.
au BufNewFile,BufRead php-fpm*.conf set filetype=dosini
As its just setting for php-fpm.conf, modify "php-fpm*.conf" and "filetype=xxx" properly if you want for other filetypes.