Beginners problem, cannot start RaZberry

Discussions about RaZberry - Z-Wave board for Raspberry computer
pemme2
Posts: 4
Joined: 05 Mar 2013 20:44

Beginners problem, cannot start RaZberry

Post by pemme2 » 08 Mar 2013 02:26

I am a total noob when it comes to linux. I have managed to install the wheezy OS and installed RaZberry. But my problem begins when I try to access ip on my raspberry to be able to see the UI.
What am I doing wrong?

pemme2
Posts: 4
Joined: 05 Mar 2013 20:44

Don't know where to look for

Post by pemme2 » 08 Mar 2013 02:26

Don't know where to look for the problem. Wheezy is running fine and I can access internet without any problem. But when I try to enter http://192.168.1.27:8083 nothing happens. I just get an error message on the Raspberrys OS web browser that the page cannot be loaded and that cannot connect to destination. I have also tried to connect to the raspberry on my Mac with "ping ip_addr_of_the_raspberry" but no luck. Can't connect. Don't know what to do.

slacker
Posts: 4
Joined: 08 Mar 2013 19:25

Installed via Root Terminal?

Post by slacker » 08 Mar 2013 02:26

As well a total noob but I found that when installing through the LXTerminal it did not produce anything. Tried the IP and no luck.
Tried install with ROOT Terminal and installation/Download completed fine. Reboot and able to view server.

We all have to start at some point - My unit is 2 hours old... Still trying things!

pemme2
Posts: 4
Joined: 05 Mar 2013 20:44

I can access my raspb. with

Post by pemme2 » 08 Mar 2013 02:26

I can access my raspb. with ssh from my Mac.
I reinstall the RaZberry in ROOT terminal and it seemed to do it ok. Rebooted. But still when I open up the browser and enter the IP nothing, only an error message.

Tiptop
Posts: 56
Joined: 01 Mar 2013 13:50

Check...

Post by Tiptop » 08 Mar 2013 02:26

Please enter "top" your terminal.
You should see an output like this:
...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1663 root 20 0 175m 19m 5352 S 2.9 10.8 71:20.72 z-way-server
3815 pi 20 0 4672 1404 1024 R 1.3 0.7 0:00.09 top
...

Please notice the "z-way-server" entry which (on a naked RPi installation) should mostly be on top of this list.
You can exit top by pressing "q".

If you don't see the z-way-server process running within your system, please try the following:
cd /opt/z-way-server
ls
^^^^
You should see an output like this one:
pi@rpi1 /opt/z-way-server $ ls
automation config config.xml crash htdocs libs libzway-dev translations ZDDX z-get-tty z-get-tty-config z-way-server

If this is the case, installation seems to be fine, so far.
Probably the automatic startup of the server is broken, in your case.

If so, first of all try the following:
cd /opt/z-way-server
sudo bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/z-way-server/libs
./z-way-server

If everything works, you should see A LOT of debugging output.
If so, connect to your RPi using your web browser at :8083
This should help you for the moment to bring up the server for testing.

If really the startup is broken, the installation seemed to have some problems writing the /etc/rc files...

Did you really use the latest raspbian? I had a rather old version on my RPi and the autostart didn't work, either.
Using the latest (2013-02-09-wheezy-raspbian.zip) version, the installation works without problems, here.

Greets,

Stefan

User avatar
PoltoS
Posts: 5101
Joined: 26 Jan 2011 19:36

Please try to access the page

Post by PoltoS » 08 Mar 2013 02:26

Please try to access the page from a normal computer (Mac, Linux, Windows) using Chrome, Firefox or Safari.

Raspberry has some striped version of browsers and is not capable to open our UI for some reasons. We have not investigate this yet.

Thanks to Stefan, his answers are very professional!

bengthaugland
Posts: 2
Joined: 30 Mar 2013 23:01

Re-install with new Raspberry img.

Post by bengthaugland » 08 Mar 2013 02:26

I had this exact issue when installing for the first time. The mistake was to use an older Raspbian image I had lying around.

After updating with latest version of Raspbian the installation went smooth. Thank you Stefan!

slowcooked
Posts: 1
Joined: 17 Aug 2013 02:32

All appears fine, but won't start

Post by slowcooked » 08 Mar 2013 02:26

Got the install and can see all the /opt/z-way-server files with the executable being an ELF 32-bit LSB executable dynamically linked, etc. Perms are 776 with user pi/group pi.

/etc/init.d/Z-Way start shows "Starting Z-Way: done."
No process is spawned, no listener on 8083.

Reboot is the same. I see a pid file entry, but not the pid itself.
I'm getting an odd response trying to execute /opt/z-way-server/z-way-server directly - No such file or directory. My strace shows this also with an illegal seek:
root@raspberrypi:/opt/z-way-server# strace z-way-server
execve("/opt/z-way-server/z-way-server", ["z-way-server"], [/* 19 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x20002 (flags O_RDWR|O_LARGEFILE)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fbf000
_llseek(3, 0, 0xbea8e388, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3) = 0
munmap(0xb6fbf000, 4096) = 0
exit_group(1) = ?

I even redirected the install script and ran it with "sh -x" and it completed without errors.

User avatar
PoltoS
Posts: 5101
Joined: 26 Jan 2011 19:36

make sure that

Post by PoltoS » 08 Mar 2013 02:26

make sure that
file /opt/z-way-server/z-way-server
and
file /bin/ls
returns same processor type and little/big endian.

pbergman111
Posts: 2
Joined: 23 Aug 2013 09:21

Cant access the controller

Post by pbergman111 » 08 Mar 2013 02:26

Installed all the software, looks to be installed right. Same results as described above so I looked at the logs and the log seems to report that the controller is not responding.

...
[2013-08-22 23:08:00.556] Opened device: /dev/ttyAMA0
[2013-08-22 23:08:00.557] Worker thread successfully created
[2013-08-22 23:08:00.559] Worker thread entry point
[2013-08-22 23:08:00.569] Adding job: Get controller info and supported function classes
[2013-08-22 23:08:00.572] SENDING (cb 0x07): ( 01 03 00 07 FB )
[2013-08-22 23:08:00.758] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2013-08-22 23:08:00.770] SENDING (cb 0x07): ( 01 03 00 07 FB )
[2013-08-22 23:08:00.951] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2013-08-22 23:08:00.963] SENDING (cb 0x07): ( 01 03 00 07 FB )
[2013-08-22 23:08:01.145] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2013-08-22 23:08:01.146] Job 0x07 (Get controller info and supported function classes) dropped: too many resends
[2013-08-22 23:08:01.146] Job 0x07 (Get controller info and supported function classes): fail
[2013-08-22 23:08:01.146] Get Serial API Capabilities returned zero.
[2013-08-22 23:08:01.146] Removing job: Get controller info and supported function classes
failed to discover ZWay: -9
Z-Way version v1.3.1 from 2013-05-19 23:54:27 +0400 (build e717f1057ab76a00fa02d9e6546e360ad3390f36)
Using default configuration file config.xml
Starting Z-Way for device /dev/ttyAMA0...


Any advice? I do note that the IDs early in the log are all "empty"

Post Reply