openipcamera / openipc-firmware

OpenIPC Firmware for Wyze Cameras
https://openip.cam
886 stars 127 forks source link

Getting 404 error on every reboot (and other issues) #20

Open mindtripper opened 6 years ago

mindtripper commented 6 years ago

Hi!

OpenIPC looks very promising, and I think I have successfully setup by device (version 3.0.3.56).

But I'm getting 404 error on every reboot. Using the "Remove the sdcard and reinsert it. Shortly after this the camera will go "click click" again." solves this issue. And I am able to connect to http://[discoveredipaddress]/cgi-bin/status

Is it supposed to be like this at every reboot?

Next issue: Opening the http://[discoveredipaddress]/cgi-bin/hello.cgi page shows the following: "snx_autorun.sh bootstrap System Volume Information FIRMWARE_660R.bin time_lapse record log__s.txt wlansetup.sh"

Is the sdcard mounted correctly?

Final issue: Trying to change Network Settings -> Wireless Mode -> o Wireless Client does not work. It shows that I am connected to my SSID, but Select Access Point list is empty. So I cannot change from Cloud to Wireless Client.

This is what the logs say: Contents of /tmp/hacks.log: Thu Jan 1 08:00:06 GMT 1970 - /media/mmcblk0p1/snx_autorun.sh: Running (device: mmcblk0p1) Thu Jan 1 08:00:06 GMT 1970 - /media/mmcblk0p1/snx_autorun.sh: Created /tmp/www/cgi-bin Thu Jan 1 08:00:06 GMT 1970 - /media/mmcblk0p1/wlansetup.sh: WlanSetup via SD-Card - modified Fri Apr 6 14:25:58 GMT 2018 - /media/mmcblk0p1/snx_autorun.sh: Running (device: mmcblk0p1) Fri Apr 6 14:25:58 GMT 2018 - /media/mmcblk0p1/wlansetup.sh: WlanSetup via SD-Card - modified

And finally, there is no SSH that I can connect to, but "start rescue telnetd" works and I can login.

Any suggestions / help will be very appreciated.

/mindtripper

openipcamera commented 6 years ago

what was the fix?

mindtripper commented 6 years ago

I've put back the description of my issue.

What I did to resolve it was to eject and insert the sd card multiple times. Both while the device was on and off.

Then I clicked "fang hacks scripts" for the n'th time and it looked very differently than it did the first few times I tried. " Applying fang hacks scripts... Running fang_hacks.sh... Removed stale logfile Executing script (enabled: 1) Waiting for cloud apps... iCamera is running! Boa webserver is running! Not linking /media/mmcblk0p1/bootstrap/www/action: already exists Not linking /media/mmcblk0p1/bootstrap/www/cfg_rtsp: already exists Not linking /media/mmcblk0p1/bootstrap/www/cfg_rtsp_save: already exists Not linking /media/mmcblk0p1/bootstrap/www/cfg_rtsp_save-mirror: already exists Not linking /media/mmcblk0p1/bootstrap/www/func.cgi: already exists Not linking /media/mmcblk0p1/bootstrap/www/network: already exists Not linking /media/mmcblk0p1/bootstrap/www/scripts: already exists Not linking /media/mmcblk0p1/bootstrap/www/status: already exists Failed to find hacks in /media/mmcblk0p2/data! Mounted /media/mmcblk0p2/data Running startup scripts Stopping Cloud applications... test_UP[691] iCamera[689 679] miio_client[876] Module snx_wdt unloaded (0) Starting Network... Cloud mode: network unmanaged Starting ntpd... Starting crond... Starting telnetd on port 2323... Starting dropbear on port 22... Starting FTPd... Starting RTSP server... optind:3 optopt:0 snx_isp_mirror_flip_mode_set(0) ==> Starting IR script... Finished "

Voila, everything started working.

I have absolutely no idea what made it work in the end. Other than the multiple restarts of the camera and ejecting and inserting the sd card.

/mindtripper