[MyDomoAtHome] Support thread
Moderator: leecollings
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
Hi,
I'm having some problems setting up MDAH and Domoticz on the same Raspberry Pi 2.
I have Domoticz installed and working great (v2.2563) and followed the Wiki guide and installed MyDomoAtHome. I copied the default config.yml, development.yml and production.yml files and edited their settings and put in the IP address of my Raspberry pi and port (which I changed from the default 8080 to 8085).
I placed the same settings in all three files and ran the run-once.sh program. After all was completed successfully, I ran the setup instructions. At first, I didn't have access to my list of devices in domoticz, but after opening up the port in my router directly (as well as port 3001 for MDAH, I did not change the default port) I was able to get the list.
As well, I am able to access the main landing page for the MDAH server (http://myservergatewayip:3001) but when I try to access http://myservergatewayip:3001/devices , I receive an error message saying:
An internal error occured
I'm not sure what I have done wrong to get here. At first, I thought it had something to do with the permissions Domoticz has to give to the MDAH api to access it, but i'm not too sure where I would find that to change it.
Any help is appreciated, thanks!
I'm having some problems setting up MDAH and Domoticz on the same Raspberry Pi 2.
I have Domoticz installed and working great (v2.2563) and followed the Wiki guide and installed MyDomoAtHome. I copied the default config.yml, development.yml and production.yml files and edited their settings and put in the IP address of my Raspberry pi and port (which I changed from the default 8080 to 8085).
I placed the same settings in all three files and ran the run-once.sh program. After all was completed successfully, I ran the setup instructions. At first, I didn't have access to my list of devices in domoticz, but after opening up the port in my router directly (as well as port 3001 for MDAH, I did not change the default port) I was able to get the list.
As well, I am able to access the main landing page for the MDAH server (http://myservergatewayip:3001) but when I try to access http://myservergatewayip:3001/devices , I receive an error message saying:
An internal error occured
I'm not sure what I have done wrong to get here. At first, I thought it had something to do with the permissions Domoticz has to give to the MDAH api to access it, but i'm not too sure where I would find that to change it.
Any help is appreciated, thanks!
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
Hello,resentedpoet wrote:As well, I am able to access the main landing page for the MDAH server (http://myservergatewayip:3001) but when I try to access http://myservergatewayip:3001/devices , I receive an error message saying:
An internal error occured
That is not so frequent...
Can you launch start2.sh that will display output on the command line and request the device list again ? The error messaye should be displayed on the console.
Thanks,
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
Hi epierre,epierre wrote:Hello,resentedpoet wrote:As well, I am able to access the main landing page for the MDAH server (http://myservergatewayip:3001) but when I try to access http://myservergatewayip:3001/devices , I receive an error message saying:
An internal error occured
That is not so frequent...
Can you launch start2.sh that will display output on the command line and request the device list again ? The error messaye should be displayed on the console.
Thanks,
This is the output I get when I launch the start2.sh script:
Code: Select all
pi@domoticz ~/domoticz/MyDomoAtHome $ ./start2.sh
2015/10/05-11:24:54 Starman::Server (type Net::Server::PreFork) starting! pid(15771)
Resolved [*]:3001 to [0.0.0.0]:3001, IPv4
Host [*] resolved to IPv6 address [::] but IO::Socket::INET6->new fails: Address family not supported by protocol at /usr/share/perl5/Net/Server/Proto.pm line 133.
Binding to TCP port 3001 on host 0.0.0.0 with IPv4
2015/10/05-11:24:54 Can't connect to TCP port 3001 on 0.0.0.0 [Address already in use]
at line 67 in file /usr/share/perl5/Net/Server/Proto/TCP.pm
2015/10/05-11:24:54 Received QUIT. Running a graceful shutdown
Use of uninitialized value in subtraction (-) at /usr/share/perl5/Net/Server/PreFork.pm line 355.
Use of uninitialized value in subtraction (-) at /usr/share/perl5/Net/Server/PreFork.pm line 385.
Use of uninitialized value in subtraction (-) at /usr/share/perl5/Net/Server/PreFork.pm line 405.
Use of uninitialized value in subtraction (-) at /usr/share/perl5/Net/Server/PreFork.pm line 413.
2015/10/05-11:24:54 Worker processes cleaned up
2015/10/05-11:24:54 Server closing!
shutdown() on closed socket GEN1 at /usr/lib/perl/5.14/IO/Socket.pm line 294.
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
@resentpoet ok a process is still running on 3001 port
2015/10/05-11:24:54 Can't connect to TCP port 3001 on 0.0.0.0 [Address already in use]
, please do:
lsof -i tcp:3001
from that kill the listening process (called starman master) and launch start2.sh
2015/10/05-11:24:54 Can't connect to TCP port 3001 on 0.0.0.0 [Address already in use]
, please do:
lsof -i tcp:3001
from that kill the listening process (called starman master) and launch start2.sh
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
Hello again epierre,epierre wrote:@resentpoet ok a process is still running on 3001 port
2015/10/05-11:24:54 Can't connect to TCP port 3001 on 0.0.0.0 [Address already in use]
, please do:
lsof -i tcp:3001
from that kill the listening process (called starman master) and launch start2.sh
Killed all the processes and started start2.sh, this is the output I am receiving now:
pi@domoticz ~/domoticz/MyDomoAtHome $ ./start2.sh
2015/10/05-11:36:04 Starman::Server (type Net::Server::PreFork) starting! pid(16046)
Resolved [*]:3001 to [0.0.0.0]:3001, IPv4
Host [*] resolved to IPv6 address [::] but IO::Socket::INET6->new fails: Address family not supported by protocol at are/perl5/Net/Server/Proto.pm line 133.
Binding to TCP port 3001 on host 0.0.0.0 with IPv4
Setting gid to "33 33 33"
Use of uninitialized value in negation (-) at /usr/lib/perl5/DateTime.pm line 1764.
Use of uninitialized value in negation (-) at /usr/lib/perl5/DateTime.pm line 1764.
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
ok this is fine, now get the /devices
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
Still getting the same problem:epierre wrote:ok this is fine, now get the /devices
"An Internal Error Occurred"
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
same thing on the console ??resentedpoet wrote:Still getting the same problem:epierre wrote:ok this is fine, now get the /devices
"An Internal Error Occurred"
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
The error is what I get when I try and access devices from my web browser, this is the response in console when I try and access http://gatewayip:3001/devicesepierre wrote:same thing on the console ??resentedpoet wrote:Still getting the same problem:epierre wrote:ok this is fine, now get the /devices
"An Internal Error Occurred"
Code: Select all
pi@domoticz ~/domoticz/MyDomoAtHome $ sudo lsof -i tcp:3001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
starman 16626 root 5u IPv4 31663 0t0 TCP *:3001 (LISTEN)
starman 16652 root 5u IPv4 31663 0t0 TCP *:3001 (LISTEN)
starman 16653 root 5u IPv4 31663 0t0 TCP *:3001 (LISTEN)
starman 16913 root 5u IPv4 31663 0t0 TCP *:3001 (LISTEN)
starman 16916 root 5u IPv4 31663 0t0 TCP *:3001 (LISTEN)
pi@domoticz ~/domoticz/MyDomoAtHome $ sudo kill 16626
pi@domoticz ~/domoticz/MyDomoAtHome $ sudo lsof -i tcp:3001
pi@domoticz ~/domoticz/MyDomoAtHome $ sudo kill 16626
pi@domoticz ~/domoticz/MyDomoAtHome $ ./start2.sh
2015/10/05-12:34:41 Starman::Server (type Net::Server::PreFork) starting! pid(16931)
Resolved [*]:3001 to [0.0.0.0]:3001, IPv4
Host [*] resolved to IPv6 address [::] but IO::Socket::INET6->new fails: Address family not supported by protocol at /usr/share/perl5/Net/Server/Proto.pm line 133.
Binding to TCP port 3001 on host 0.0.0.0 with IPv4
Setting gid to "33 33 33"
Use of uninitialized value in negation (-) at /usr/lib/perl5/DateTime.pm line 1764.
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
@resentedpoet: hard to tell from that... can you do an ./update-mdah.sh and try again this way ?
try edition start2.sh and change the production string to development
try edition start2.sh and change the production string to development
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
Here is the output after running update-mdah.shepierre wrote:@resentedpoet: hard to tell from that... can you do an ./update-mdah.sh and try again this way ?
try edition start2.sh and change the production string to development
Code: Select all
pi@domoticz ~/domoticz/MyDomoAtHome $ ./update-mdah.sh
Stoping MyDomoAtHome service...
[ ok ] Stopping plack server: MyDomoAtHome.
Retrieving latest code...
Already up-to-date.
Checking latest libraries dependencies...
Reading package lists... Done
Building dependency tree
Reading state information... Done
cpanminus is already the newest version.
libaudio-mpd-perl is already the newest version.
libnet-upnp-perl is already the newest version.
libpoe-component-client-mpd-perl is already the newest version.
whiptail is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl' instead of 'libtime-piece-perl'
E: Unable to locate package libdancer2-perl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 314 0 314 0 0 329 0 --:--:-- --:--:-- --:--:-- 507
100 296k 100 296k 0 0 104k 0 0:00:02 0:00:02 --:--:-- 273k
--> Working on Dancer2
Fetching http://www.cpan.org/authors/id/X/XS/XSAWYERX/Dancer2-0.162000.tar.gz ... OK
Configuring Dancer2-0.162000 ... OK
==> Found dependencies: App::Cmd::Setup
--> Working on App::Cmd::Setup
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/App-Cmd-0.328.tar.gz ... OK
Configuring App-Cmd-0.328 ... OK
Building and testing App-Cmd-0.328 ... FAIL
! Installing App::Cmd::Setup failed. See /home/pi/.cpanm/work/1444068402.18977/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'App::Cmd::Setup' is not installed
! Bailing out the installation for Dancer2-0.162000.
Restarting MyDomoAtHome service...
[ ok ] Starting plack server: MyDomoAtHome.
Update path finished
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
I changed production to development in start2.sh and this is what I get now in browser when visiting /devices
{
exception: "Could not create socket: Invalid argument ",
error: "Could not create socket: Invalid argument "
}
And this is the responses in console:
{
exception: "Could not create socket: Invalid argument ",
error: "Could not create socket: Invalid argument "
}
And this is the responses in console:
Code: Select all
[05/Oct/2015:15:12:29 -0300] "GET /css/style.css HTTP/1.1" 200 2850 "http://192.168.86.198:3001/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
[19245] core @0.000803> request: GET /images/imperihome.png from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56
[19246] core @0.002658> request: GET /javascripts/jquery.js from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56
[19245] core @0.005556> [hit #3]response: 200 in /usr/share/perl5/Dancer/Handler.pm l. 179
192.168.86.162 - - [05/Oct/2015:15:12:29 -0300] "GET /images/imperihome.png HTTP/1.1" 200 36659 "http://192.168.86.198:3001/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
[19246] core @0.039250> [hit #1]response: 200 in /usr/share/perl5/Dancer/Handler.pm l. 179
192.168.86.162 - - [05/Oct/2015:15:12:29 -0300] "GET /javascripts/jquery.js HTTP/1.1" 200 252880 "http://192.168.86.198:3001/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
[19245] core @0.000785> request: GET /images/perldancer.jpg from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56
[19246] core @0.000736> request: GET /images/perldancer-bg.jpg from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56
[19245] core @0.003410> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/$/ (generated from '/') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.003644> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/$/ (generated from '/') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.004834> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/rooms$/ (generated from '/rooms') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.004895> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/rooms$/ (generated from '/rooms') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.006241> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/system$/ (generated from '/system') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.006192> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/system$/ (generated from '/system') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.007517> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/devices\/([^\/]+)\/([^\/]+)\/histo\/([^\/]+)\/([^\/]+)$/ (generated from '/devices/:deviceId/:paramKey/histo/:startdate/:enddate') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.007566> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/devices\/([^\/]+)\/([^\/]+)\/histo\/([^\/]+)\/([^\/]+)$/ (generated from '/devices/:deviceId/:paramKey/histo/:startdate/:enddate') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.008995> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/devices\/([^\/]+)\/action\/([^\/]+)\/?([^\/]+)?$/ (generated from '/devices/:deviceId/action/:actionName/?:actionParam?') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.008946> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/devices\/([^\/]+)\/action\/([^\/]+)\/?([^\/]+)?$/ (generated from '/devices/:deviceId/action/:actionName/?:actionParam?') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.010376> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/devices$/ (generated from '/devices') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.010327> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/devices$/ (generated from '/devices') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.011706> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/$/ (generated from '/') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.011755> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/$/ (generated from '/') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.013028> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/rooms$/ (generated from '/rooms') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.012979> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/rooms$/ (generated from '/rooms') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.014244> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/system$/ (generated from '/system') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.014293> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/system$/ (generated from '/system') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.015498> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/devices\/([^\/]+)\/([^\/]+)\/histo\/([^\/]+)\/([^\/]+)$/ (generated from '/devices/:deviceId/:paramKey/histo/:startdate/:enddate') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.015546> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/devices\/([^\/]+)\/([^\/]+)\/histo\/([^\/]+)\/([^\/]+)$/ (generated from '/devices/:deviceId/:paramKey/histo/:startdate/:enddate') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.016884> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/devices\/([^\/]+)\/action\/([^\/]+)\/?([^\/]+)?$/ (generated from '/devices/:deviceId/action/:actionName/?:actionParam?') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.016835> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/devices\/([^\/]+)\/action\/([^\/]+)\/?([^\/]+)?$/ (generated from '/devices/:deviceId/action/:actionName/?:actionParam?') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.018163> [hit #2]Trying to match 'GET /images/perldancer-bg.jpg' against /^\/devices$/ (generated from '/devices') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.018212> [hit #4]Trying to match 'GET /images/perldancer.jpg' against /^\/devices$/ (generated from '/devices') in /usr/share/perl5/Dancer/Route.pm l. 84
[19245] core @0.022198> [hit #4]response: 404 in /usr/share/perl5/Dancer/Handler.pm l. 179
[19246] core @0.022149> [hit #2]response: 404 in /usr/share/perl5/Dancer/Handler.pm l. 179
192.168.86.162 - - [05/Oct/2015:15:12:29 -0300] "GET /images/perldancer.jpg HTTP/1.1" 404 499 "http://192.168.86.198:3001/css/style.css" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
192.168.86.162 - - [05/Oct/2015:15:12:29 -0300] "GET /images/perldancer-bg.jpg HTTP/1.1" 404 499 "http://192.168.86.198:3001/css/style.css" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
[19245] core @0.000975> request: GET /images/logo-MyDomoAtHome-w.png from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56
[19245] core @0.006396> [hit #5]response: 200 in /usr/share/perl5/Dancer/Handler.pm l. 179
192.168.86.162 - - [05/Oct/2015:15:12:30 -0300] "GET /images/logo-MyDomoAtHome-w.png HTTP/1.1" 200 19674 "http://192.168.86.198:3001/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
[19246] core @0.001129> request: GET /devices from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56
[19246] core @0.004509> [hit #3]Trying to match 'GET /devices' against /^\/$/ (generated from '/') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.007024> [hit #3]Trying to match 'GET /devices' against /^\/rooms$/ (generated from '/rooms') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.009361> [hit #3]Trying to match 'GET /devices' against /^\/system$/ (generated from '/system') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.011586> [hit #3]Trying to match 'GET /devices' against /^\/devices\/([^\/]+)\/([^\/]+)\/histo\/([^\/]+)\/([^\/]+)$/ (generated from '/devices/:deviceId/:paramKey/histo/:startdate/:enddate') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.013969> [hit #3]Trying to match 'GET /devices' against /^\/devices\/([^\/]+)\/action\/([^\/]+)\/?([^\/]+)?$/ (generated from '/devices/:deviceId/action/:actionName/?:actionParam?') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.016061> [hit #3]Trying to match 'GET /devices' against /^\/devices$/ (generated from '/devices') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.017992> [hit #3] --> got 1 in /usr/share/perl5/Dancer/Route.pm l. 102
[19246] debug @0.022549> [hit #3]http://192.168.86.198:8085/json.htm?type=devices&filter=all&used=true&order=Name in /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm l. 347
Use of uninitialized value in negation (-) at /usr/lib/perl5/DateTime.pm line 1764.
[19246] debug @0.425602> [hit #3]https://api.github.com/repos/empierre/MyDomoAtHome/releases/latest in /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm l. 954
[19246] error @3.302974> [hit #3]request to GET /devices crashed: Could not create socket: Invalid argument in /usr/share/perl5/Dancer/Handler.pm l. 98
[19246] core @3.307594> [hit #3]response: 500 in /usr/share/perl5/Dancer/Handler.pm l. 179
192.168.86.162 - - [05/Oct/2015:15:12:38 -0300] "GET /devices HTTP/1.1" 500 127 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
[19246] core @0.001203> request: GET /devices from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56
[19246] core @0.005866> [hit #4]Trying to match 'GET /devices' against /^\/$/ (generated from '/') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.008284> [hit #4]Trying to match 'GET /devices' against /^\/rooms$/ (generated from '/rooms') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.010624> [hit #4]Trying to match 'GET /devices' against /^\/system$/ (generated from '/system') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.012638> [hit #4]Trying to match 'GET /devices' against /^\/devices\/([^\/]+)\/([^\/]+)\/histo\/([^\/]+)\/([^\/]+)$/ (generated from '/devices/:deviceId/:paramKey/histo/:startdate/:enddate') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.015135> [hit #4]Trying to match 'GET /devices' against /^\/devices\/([^\/]+)\/action\/([^\/]+)\/?([^\/]+)?$/ (generated from '/devices/:deviceId/action/:actionName/?:actionParam?') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.017276> [hit #4]Trying to match 'GET /devices' against /^\/devices$/ (generated from '/devices') in /usr/share/perl5/Dancer/Route.pm l. 84
[19246] core @0.019427> [hit #4] --> got 1 in /usr/share/perl5/Dancer/Route.pm l. 102
[19246] debug @0.022927> [hit #4]http://192.168.86.198:8085/json.htm?type=devices&filter=all&used=true&order=Name in /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm l. 347
[19246] error @0.142799> [hit #4]request to GET /devices crashed: Could not create socket: Invalid argument in /usr/share/perl5/Dancer/Handler.pm l. 98
[19246] core @0.146890> [hit #4]response: 500 in /usr/share/perl5/Dancer/Handler.pm l. 179
192.168.86.162 - - [05/Oct/2015:15:13:21 -0300] "GET /devices HTTP/1.1" 500 127 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
ok something interresting. Can you send me your database to [email protected] so I can try to reproduce it locally ?resentedpoet wrote:Code: Select all
[19246] core @0.001129> request: GET /devices from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56 [19246] debug @0.022549> [hit #3]http://192.168.86.198:8085/json.htm?type=devices&filter=all&used=true&order=Name in /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm l. 347 Use of uninitialized value in negation (-) at /usr/lib/perl5/DateTime.pm line 1764. [19246] debug @0.425602> [hit #3]https://api.github.com/repos/empierre/MyDomoAtHome/releases/latest in /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm l. 954 [19246] error @3.302974> [hit #3]request to GET /devices crashed: Could not create socket: Invalid argument in /usr/share/perl5/Dancer/Handler.pm l. 98
thanks,
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
Sure can. I am assuming you mean the Domoticz database?epierre wrote:ok something interresting. Can you send me your database to [email protected] so I can try to reproduce it locally ?resentedpoet wrote:Code: Select all
[19246] core @0.001129> request: GET /devices from 192.168.86.162 in /usr/share/perl5/Dancer/Handler.pm l. 56 [19246] debug @0.022549> [hit #3]http://192.168.86.198:8085/json.htm?type=devices&filter=all&used=true&order=Name in /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm l. 347 Use of uninitialized value in negation (-) at /usr/lib/perl5/DateTime.pm line 1764. [19246] debug @0.425602> [hit #3]https://api.github.com/repos/empierre/MyDomoAtHome/releases/latest in /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm l. 954 [19246] error @3.302974> [hit #3]request to GET /devices crashed: Could not create socket: Invalid argument in /usr/share/perl5/Dancer/Handler.pm l. 98
thanks,
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
yes the database. the log for app::... interrest me too
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 13
- Joined: Tuesday 30 June 2015 5:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [MyDomoAtHome] Support thread
Just sent the files.epierre wrote:yes the database. the log for app::... interrest me too
There was a third, deployment.log but because it was 0kb, it would not attach/send it.
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
don't worry there is no link to your error on these logs, another user reported the same issue and I opened a bug to the package maintener.resentedpoet wrote:Just sent the files.epierre wrote:yes the database. the log for app::... interrest me too
There was a third, deployment.log but because it was 0kb, it would not attach/send it.
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 115
- Joined: Saturday 21 December 2013 23:50
- Target OS: Linux
- Domoticz version:
- Location: Scotland
- Contact:
Re: [MyDomoAtHome] Support thread
Hi,
I'm struggling to get this setup. completedthe install as per the wiki and the service crashed just after running.
I ran this to start:
now I get this:
now getting this when I start and its just hanging:
Edit: hmm, now seems to be working although I cant get the /devices page to show anything yet.
I'm struggling to get this setup. completedthe install as per the wiki and the service crashed just after running.
I ran this to start:
got this:sudo /usr/bin/plackup -E production -s Starman --workers=4 -p 3001 -a /home/pi/domoticz/MyDomoAtHome/bin/app.pl --pid /tmp/mydomoathome.pid
then tried to installError while loading /home/pi/domoticz/MyDomoAtHome/bin/app.pl: Can't locate Crypt/SSLeay.pm in @INC (@INC contains: /home/pi/domoticz/MyDomoAtHome/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm line 11.
BEGIN failed--compilation aborted at /home/pi/domoticz/MyDomoAtHome/lib/Domo.pm line 11.
Compilation failed in require at /home/pi/domoticz/MyDomoAtHome/bin/app.pl line 3.
BEGIN failed--compilation aborted at /home/pi/domoticz/MyDomoAtHome/bin/app.pl line 3.
reboot just in case...sudo perl -MCPAN -e 'install Crypt::SSLeay'
now I get this:
tried an update as something isnt right!pi@domoticzpi ~ $ sudo /usr/bin/plackup -E production -s Starman --workers=4 -p 3001 -a /home/pi/domoticz/MyDomoAtHome/bin/app.pl --pid /tmp/mydomoathome.pid
Can't locate Plack/Handler/Starman.pm in @INC (@INC contains: /home/pi/domoticz/MyDomoAtHome/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.14.2/Plack/Util.pm line 26.
then I get this at the end... looks like something has failed:sh ./update-mdah.sh
Building and testing App-Cmd-0.328 ... FAIL
! Installing App::Cmd::Setup failed. See /home/pi/.cpanm/work/1444215836.7798/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'App::Cmd::Setup' is not installed
! Bailing out the installation for Dancer2-0.162000.
Restarting MyDomoAtHome service...
[ ok ] Starting plack server: MyDomoAtHome.
Update path finished
now getting this when I start and its just hanging:
sudo /usr/bin/plackup -E production -s Starman --workers=4 -p 3001 -a /home/pi/domoticz/MyDomoAtHome/bin/app.pl --pid /tmp/mydomoathome.pid
2015/10/07-12:10:39 Starman::Server (type Net::Server::PreFork) starting! pid(8406)
Resolved [*]:3001 to [0.0.0.0]:3001, IPv4
Host [*] resolved to IPv6 address [::] but IO::Socket::INET6->new fails: Address family not supported by protocol at /usr/share/perl5/Net/Server/Proto.pm line 133.
Binding to TCP port 3001 on host 0.0.0.0 with IPv4
Setting gid to "0 0 0 1001"
Edit: hmm, now seems to be working although I cant get the /devices page to show anything yet.
Last edited by thebeetleuk on Wednesday 07 October 2015 14:16, edited 1 time in total.
My Setup: Pi, RFXtrx433, HomeEasy: 13 Dimmers & 4 Sockets, 2 motion-sensors, 3 magnetic switches, 1 OWL Electricity Sensor, 3 Oregon Temp Sensor.
- epierre
- Posts: 522
- Joined: Wednesday 05 March 2014 13:16
- Target OS: Linux
- Domoticz version:
- Location: France
- Contact:
Re: [MyDomoAtHome] Support thread
thebeetleuk wrote:Hi,
I'm struggling to get this setup. completedthe install as per the wiki and the service crashed just after running.
I ran this to start:sudo /usr/bin/plackup -E production -s Starman --workers=4 -p 3001 -a /home/pi/domoticz/MyDomoAtHome/bin/app.pl --pid /tmp/mydomoathome.pid
Hello,
Have you run the run-once.sh ?
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
-
- Posts: 115
- Joined: Saturday 21 December 2013 23:50
- Target OS: Linux
- Domoticz version:
- Location: Scotland
- Contact:
Re: [MyDomoAtHome] Support thread
Hi epierre, yes ran that and then the update which seems to have resolved some issues.
now mi stuck with the devices page. double checked the production.yml to make sure correct (see below) but it cant seem to communicate with domoticz.
now mi stuck with the devices page. double checked the production.yml to make sure correct (see below) but it cant seem to communicate with domoticz.
pi@domoticzpi ~/domoticz/MyDomoAtHome $ more production.yml
log: 'error'
startup_info: 0
show_errors: 0
domo_path: "http://172.0.0.1:8080"
volumio_path: ""
appname: "MyDomoAtHome REST Gateway"
charset: "UTF-8"
My Setup: Pi, RFXtrx433, HomeEasy: 13 Dimmers & 4 Sockets, 2 motion-sensors, 3 magnetic switches, 1 OWL Electricity Sensor, 3 Oregon Temp Sensor.
Who is online
Users browsing this forum: Google [Bot] and 1 guest