cf start failed "panic: runtime error: invalid memory address or nil pointer dereference"

120 views
Skip to first unread message

张婕

unread,
Oct 11, 2013, 8:22:43 AM10/11/13
to vcap...@cloudfoundry.org

I cloned cf-vagrant-installer and followed the steps described at github

however when I ran "Foreman start"

I got some error with my router

below is the logs

And I also tried with ./start.sh , it gave the same error!

Can you help me with this annoying problem, Thank You! 

foreman start
12:17:01 nats.1           | started with pid 8826
12:17:01 warden.1         | started with pid 8828
12:17:01 uaa.1            | started with pid 8831
12:17:01 dir_server.1     | started with pid 8834
12:17:01 file_server.1    | started with pid 8837
12:17:01 dea_ng.1         | started with pid 8840
12:17:01 gorouter.1       | started with pid 8845
12:17:01 cc_ng.1          | started with pid 8849
12:17:01 health_manager.1 | started with pid 8854
12:17:03 dir_server.1     | panic: runtime error: invalid memory address or nil pointer dereference
12:17:03 dir_server.1     | [signal 0xb code=0x1 addr=0x28 pc=0x4212e5]
12:17:03 dir_server.1     | 
12:17:03 dir_server.1     | goroutine 1 [running]:
12:17:03 dir_server.1     | github.com/cloudfoundry/gosteno.(*Logger).Log(0x7581c8, 0x625364, 0x4, 0xf, 0xf84006a980, ...)
12:17:03 dir_server.1     | /usr/lib/go/src/pkg/github.com/cloudfoundry/gosteno/logger.go:66 +0x22f
12:17:03 dir_server.1     | github.com/cloudfoundry/gosteno.(*Logger).Info(0x7581c8, 0xf84006a980, 0x7fc900000039, 0x200000002)
12:17:03 dir_server.1     | /usr/lib/go/src/pkg/github.com/cloudfoundry/gosteno/logger.go:120 +0x55
12:17:03 dir_server.1     | directoryserver.Start(0xf8400aca40, 0x20000000d, 0xf840001780, 0x0, 0x0, ...)
12:17:03 dir_server.1     | /vagrant/dea_ng/go/src/directoryserver/directoryserver.go:275 +0x1f5
12:17:03 dir_server.1     | main.main()
12:17:03 dir_server.1     | /vagrant/dea_ng/go/src/runner/runner.go:65 +0x1d3
12:17:03 dir_server.1     | 
12:17:03 dir_server.1     | goroutine 2 [syscall]:
12:17:03 dir_server.1     | created by runtime.main
12:17:03 dir_server.1     | /build/buildd/golang-1/src/pkg/runtime/proc.c:221
12:17:03 dir_server.1     | 
12:17:03 dir_server.1     | goroutine 3 [syscall]:
12:17:03 dir_server.1     | syscall.Syscall6()
12:17:03 dir_server.1     | /build/buildd/golang-1/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
12:17:03 dir_server.1     | syscall.EpollWait(0xf800000006, 0xf8400ab170, 0xa0000000a, 0xffffffff, 0xc, ...)
12:17:03 dir_server.1     | /usr/lib/go/src/pkg/syscall/zerrors_linux_amd64.go:1781 +0xa1
12:17:03 dir_server.1     | net.(*pollster).WaitFD(0xf8400ab160, 0xf84006a880, 0x0, 0xf840000160, 0x0, ...)
12:17:03 dir_server.1     | /usr/lib/go/src/pkg/net/fd_linux.go:146 +0x110
12:17:03 dir_server.1     | net.(*pollServer).Run(0xf84006a880, 0x0)
12:17:03 dir_server.1     | /usr/lib/go/src/pkg/net/fd.go:236 +0xe4
12:17:03 dir_server.1     | created by net.newPollServer
12:17:03 dir_server.1     | /usr/lib/go/src/pkg/net/newpollserver.go:35 +0x382
12:17:03 dir_server.1     | exited with code 2
12:17:03 system           | sending SIGTERM to all processes
SIGTERM received
12:17:03 nats.1           | terminated by SIGTERM
12:17:03 warden.1         | terminated by SIGTERM
12:17:03 uaa.1            | terminated by SIGTERM
12:17:03 file_server.1    | terminated by SIGTERM
12:17:03 dea_ng.1         | terminated by SIGTERM
12:17:03 gorouter.1       | terminated by SIGTERM
12:17:03 cc_ng.1          | terminated by SIGTERM
12:17:03 health_manager.1 | terminated by SIGTERM

Gaston Ramos

unread,
Oct 11, 2013, 9:33:29 AM10/11/13
to vcap...@cloudfoundry.org
El Fri, 11 de Oct de 2013, a las 05:22:43AM -0700, 张婕 dijo:
> *
> *
> *I cloned cf-vagrant-installer and followed the steps described at github*
> *
> *
> *however when I ran "Foreman start"*

Hi, we are not using foreman any more, Are you using the master branch and
is updated?
We are using upstart to launch all the required processes.
I recommend you destroy the VM and start again from scratch:
run 'vargrant destroy' and start again.

--
“Any fool can write code that a computer can understand. Good
programmers write code that humans can understand. ” - Martin Fowler


+-------------------------------------+
Gastón Ramos
http://gastonramos.com.ar/
GNU/Linux Counter user #450312

张婕

unread,
Oct 13, 2013, 7:36:39 AM10/13/13
to vcap...@cloudfoundry.org
Dear Gaston:

   I took your suggestion and start from scratch, now most of my cf  components worked  well, like uaa,dea,cc,

However I have some trouble with my warden part,

rake aborted!
command exited with failure

I got some logs from logs/warden.log, but I can't figure out why.

So I put my log in the attachment,

Really hopes that you can provide some help!

Thank you very much !

           JoyceZhang@Nanjing,China.


2013/10/11 Gaston Ramos <ramos....@gmail.com>

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

warden.log

张婕

unread,
Oct 13, 2013, 9:27:52 AM10/13/13
to vcap...@cloudfoundry.org
And I have some problems with cf push

Uploading tet... FAILED
Upload failed. Try again with 'cf push'.
CFoundry::AppPackageInvalid: 150001: The app package is invalid: failed repacking application




2013/10/11 Gaston Ramos <ramos....@gmail.com>

ZhenKuan Li

unread,
Nov 1, 2013, 2:13:51 AM11/1/13
to vcap...@cloudfoundry.org

I see the error messages.

"/vagrant/warden/warden/root/linux/setup.sh\"]","log_level":"warn","source":"Warden::Container::Linux","data":{"stdout":"","stderr":"./net.sh: line 79: iptables: command not found\n
It seem as your iptables have some errors. Did you solve it ? 
在 2013年10月13日星期日UTC+8下午7时36分39秒,张婕写道:

张婕

unread,
Nov 2, 2013, 1:38:48 AM11/2/13
to vcap...@cloudfoundry.org
真宽?Thanks for your reply! There is something wrong with my environment , and I fixed eventually~ 


2013/11/1 ZhenKuan Li <leek...@gmail.com>

Wayne E. Seguin

unread,
Nov 2, 2013, 5:45:11 PM11/2/13
to vcap...@cloudfoundry.org
张婕,

If you happen to know what you did to fix it, could you let the list know so that you might help someone who encounters the same problem later?

谢谢你!

  ~Wayne

张婕

unread,
Nov 5, 2013, 2:15:35 AM11/5/13
to vcap...@cloudfoundry.org
Auctually , there is some coding bugs in 

in dea_ng/go/src/direcotryserver/log.go
line7 : var log steno.Logger
it should be var log* steno.Logger
well, it is not a big problem, and there is already someone pointing it in github


2013/11/3 Wayne E. Seguin <waynee...@starkandwayne.com>

James Bayer

unread,
Nov 5, 2013, 7:03:28 PM11/5/13
to vcap...@cloudfoundry.org
--
Thank you,

James Bayer
Reply all
Reply to author
Forward
0 new messages