hexgolems / schem

A debugger frontend
142 stars 15 forks source link

Error when launching schem #23

Closed poxyran closed 11 years ago

poxyran commented 11 years ago

Hi!,

I followed the step listed in the "Installation" section in order to install schem but when I run this command:

cd schem/controller/lib; ruby controller.rb -p ../run -b gdb

I receive the following error:

poxyran@debian:~$ cd schem/controller/lib; ruby controller.rb -p ../run -b gdb /var/lib/gems/1.9.1/gems/em-http-server-0.1.6/lib/em-http-server/response.rb:85: warning: *' interpreted as argument prefix For advanced error handleing please install the pry-rescue gem /home/poxyran/schem/controller/lib/backend_connections/gdb_api.rb:420: warning: assigned but unused variable - c /home/poxyran/schem/controller/lib/logger/logger.rb:115:ininitialize': Permission denied - log/gdb.out.log (Errno::EACCES) from /home/poxyran/schem/controller/lib/logger/logger.rb:115:in open' from /home/poxyran/schem/controller/lib/logger/logger.rb:115:ininit_logger' from controller.rb:61:in start' from controller.rb:176:inblock in

' from /home/poxyran/schem/controller/lib/include.rb:77:in call' from /home/poxyran/schem/controller/lib/include.rb:77:inblock (2 levels) in rescue_in_pry' from /home/poxyran/schem/controller/lib/include.rb:262:in with_warnings' from /home/poxyran/schem/controller/lib/include.rb:76:inblock in rescue_in_pry' from /home/poxyran/schem/controller/lib/include.rb:262:in with_warnings' from /home/poxyran/schem/controller/lib/include.rb:60:inrescue_in_pry' from controller.rb:174:in `
'

I'm using Debian Squeeze:

poxyran@debian:~$ uname -a Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux

eqv commented 11 years ago

Hi, thanks for trying Schem in the current early stage and thanks for letting us know about the problems you encounter. Have you checked that run/log/gdb.out.log is writable to the user that runs Schem? (I think it should be by default, so I'm quite interested in what steps during setup might have changed that)

poxyran commented 11 years ago

Well, the file was owned by root. Now, my user owns the file:

poxyran@debian:~/schem/controller/run/log$ ls -l total 0 -rw-r--r-- 1 poxyran poxyran 0 Sep 23 10:44 gdb.out.log

But I'm getting another error:

poxyran@debian:~/schem/controller/lib$ ruby controller.rb -p ../run -b gdb /var/lib/gems/1.9.1/gems/em-http-server-0.1.6/lib/em-http-server/response.rb:85: warning: *' interpreted as argument prefix For advanced error handleing please install the pry-rescue gem /home/poxyran/schem/controller/lib/backend_connections/gdb_api.rb:420: warning: assigned but unused variable - c controller.rb:111:inspawn_redis': unsuported version Redis server version 2.4.14 (00000000:0) (RuntimeError) from controller.rb:84:in spawn' from controller.rb:62:instart' from controller.rb:176:in block in <main>' from /home/poxyran/schem/controller/lib/include.rb:77:incall' from /home/poxyran/schem/controller/lib/include.rb:77:in block (2 levels) in rescue_in_pry' from /home/poxyran/schem/controller/lib/include.rb:262:inwith_warnings' from /home/poxyran/schem/controller/lib/include.rb:76:in block in rescue_in_pry' from /home/poxyran/schem/controller/lib/include.rb:262:inwith_warnings' from /home/poxyran/schem/controller/lib/include.rb:60:in rescue_in_pry' from controller.rb:174:in

'

eqv commented 11 years ago

This was discussed in #22 allready, will be fixed soon. If you don't want to wait, you just have to create a config file and return the path to the config file here: https://github.com/hexgolems/schem/blob/master/controller/lib/controller.rb#L95-L102 The config file should specify where to store the redis database when dumped to hard drive and to use the unix socket: run/sock/redis.ipc

unixsocket ../run/sockets/redis.sock
dbfilename dump.rdb

(however the name of the config option names have changed over time - which is the reason we have this fucked up construct in first place) You might try to just use the newer one of the files as well.

I'm closing this issue, message me if you want it reopened.

poxyran commented 11 years ago

btw, It would be nice a good idea to add to the documentation how to start using the front-end debugger for the first time. I mean, how to launch a program and start debugging it.

eqv commented 11 years ago

well the sad truth is: you can't. That's why there is #20 but we will add it as soon as it becomes possible.