<< return to Vizycam.com

Web browser unavailable with amber light

Hi,
I am not experienced with python, but deemed it safe to just follow the pet_companion instructions to create a new app by first creating a folder.
Since the folder name was not listed in the app/example list, as was described in the example, I rebooted the camera through the web interface and could not get the web interface back up. Connected through ssh, deleted the folder and looked for hidden files, as I read in other posts, but nothing worked.
how can I get the camera web browser back up?

Hello,
Sorry for the problems!
To give me an idea of what could be going wrong, can you please run the command below through SSH or via keyboard/monitor and tell me what the output is?

sudo journalctl -f --unit vizy-server

Edward

thanks for the quick reply and sorry for the delay in getting back.
the reply loops as follows:
May 22 11:54:20 vizy systemd[1]: Stopped Vizy server.
May 22 11:54:20 vizy systemd[1]: Started Vizy server.
May 22 11:54:24 vizy python3[1457]:
May 22 11:54:24 vizy python3[1457]: Unhandled exception:
May 22 11:54:24 vizy python3[1457]: Traceback (most recent call last):
May 22 11:54:24 vizy python3[1457]: File “/home/pi/vizy/scripts/vizy_server”, line 4, in
May 22 11:54:24 vizy python3[1457]: vv = VizyVisor()
May 22 11:54:24 vizy python3[1457]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/vizyvisor.py”, line 87, in init
May 22 11:54:24 vizy python3[1457]: self.apps_dialog = AppsDialog(self, PMASK_CONSOLE, PMASK_APPS)
May 22 11:54:24 vizy python3[1457]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 91, in init
May 22 11:54:24 vizy python3[1457]: self.update_progs()
May 22 11:54:24 vizy python3[1457]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 317, in update_progs
May 22 11:54:24 vizy python3[1457]: self.progs[k] = [self._app_info(appdir, f) for f in os.listdir(appdir)]
May 22 11:54:24 vizy python3[1457]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 317, in
May 22 11:54:24 vizy python3[1457]: self.progs[k] = [self._app_info(appdir, f) for f in os.listdir(appdir)]
May 22 11:54:24 vizy python3[1457]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 240, in app_info
May 22 11:54:24 vizy python3[1457]: pyfiles = [f for f in os.listdir(path) if f.endswith(".py")]
May 22 11:54:24 vizy python3[1457]: NotADirectoryError: [Errno 20] Not a directory: '/home/pi/vizy/apps/.
.DS_Store’
May 22 11:54:24 vizy python3[1457]:
May 22 11:54:24 vizy systemd[1]: vizy-server.service: Main process exited, code=exited, status=1/FAILURE
May 22 11:54:24 vizy systemd[1]: vizy-server.service: Failed with result ‘exit-code’.
May 22 11:54:24 vizy systemd[1]: vizy-server.service: Service RestartSec=100ms expired, scheduling restart.
May 22 11:54:24 vizy systemd[1]: vizy-server.service: Scheduled restart job, restart counter is at 25313.
May 22 11:54:24 vizy systemd[1]: Stopped Vizy server.
May 22 11:54:24 vizy systemd[1]: Started Vizy server.
May 22 11:54:28 vizy python3[1463]:
May 22 11:54:28 vizy python3[1463]: Unhandled exception:
May 22 11:54:28 vizy python3[1463]: Traceback (most recent call last):
May 22 11:54:28 vizy python3[1463]: File “/home/pi/vizy/scripts/vizy_server”, line 4, in
May 22 11:54:28 vizy python3[1463]: vv = VizyVisor()
May 22 11:54:28 vizy python3[1463]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/vizyvisor.py”, line 87, in init
May 22 11:54:28 vizy python3[1463]: self.apps_dialog = AppsDialog(self, PMASK_CONSOLE, PMASK_APPS)
May 22 11:54:28 vizy python3[1463]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 91, in init
May 22 11:54:28 vizy python3[1463]: self.update_progs()
May 22 11:54:28 vizy python3[1463]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 317, in update_progs
May 22 11:54:28 vizy python3[1463]: self.progs[k] = [self._app_info(appdir, f) for f in os.listdir(appdir)]
May 22 11:54:28 vizy python3[1463]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 317, in
May 22 11:54:28 vizy python3[1463]: self.progs[k] = [self._app_info(appdir, f) for f in os.listdir(appdir)]
May 22 11:54:28 vizy python3[1463]: File “/usr/local/lib/python3.7/dist-packages/vizy-0.1.98-py3.7.egg/vizy/appsdialog.py”, line 240, in app_info
May 22 11:54:28 vizy python3[1463]: pyfiles = [f for f in os.listdir(path) if f.endswith(".py")]
May 22 11:54:28 vizy python3[1463]: NotADirectoryError: [Errno 20] Not a directory: '/home/pi/vizy/apps/.
.DS_Store’
May 22 11:54:28 vizy python3[1463]:
May 22 11:54:28 vizy systemd[1]: vizy-server.service: Main process exited, code=exited, status=1/FAILURE
May 22 11:54:28 vizy systemd[1]: vizy-server.service: Failed with result ‘exit-code’.
May 22 11:54:28 vizy systemd[1]: vizy-server.service: Service RestartSec=100ms expired, scheduling restart.
May 22 11:54:28 vizy systemd[1]: vizy-server.service: Scheduled restart job, restart counter is at 25314.
May 22 11:54:28 vizy systemd[1]: Stopped Vizy server.
May 22 11:54:28 vizy systemd[1]: Started Vizy server.

The likely cause is [quote=“goetz, post:3, topic:121”]
'/home/pi/vizy/apps/. .DS_Store’
[/quote]

Try connecting again via SSH and deleting it.

unfortunately it did not change the behaviour
content looks like this now:
[email protected] : ~/vizy/apps $ ls -a
. birdfeeder motionscope
[email protected] : ~/vizy/apps $ cd …
[email protected] : ~/vizy $ ls -a
. apps ._.DS_Store .DS_Store etc examples scripts sys
[email protected] : ~/vizy $

should I delete the “DS_Store” in parallel to the “apps” folder as well?

sorry - had a similar error message on “examples” , deleted both “DS_Store” files and now have access to the browser interface again.

1 Like

Those DS_Store files are created and used on the Mac. Linux doesn’t use them, but they can cause the Vizy software to fail - as you’ve seen. You can safely delete them on the Vizy and if you get them all, your problem should resolve.

You should avoid copying whole folders from the Mac to the Vizy as it will sometimes include DS_Store files and if they end up in the wrong place the problem will re-occur.

Also if you connect to the Vizy from your Mac using Samba (SMB) it can create DS_Store files on the Vizy too.

If you are using SMB, there’s an article here that talks about how to disable the DS_Store file creation from the Mac side: https://support.apple.com/en-us/HT208209

Hope this helps.

Thanks for the good information Ed :slight_smile:

This issue was fixed in 0.1.100 – that is, as far as we can tell. Can someone verify that the extra files no longer cause issues?

thanks :slight_smile:

Edward

Yes, I copied a couple of those files to an app directory and the issue didn’t happen.

Sorry, I didn’t know it’d been fixed or I’d have suggested updating!

Ah, nice – thanks for giving it a try :slight_smile: