Closed poxyran closed 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)
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:in
spawn_redis': unsuported version Redis server version 2.4.14 (00000000:0) (RuntimeError)
from controller.rb:84:in spawn' from controller.rb:62:in
start'
from controller.rb:176:in block in <main>' from /home/poxyran/schem/controller/lib/include.rb:77:in
call'
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:in
with_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:in
with_warnings'
from /home/poxyran/schem/controller/lib/include.rb:60:in rescue_in_pry' from controller.rb:174:in
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.
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.
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.
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:'
from /home/poxyran/schem/controller/lib/include.rb:77:in '
*' 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:in
initialize': Permission denied - log/gdb.out.log (Errno::EACCES) from /home/poxyran/schem/controller/lib/logger/logger.rb:115:inopen' from /home/poxyran/schem/controller/lib/logger/logger.rb:115:in
init_logger' from controller.rb:61:instart' from controller.rb:176:in
block 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 `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