Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got a stream wtihin local network. No stream from outside network #834

Closed
Taurus61 opened this issue Jul 18, 2019 · 23 comments
Closed

Got a stream wtihin local network. No stream from outside network #834

Taurus61 opened this issue Jul 18, 2019 · 23 comments

Comments

@Taurus61
Copy link

Before you create an issue, please make sure you have read the FAQ. Common questions on API, no image etc are covered there. Please also read HOWTO REPORT ISSUES

Platform & OS Version
Windows 10 64bit

example: Android 7.1.1
Windows desktop version

**The version of zmNinja you are reporting:**
1.3.66

example: 1.3.050


**The version and OS of ZoneMinder you are using:**
1.32.3 on Centos 7

example: 1.32.3, Ubuntu Xenial


**Device details:**

example: Moto G+


**What is the nature of your issue**

(one of Bug, Enhancement, Question)

**Details**

First of all Zoneminder is working wel. No doubt about that. Have streams when use a browser in my local network as well in a outside network. Think i want also zmninja on my cellphone. Advise was to try the desktop version first. I did, and on my local pc zmninja also work fine as long as i am on my local network. Outside i have no streaming. I take over the exact config of wmninja as on my local network. The wizard was 100% ok. Three green lines.
Need some help
Thanks

**zmNinja Debug Logs** 
``Jul 18, 2019 12:48:35 PM INFO MonitorCtrl:Stopping network pull...
Jul 18, 2019 12:48:35 PM DEBUG NVR: killing  live stream ck:642241
Jul 18, 2019 12:48:35 PM DEBUG Single monitor exited killing stream
Jul 18, 2019 12:48:35 PM DEBUG Removing keyboard handler
Jul 18, 2019 12:48:31 PM INFO configurePTZ 1 is not PTZ controllable
Jul 18, 2019 12:48:31 PM DEBUG configurePTZ: called with mid=1
Jul 18, 2019 12:48:31 PM DEBUG MonitorModalCtrl called from app.monitors
Jul 18, 2019 12:48:31 PM INFO Using stream mode single
Jul 18, 2019 12:48:31 PM INFO Monitor Orientation is: undefined
Jul 18, 2019 12:48:31 PM DEBUG MonitorCtrl:Open Monitor Modal with monitor Id=1 and Controllable:0 with control ID:null
Jul 18, 2019 12:48:27 PM DEBUG reporting status of monitors from multi-server API
Jul 18, 2019 12:48:27 PM DEBUG no packery profile, making sure monitors are show
Jul 18, 2019 12:48:27 PM DEBUG Loading hidden/unhidden status for profile:
Jul 18, 2019 12:48:27 PM DEBUG Storing streaming=https://83.84.227.149/cgi-bin-zm recording=https://83.84.227.149/zm
Jul 18, 2019 12:48:27 PM DEBUG No servers matched, filling defaults...
Jul 18, 2019 12:48:27 PM DEBUG Storing streaming=https://83.84.227.149/cgi-bin-zm recording=https://83.84.227.149/zm
Jul 18, 2019 12:48:27 PM DEBUG No servers matched, filling defaults...
Jul 18, 2019 12:48:27 PM DEBUG Storing streaming=https://83.84.227.149/cgi-bin-zm recording=https://83.84.227.149/zm
Jul 18, 2019 12:48:27 PM DEBUG No servers matched, filling defaults...
Jul 18, 2019 12:48:27 PM DEBUG Storing streaming=https://83.84.227.149/cgi-bin-zm recording=https://83.84.227.149/zm
Jul 18, 2019 12:48:27 PM DEBUG No servers matched, filling defaults...
Jul 18, 2019 12:48:27 PM DEBUG Storing streaming=https://83.84.227.149/cgi-bin-zm recording=https://83.84.227.149/zm
Jul 18, 2019 12:48:27 PM DEBUG No servers matched, filling defaults...
Jul 18, 2019 12:48:27 PM DEBUG Storing streaming=https://83.84.227.149/cgi-bin-zm recording=https://83.84.227.149/zm
Jul 18, 2019 12:48:27 PM DEBUG No servers matched, filling defaults...
Jul 18, 2019 12:48:27 PM DEBUG Storing streaming=https://83.84.227.149/cgi-bin-zm recording=https://83.84.227.149/zm
Jul 18, 2019 12:48:27 PM DEBUG No servers matched, filling defaults...
Jul 18, 2019 12:48:27 PM DEBUG default multi-server protocol will be:https://
Jul 18, 2019 12:48:27 PM DEBUG Portal scheme is https, will use https for any multi-server without a protocol
Jul 18, 2019 12:48:27 PM INFO multi server list loaded
Jul 18, 2019 12:48:27 PM INFO Monitor load was successful, loaded 7 monitors
Jul 18, 2019 12:48:27 PM DEBUG Now trying to get multi-server data, if present
Jul 18, 2019 12:48:27 PM DEBUG Inside getMonitors, will also regen connkeys
Jul 18, 2019 12:48:27 PM DEBUG no packery profile, making sure monitors are show
Jul 18, 2019 12:48:27 PM DEBUG Loading hidden/unhidden status for profile:
Jul 18, 2019 12:48:27 PM INFO Now that we have monitors, lets get AuthKey...
Jul 18, 2019 12:48:26 PM DEBUG Monitor URL to fetch is:https://83.84.227.149/zm/api/monitors/index/Type !=:WebSite.json?
Jul 18, 2019 12:48:26 PM DEBUG ZMS Multiport reported: 0
Jul 18, 2019 12:48:26 PM INFO sending Cached ZM_MIN_STREAMING_PORT 0
Jul 18, 2019 12:48:26 PM INFO getMonitors:Force reloading all monitors
Jul 18, 2019 12:48:26 PM DEBUG Monitor Control afterEnter
Jul 18, 2019 12:48:26 PM DEBUG Image load error for: 5 regenerated connKey is:972144
Jul 18, 2019 12:48:26 PM DEBUG Image load error for: 3 regenerated connKey is:803876
Jul 18, 2019 12:48:26 PM DEBUG Image load error for: 7 regenerated connKey is:563445
Jul 18, 2019 12:48:26 PM DEBUG Image load error for: 4 regenerated connKey is:555558
Jul 18, 2019 12:48:26 PM DEBUG Image load error for: 6 regenerated connKey is:859673
Jul 18, 2019 12:48:26 PM DEBUG Image load error for: 2 regenerated connKey is:839325
Jul 18, 2019 12:48:26 PM DEBUG Image load error for: 1 regenerated connKey is:445098
Jul 18, 2019 12:48:25 PM DEBUG Image load error for: 5 regenerated connKey is:104268
Jul 18, 2019 12:48:25 PM DEBUG Image load error for: 4 regenerated connKey is:892077
Jul 18, 2019 12:48:25 PM DEBUG Image load error for: 3 regenerated connKey is:551683
Jul 18, 2019 12:48:25 PM DEBUG Image load error for: 7 regenerated connKey is:156744
Jul 18, 2019 12:48:25 PM DEBUG Image load error for: 6 regenerated connKey is:655976
Jul 18, 2019 12:48:25 PM DEBUG Image load error for: 2 regenerated connKey is:348152
Jul 18, 2019 12:48:25 PM DEBUG Image load error for: 1 regenerated connKey is:98862
Jul 18, 2019 12:48:24 PM DEBUG All images loaded, switching to snapshot...
Jul 18, 2019 12:48:24 PM INFO Whoops!! Monitors have changed. I'm resetting layouts, sorry!
Jul 18, 2019 12:48:24 PM INFO Monitors that are active and not DOM hidden: 7 while grid has undefined
Jul 18, 2019 12:48:24 PM INFO Did NOT find a packery layout
Jul 18, 2019 12:48:23 PM DEBUG Image load error for: 5 regenerated connKey is:115674
Jul 18, 2019 12:48:23 PM DEBUG Image load error for: 3 regenerated connKey is:923948
Jul 18, 2019 12:48:23 PM DEBUG Image load error for: 7 regenerated connKey is:849797
Jul 18, 2019 12:48:23 PM DEBUG Image load error for: 4 regenerated connKey is:23042
Jul 18, 2019 12:48:23 PM DEBUG Image load error for: 2 regenerated connKey is:570790
Jul 18, 2019 12:48:23 PM DEBUG Image load error for: 6 regenerated connKey is:157731
Jul 18, 2019 12:48:23 PM DEBUG Image load error for: 1 regenerated connKey is:245493
Jul 18, 2019 12:48:23 PM INFO Inside Montage Ctrl:We found 7 monitors
Jul 18, 2019 12:48:23 PM DEBUG skipping image refresh, packery is still loading
Jul 18, 2019 12:48:23 PM DEBUG Getting event count
Jul 18, 2019 12:48:23 PM DEBUG Getting event count
Jul 18, 2019 12:48:23 PM DEBUG Getting event count
Jul 18, 2019 12:48:23 PM DEBUG Getting event count
Jul 18, 2019 12:48:23 PM DEBUG Getting event count
Jul 18, 2019 12:48:23 PM DEBUG Getting event count
Jul 18, 2019 12:48:23 PM DEBUG Getting event count
Jul 18, 2019 12:48:23 PM DEBUG Setting up cycle interval of:10000
Jul 18, 2019 12:48:23 PM DEBUG bandwidth: highbw montage refresh set to: 2
Jul 18, 2019 12:48:23 PM DEBUG Multiport=0
Jul 18, 2019 12:48:23 PM INFO sending Cached ZM_MIN_STREAMING_PORT 0
Jul 18, 2019 12:48:23 PM INFO Returning pre-loaded list of 7 monitors
Jul 18, 2019 12:48:23 PM DEBUG NVR: Regenerating connkeys...
Ju
``
<insert debug logs here, please make sure they are within the ``` quotes so they are formatted properly>

Zoneminder Logs (if applicable)

Zoneminder syslogs at the time the error occurs. Please add context to the logs (don't just add 1-2 lines)
<insert debug logs here, please make sure they are within the ``` quotes so they are formatted properly>

Web Server Error Logs (if applicable, especially for streaming errors or API error)

typically tail -f /var/log/apache2/error.log - change to your web server of choice

Thanks!

@welcome
Copy link

welcome bot commented Jul 18, 2019

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you follow the issue template or I may not respond.

@Taurus61
Copy link
Author

What is the nature of your issue
Something went wrong filling in this.
My zoneminder works wel. I have streams in the browser inside as well as outside my local network. So i think about buying zmninja for my cellphone. Advise was to try the windows desktop first. I did that and found out that this product is good. It works and i have live streams on my local network but unfortunately not ouside my network although i use the exact same configuration. For that i need some help. Thanks

@pliablepixels
Copy link
Member

pliablepixels commented Jul 18, 2019

Hi,

  1. Can you try the beta client ? I think it is 1.3.069 https://forums.zoneminder.com/viewtopic.php?f=33&t=27699
  2. Please send me the debug logs from that client (please don't send only a portion, the full logs is useful). You don't have to post here. Just send it via your phone (tap on email button at top)
  3. If you are using a self signed certificate, please note that the common name of the certificate MUST match the IP or hostname of the WAN interface. For example, you can't generate a certificate for a LAN IP and use it with a WAN IP. Hope you have followed the FAQ https://zmninja.readthedocs.io/en/latest/guides/FAQ.html#everything-works-when-i-use-lan-ip-but-i-get-not-authenticated-when-i-use-wan-ip

@Taurus61
Copy link
Author

Taurus61 commented Jul 18, 2019 via email

@pliablepixels
Copy link
Member

Okay, looks like you did not properly fill in your issue report. It is important to fill in everything correctly.

So it looks like you are trying the windows desktop client and it is not working on WAN is that correct? I'll need full debug logs please (not a portion), or if you are able to create a test account for me I can try and connect to your server from my desktop client and see what the issue is.

@Taurus61
Copy link
Author

Taurus61 commented Jul 18, 2019 via email

@pliablepixels
Copy link
Member

pliablepixels commented Jul 18, 2019

It looks you you are facing authentication issues. Did you check point 3?

If you are using a self signed certificate, please note that the common name of the certificate MUST match the IP or hostname of the WAN interface. For example, you can't generate a certificate for a LAN IP and use it with a WAN IP. Hope you have followed the FAQ https://zmninja.readthedocs.io/en/latest/guides/FAQ.html#everything-works-when-i-use-lan-ip-but-i-get-not-authenticated-when-i-use-wan-ip

It also looks like you are using basic authentication?
Please disable it for now (there is a fAQ entry on that too)

@Taurus61
Copy link
Author

Taurus61 commented Jul 18, 2019 via email

@pliablepixels
Copy link
Member

Hi, its hard to follow you fully. It looks like you are posting from a phone/or via email.

According to your logs, you are using basic authentication. Is that correct? Please disable it for now. You will need to follow the FAQ for basic authentication.

@Taurus61
Copy link
Author

Hi,
I replied bu email. Now on github. Hope this is better.

I don't think i have an authentication problem. Look at the attached screendump. Looks to me that i can't go that far without authentication. The streams do work when use the browser. Inside as well as outside my network.

Configure zmninja with the wizard results in three green lines. All okay

Rgds, Paul
zmninja_screendump18jul

@pliablepixels
Copy link
Member

pliablepixels commented Jul 18, 2019

Basic authentication affects streaming. Have you tried disabling it?
Please disable it, test it, if it works, then please read the FAQ for basic auth.

@Taurus61
Copy link
Author

I have a working situation here with basic authentication. That is in the browser inside as well as outside my network. ZMNINJA looks allright too except the streaming on the windows client outside the network
pieceofApatcheConf.txt

@pliablepixels
Copy link
Member

pliablepixels commented Jul 19, 2019

Hi there, its hard to help you if you are not exactly following my requests, especially because I don't have access to your server. Would appreciate if you read and responded to all the points below:

  1. Please disable basic auth and test zmNinja from WAN. Does it work? (This is simply to figure out if basic auth is causing a problem in WAN or not)

  2. When you say WAN is working from the browser, is the browser being used from the same device zmNinja is on?

  3. What about event playback from WAN? Does it work with zmNinja?

  4. If zmNinja is not working from WAN even after you disable basic auth, can I get access to your ZM console with a test account?

@Taurus61
Copy link
Author

Taurus61 commented Jul 19, 2019

  1. Basic auth is disabled now
  2. Yes
  3. It give no errors but no events and do no stream
  4. removed for security

@pliablepixels
Copy link
Member

pliablepixels commented Jul 19, 2019

I am able to see it just fine. Let me upload 1.3.069 desktop windows to make sure

Screen Shot 2019-07-19 at 10 12 50 AM

Screen Shot 2019-07-19 at 10 13 59 AM

@pliablepixels
Copy link
Member

@Taurus61
Copy link
Author

Hi there
This looks great. I was a little afraid that nothing works when disable the basic auth. Now i have a dilemma. Apache auth or ZM auth. :-)
You didn't change anything? Just before i give you the test credentials i tested it and it was not working. Now it does. Strange. I will download 069 and let you know

@pliablepixels
Copy link
Member

  1. I did not change anything
  2. You don't have to decide between ZM auth and basic auth. You can continue using basic auth as long as you read the basic auth FAQ properly

@Taurus61
Copy link
Author

Yes i understand and read the FAQ about basic auth.
Found out that changing a userid in settings takes a while for seeing the authorized monitors. I think i was a little impatience. Thanks for your patience en great help. Now i am sure i get ZMninja for my android. In the meantime i installed 069 on a remote site and it looks great. If you wanna know something about that version ask me and i will have a look for you

@pliablepixels
Copy link
Member

The only additional suggestion I'd have is to not use self signed certificates - some phones don't seem to like them, plus they cause additional issues when trying to save photos to phone.

Changing to LetsEncrypt is a good free option.

@Taurus61
Copy link
Author

Bought the app. Works great.

@Taurus61 Taurus61 reopened this Jul 21, 2019
@Taurus61
Copy link
Author

One last question. I am now a registered user. Can i use the mobile app only on one device? I bought it for my android cellphone and like to use it too on my ipad?

@pliablepixels
Copy link
Member

I believe both Apple and Android allow installs on multiple devices including their family plans. However there is no way to share it across platforms (i.e Android and iOS) - I don't control this. This is how I believe Apple and iOS apps work in general. I am closing this issue as it seems resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants