Backup does not work anymore suddenly (404 error)

Suddenly I can’t make any backups anymore. Not on server and not local. On my browser (Chrome) a new tab is opened with an error 404 Error - not found. the URL I see is http://192.168.1.204/cgi-bin/cmh/backup.sh?external=1
The IP adress is the correct adres (Vera Edge firmware 1.7.3500).
Who can help me solve this ?

This is bizarre. This URL invokes a script on the vera. It is this one: /www/cgi-bin/cmh/backup.sh
If it opens a new tab, likely it is launching it. You may want to try SSH-ing into your box and see what error is thrown at you when running the script.

So what command should I type when i have access via ssh: cgi-bin/cmh/backup.sh ?

I have now logged in to the unit via ssh but don’t know how to proceed ? Alternative: is there a luup command to do a manual backup?

Sorry for the late reply, I was busy sending other messages.

Once you are logged in just type:

/www/cgi-bin/cmh/backup.sh

And see what it returns

It returns:

/$ /www/cgi-bin/cmh/backup.sh
-ash: /www/cgi-bin/cmh/backup.sh: not found

so this file backup.sh does not exist on my Vera Edge.
I checked on a Vera Plus I have and there I see this file. And making backups works on this controller.

So how can I resolve this on my Vera Edge ?
I am in process of moving devices to this Vera Edge and want to make very regular backups

Ohh wow this is weird. Maybe I have not spent enough time on the edge. Could you list out what you see from β€œls -l /www/cgi-bin/cmh/” ?

/$ ls -l /www/cgi-bin/cmh/
-rw-r–r-- 1 root root 12 Feb 25 22:37 1
lrwxrwxrwx 1 root root 27 Jun 23 2015 3g.sh β†’ /mios/www/cgi-bin/cmh/3g.sh
lrwxrwxrwx 1 root root 37 Jun 23 2015 ReportStatus.sh β†’ /mios/www/cgi-bin/cmh/ReportStatus.sh
lrwxrwxrwx 1 root root 32 Jun 23 2015 WifiWps.sh β†’ /mios/www/cgi-bin/cmh/WifiWps.sh
lrwxrwxrwx 1 root root 37 Jun 23 2015 access_point.sh β†’ /mios/www/cgi-bin/cmh/access_point.sh
lrwxrwxrwx 1 root root 43 Jun 23 2015 access_point_apply.sh β†’ /mios/www/cgi-bin/cmh/access_point_apply.sh
lrwxrwxrwx 1 root root 31 Jun 23 2015 cmh_ra.sh β†’ /mios/www/cgi-bin/cmh/cmh_ra.sh
lrwxrwxrwx 1 root root 35 Jun 23 2015 cmh_reboot.sh β†’ /mios/www/cgi-bin/cmh/cmh_reboot.sh
lrwxrwxrwx 1 root root 34 Jun 23 2015 cmh_reset.sh β†’ /mios/www/cgi-bin/cmh/cmh_reset.sh
lrwxrwxrwx 1 root root 34 Jun 23 2015 config_3g.sh β†’ /mios/www/cgi-bin/cmh/config_3g.sh
lrwxrwxrwx 1 root root 32 Jun 23 2015 connect.sh β†’ /mios/www/cgi-bin/cmh/connect.sh
lrwxrwxrwx 1 root root 43 Jun 23 2015 download_upnp_file.sh β†’ /mios/www/cgi-bin/cmh/download_upnp_file.sh
lrwxrwxrwx 1 root root 30 Jun 23 2015 gate.cgi β†’ /mios/www/cgi-bin/cmh/gate.cgi
lrwxrwxrwx 1 root root 43 Jun 23 2015 get_file_timestamp.sh β†’ /mios/www/cgi-bin/cmh/get_file_timestamp.sh
lrwxrwxrwx 1 root root 40 Jun 23 2015 get_session_key.sh β†’ /mios/www/cgi-bin/cmh/get_session_key.sh
lrwxrwxrwx 1 root root 33 Jun 23 2015 get_time.sh β†’ /mios/www/cgi-bin/cmh/get_time.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 get_unit_info.sh β†’ /mios/www/cgi-bin/cmh/get_unit_info.sh
lrwxrwxrwx 1 root root 39 Jun 23 2015 get_upnp_files.sh β†’ /mios/www/cgi-bin/cmh/get_upnp_files.sh
lrwxrwxrwx 1 root root 36 Jun 23 2015 get_version.sh β†’ /mios/www/cgi-bin/cmh/get_version.sh
lrwxrwxrwx 1 root root 39 Jun 23 2015 get_zwave_jobs.sh β†’ /mios/www/cgi-bin/cmh/get_zwave_jobs.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 handle_engine.sh β†’ /mios/www/cgi-bin/cmh/handle_engine.sh
lrwxrwxrwx 1 root root 28 Jun 23 2015 log.sh β†’ /mios/www/cgi-bin/cmh/log.sh
lrwxrwxrwx 1 root root 34 Jun 23 2015 log_level.sh β†’ /mios/www/cgi-bin/cmh/log_level.sh
lrwxrwxrwx 1 root root 31 Jun 23 2015 logger.sh β†’ /mios/www/cgi-bin/cmh/logger.sh
lrwxrwxrwx 1 root root 29 Jun 23 2015 logo.sh β†’ /mios/www/cgi-bin/cmh/logo.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 mios-services.sh β†’ /mios/www/cgi-bin/cmh/mios-services.sh
lrwxrwxrwx 1 root root 37 Jun 23 2015 online_check.sh β†’ /mios/www/cgi-bin/cmh/online_check.sh
lrwxrwxrwx 1 root root 30 Jun 23 2015 proxy.sh β†’ /mios/www/cgi-bin/cmh/proxy.sh
lrwxrwxrwx 1 root root 33 Jun 23 2015 redirect.sh β†’ /mios/www/cgi-bin/cmh/redirect.sh
lrwxrwxrwx 1 root root 30 Jun 23 2015 relay.sh β†’ /mios/www/cgi-bin/cmh/relay.sh
lrwxrwxrwx 1 root root 46 Jun 23 2015 remove_obsolete_files.sh β†’ /mios/www/cgi-bin/cmh/remove_obsolete_files.sh
lrwxrwxrwx 1 root root 34 Jun 23 2015 remove_ra.sh β†’ /mios/www/cgi-bin/cmh/remove_ra.sh
lrwxrwxrwx 1 root root 39 Jun 23 2015 repair_reports.sh β†’ /mios/www/cgi-bin/cmh/repair_reports.sh
lrwxrwxrwx 1 root root 32 Jun 23 2015 restore.sh β†’ /mios/www/cgi-bin/cmh/restore.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 retrieve_file.sh β†’ /mios/www/cgi-bin/cmh/retrieve_file.sh
lrwxrwxrwx 1 root root 33 Jun 23 2015 services.sh β†’ /mios/www/cgi-bin/cmh/services.sh
lrwxrwxrwx 1 root root 33 Jun 23 2015 set_time.sh β†’ /mios/www/cgi-bin/cmh/set_time.sh
lrwxrwxrwx 1 root root 32 Jun 23 2015 sysinfo.sh β†’ /mios/www/cgi-bin/cmh/sysinfo.sh
lrwxrwxrwx 1 root root 32 Jun 23 2015 tech_ra.sh β†’ /mios/www/cgi-bin/cmh/tech_ra.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 tech_ra_check.sh β†’ /mios/www/cgi-bin/cmh/tech_ra_check.sh
lrwxrwxrwx 1 root root 39 Jun 23 2015 timezone_apply.sh β†’ /mios/www/cgi-bin/cmh/timezone_apply.sh
lrwxrwxrwx 1 root root 39 Jun 23 2015 trouble_report.sh β†’ /mios/www/cgi-bin/cmh/trouble_report.sh
lrwxrwxrwx 1 root root 36 Jun 23 2015 update_user.sh β†’ /mios/www/cgi-bin/cmh/update_user.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 upgrade_notes.sh β†’ /mios/www/cgi-bin/cmh/upgrade_notes.sh
lrwxrwxrwx 1 root root 37 Jun 23 2015 upgrade_prep.sh β†’ /mios/www/cgi-bin/cmh/upgrade_prep.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 upgrade_step1.sh β†’ /mios/www/cgi-bin/cmh/upgrade_step1.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 upgrade_step2.sh β†’ /mios/www/cgi-bin/cmh/upgrade_step2.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 upgrade_step3.sh β†’ /mios/www/cgi-bin/cmh/upgrade_step3.sh
lrwxrwxrwx 1 root root 38 Jun 23 2015 upgrade_step4.sh β†’ /mios/www/cgi-bin/cmh/upgrade_step4.sh
lrwxrwxrwx 1 root root 46 Jun 23 2015 upload_file_on_camera.sh β†’ /mios/www/cgi-bin/cmh/upload_file_on_camera.sh
lrwxrwxrwx 1 root root 41 Jun 23 2015 upload_upnp_file.sh β†’ /mios/www/cgi-bin/cmh/upload_upnp_file.sh
lrwxrwxrwx 1 root root 34 Jun 23 2015 usb_stick.sh β†’ /mios/www/cgi-bin/cmh/usb_stick.sh
lrwxrwxrwx 1 root root 37 Jun 23 2015 verbose_logs.sh β†’ /mios/www/cgi-bin/cmh/verbose_logs.sh
lrwxrwxrwx 1 root root 39 Jun 23 2015 view_upnp_file.sh β†’ /mios/www/cgi-bin/cmh/view_upnp_file.sh
lrwxrwxrwx 1 root root 31 Jun 23 2015 webcam.sh β†’ /mios/www/cgi-bin/cmh/webcam.sh
lrwxrwxrwx 1 root root 34 Jun 23 2015 wepkeygen.sh β†’ /mios/www/cgi-bin/cmh/wepkeygen.sh
lrwxrwxrwx 1 root root 34 Jun 23 2015 wifi_scan.sh β†’ /mios/www/cgi-bin/cmh/wifi_scan.sh

Ok now I know for certain your file is missing somehow. Likely got corrupted and deleted as I think on the newer FW version, this folder is actually write only. I would recommend to reinstall the firmware. It is very likely you have some bad sectors on the flash storage drive. Beware.

Many thanks for your help!
Making the backups worked many times past 2 weeks. Yesterday evening I got this error message for the first time.
What is strange to me is that the daily scheduled backup did work this morning (it is every morning at 10:15 AM). So today I added a couple of new devices and again I got this error message.
Does this make any sense ?
Should I wait till tomorrow morning and see if the daily backup worked out well (I live in Holland it is now 21:00h

Then about your advice: how do in reinstall the firmware ?

I am fairly sure that this file was there before and suddenly disappeared. Possibly after a reboot where the OS detected corrupted sector and started a clean up.

You can re-install the firmware by grabbing the url for it and pasting it into the url field. Pretty safe to keep your configuration in this case during the upgrade.

OK.
And were can I find this URL? On the old forum I could found these. Now don’t know where to find them or how to search.
I am on Running Version 1.7.3500

I am looking back at my old stuff and I could only find these which are somewhat newer:

https://dl.mios.com/mt7620a_betafirmware/mt7620a_Luup_ui7-1.7.4452-en-mios.squashfs

https://dl.mios.com/rl/BETA/726/mt7620a_Luup_ui7-1.7.3754-en-mios.squashfs

and bingo

https://dl.mios.com/mt7620a_betafirmware/mt7620a_Luup_ui7-1.7.3500-en-mios.squashfs

2 Likes

Thanks again !! I just started the reinstall. Keep my fingers crossed coming 15 minutes…

@Rafale: it worked! Now I can make backups again.
You are a hero! The remaining Vera users (including me but I don’t know how long I will stay with the ongoing failures and disrespect to the current userbase from the Vera team…) will miss you now you have ditched your Vera’s and probably will be less active on this forum :cry:

2 Likes

Glad you got it fixed. If I knew from the get go that you were on an older firmware I would have done something else. That folder was actually writable on this version so you could have just copied it over from the rom partition… oh well. For next time.

I will stick around. I am still working to pave the way for a more stable/reliable solution and help whoever needs it as my time permits just as many others like me around here.

1 Like