Touch App Loses Server Constantly
I have manually added my SecuritySpy Server to the iPhone app, but every time it loses connection (while changing from wifi to LTE for example) the app freaks out, throws an error message and the server is deleted. Is there a way to make it stop deleting the server? This is quite cumbersome because it's a long url a long username and a very long password. Sometimes even restarting the app causes the dreaded "Connection failed" error message and the server to be deleted.
Other than that, the app works great! (even through an nginx proxy with ssl)
Other than that, the app works great! (even through an nginx proxy with ssl)
Comments
Are you sure you are using the latest version of the app? Open App Store on your iPhone, search for SecuritySpy and see if there is an option to download the app.
- On my nginx server, tail -f error and access logs (to make sure I didn't miss any paths and throw accidental 404s for security spy requests).
- Phone is connected to LTE (same thing happens on wifi).
- Click + icon. Enter fully qualified host name. port 443 user, password.
- Click continue, and I immediately see all my cameras. I was blown away the first time I did this on LTE and it worked.
I see log entries like this from nginx:
107.77.211.96 - - [28/Apr/2018:16:43:23 -0700] "GET /++systemInfo HTTP/1.1" 400 272 "-" "SecuritySpyViewer/108"
107.77.211.96 - - [28/Apr/2018:16:43:23 -0700] "GET /++systemInfo HTTP/1.1" 401 196 "-" "SecuritySpyViewer/108"
107.77.211.96 - david [28/Apr/2018:16:43:23 -0700] "GET /++systemInfo HTTP/1.1" 200 1566 "-" "SecuritySpyViewer/108"
107.77.211.96 - david [28/Apr/2018:16:43:24 -0700] "GET /++image?cameraNum=0&width=960 HTTP/1.1" 200 113941 "-" "SecuritySpyViewer/108"
107.77.211.96 - david [28/Apr/2018:16:43:24 -0700] "GET /++image?cameraNum=2&width=960 HTTP/1.1" 200 117265 "-" "SecuritySpyViewer/108"
107.77.211.96 - david [28/Apr/2018:16:43:24 -0700] "GET /++image?cameraNum=1&width=960 HTTP/1.1" 200 123970 "-" "SecuritySpyViewer/108"
.... they go on as long as I look at this screen.
- Double tap home button, swipe up on SecuritySpy to close it.
- Open securityspy back up.
- It spins for a while with my hostname in the top.
- Nginx produces no logs, no new connections, no requests. SecuritySpy never tries to reconnect on port 443.
- After 5-10 seconds: Connection Failed Unable to connect to the server.
- Click OK.
- I see my server is now saved, I click it. Same problem.
- At this point if I click the + I can repeat the entire process.
It feels like something is not being saved. Like the port. I could crack open tcpdump on my router to figure out if security spy is trying to hit another port. Lemme know if I can help figure this out.
Thanks so much!
I had noticed some SS weirdness a while ago when my phone was allowed to switch network connections by itself.
The only thing not working is: Once I add the server to the Touch app it cannot reconnect after disconnecting. Then I add the server again, it connects, works and continues working until it disconnects. The problem is that I have to re-type the hostname, port, username and password every time I want to look at cameras; it works fine, it just doesn't save the server in such a way that it's able to reconnect. Reproduced on multiple devices.
It's a custom setup because I don't think SecuritySpy provides SSL natively; nginx is doing that for me. And that's all working.
You only have a couple possible problems from what I can understand.
1. SS Touch App isn't storing the Port number between sessions (less likely because it SEEMS to save it for most of us)
2. SS Touch isn't actually storing the port properly, but the rest of us are not noticing because we're using the default port that SS selects.
3. Despite being a systems engineer, there is an errant rule in your firewall.
4. The NGINX proxy is doing something bad to the connection. <--- I put my money here
2. This is my gut feeling because nginx never records additional connections after the first one stops.
3. Even without a firewall - changing dns to use a local IP - this happens.
4. Good possibility, but nginx never receives a connection after the first one closes.
I suppose I'm at the point of "go run tcpdump" to see what the phone is doing while it purports to be reconnecting. For now, I'm using a web browser to view my cameras.
Thanks for your help!
As for parameters not getting stored in prefs, we had a similar problem in our EHR app (~2,000 pages of source code) transitioning from 32-bit to 64-bit apps. An obscure line in preferences handler stopped handling inbound variants that were integers. Everywhere else integers going from 32 to 64 had been corrected. A quirk of syntax hid a Int32, Int64 mismatch. No integers were being properly stored, but were correctly read. Maybe something similar in SS?
When you get it to the state where it can't connect, tap and hold on the server instance in the app. You should get a pop-up where it shows you what addresses it's attempting to use to connect to the server. Are the ones shown here correct or incorrect?
Any updates on how to fix this? Thanks
Can anyone recommend an alternative app that works with securityspy to view cameras remotely from a mobile device? (that doesn't require re-typing all the login credentials on every invocation?)
Any chance of fixing this bug? plz plz plz - I really want to use this app, but it's just not convenient when I have to re-enter the login info every time I open it.
Curious if this bug ever got fixed. Related: https://bensoftware.com/forum/discussion/comment/11697#Comment_11697
The app has been updated since we had this discussion, and yes this problem should be fixed. It's much better now at using the correct ports and remember the user's input in addition to any auto-discovered ports.
Thanks! I'll try switching my port back now.