Sgt.Foose Posted December 3, 2023 Share Posted December 3, 2023 (edited) Hi all, Just received my new Shark Jack Cable. It's connected to an Android Phone with a terminal app. When booted, plugged into LAN and in ARMING MODE, I used NETMODE DHCP_CLIENT and then ping -c3 8.8.8.8 (success ping). Then typed UPDATE_PAYLOADS and I get this message: Downloading payloads repository... tar: can't open '/tmp' payloads-sync.tar.gz': no such file or directory cp: can't stat '/tmp/payloads-sync/sharkjack-payloads-master/payloads/library': no such file or directory. Successfully synchronized payloads repository. root@shark:/# LIST_PAYLOADS Payload library is missing. Run UPDATE_PAYLOADS to sync the payload library. Device: shark Firmware version: 1.2.0 web ui version: 1.0.1 Edited December 3, 2023 by Sgt.Foose Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 3, 2023 Share Posted December 3, 2023 is the date and time correct on the Shark? Quote Link to comment Share on other sites More sharing options...
Sgt.Foose Posted December 3, 2023 Author Share Posted December 3, 2023 Nope.... 🥴 What command to use to update? Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 3, 2023 Share Posted December 3, 2023 date (for example) Quote Link to comment Share on other sites More sharing options...
Sgt.Foose Posted December 3, 2023 Author Share Posted December 3, 2023 Yes this will display the current time and year (2001). But how to update? Quote Link to comment Share on other sites More sharing options...
Solution dark_pyrro Posted December 3, 2023 Solution Share Posted December 3, 2023 it's basic Linux and you can find how with a simple search, you use the date command with options/parameters to set the date, such as date -s "yyyy-MM-dd hh:mm:ss" 1 Quote Link to comment Share on other sites More sharing options...
Sgt.Foose Posted December 3, 2023 Author Share Posted December 3, 2023 Thank you sir! This fixed my problem! Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 3, 2023 Share Posted December 3, 2023 It's because the URL used in the UPDATE_PAYLOADS script file is https based and curl just throws an error back (that you can't see since it's set up to execute silently) if the date/time is wrong which results in the fact that the tar.gz file isn't downloaded which is why you get those errors. The script file can't really handle that though and it gets a bit confusing since it says that things are successful. 1 Quote Link to comment Share on other sites More sharing options...
Sgt.Foose Posted December 3, 2023 Author Share Posted December 3, 2023 After a power cycle, the date is back: root@shark:/# date Mon Aug 23 19:33:38 UTC 2021 Any way to improve this? Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 3, 2023 Share Posted December 3, 2023 (edited) it's because the Shark hasn't got any RTC so it will revert to something it knows (which isn't the correct date or the date you last set it to). If it has got internet connection (which isn't always the case) you could run ntpd to get the date and time from the internet. But if it's offline, it will behave like that (i.e. revert to that date you posted which most likely is linked to when the firmware was created since 1.2.0 has that specific date stamp on files and directories). Edited December 3, 2023 by dark_pyrro Quote Link to comment Share on other sites More sharing options...
Sgt.Foose Posted December 3, 2023 Author Share Posted December 3, 2023 Ah ok makes sense Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.