TL;DR: Designer saved a view to the gateway with json contents “null”, Ignition “lost” all other views. Also a hash (#, 0x23) got replaced with a dash (-, 0x2D) in db_backup_sqlite.idb, maybe irrelevant?
I was reorganizing the Perspective Views folder structure, creating new folders, renaming folders and views, changing the associated URLs, redirecting Flex Repeater nested views, etc, and upon my final name change, opened the view in question and found it blank. I assumed I had once again pushed the beta to a breaking point so I pressed the save button on the designer, saw it succeed, and checked the gateway CPU usage - pegged at 100%, like I’ve seen a few times before in other scenarios. Watched it for a bit without any change, and then killed the offending “Zulu Platform…” process, as usual. I’ve historically not had any (noticeable) data loss doing this, and the system was nearly unresponsive, so I didn’t think to try an export/backup. Alas, upon coming back up, I found that the gateway seemed to have ‘lost’ my entire project - previously configured URLs showed “A Perspective project named “hunterdg” does not exist on this Gateway.” and the web UI showed “You haven’t created any Perspective projects yet!”. The Designer found my project though, and allowed me to launch it, but when opened, all views showed “no-project”.
I backed up the ‘corrupted’ gateway state and took a brief look at the archive, found it seemed to have all my recent folder structure changes and new project files from the day’s development, but the View that crashed the gateway had “null” in its view.json, so I deleted that View folder.
Fired up Beyond Compare on the old vs new backups to check if anything else obvious was corrupted, found a dash instead of a hash (0x2D instead of 0x23) in the db_backup_sqlite.idb, replaced it with a #, restored the ‘fixed’ gwbk, imported the ‘corrupted’ view from a previous backup, everything back to normal.
I got the ‘no-project’ after just doing the nightly build update this morning. One of my projects remains, but the other is giving me the ‘no-project’ on every view. I’ve tried restoring to a gateway backup just before the upgrade but get nothing.
I talked to a co-worker about this, and he experienced the almost exact same issue OP posted on the Feb20 version of Ignition8. (Unlike me, he did not directly edit the JSON. Just moved things around, created views, deleted views, etc.) Hope that helps!
Installed latest nightly and another project seems to have imploded.
Things I did that may have caused this:
-Copied JSON from one project to another.
-Copied JSON from one view to another.
-Did experience a failure when copying JSON from one view to another at one point. Copied the whole view and did some renaming as a workaround.
I ran into the same issue and have come up with a temporary solution:
On the gateway, navigated to \Inductive Automation\Ignition\data\projects
and copied the project I was working on (the one that no longer works) to my local machine.
Took a backup of the gateway.
Restored the most recent gateway back up that my project was working on.
Moved the project files I copied from step 1 to the gateway.
Step 4 was finicky. I could not move the top level project folder into the Inductive Automation\Ignition\data\projects\ directory - this resulted in the same behavior has the original problem. I tried replacing the folder one level down - com.inductiveautomation.perspective but the client could not find these views as a result. SO, I ended up manually copying each actual file into its correct directory (I WAS able to copy SOME folders to save time but it seemed to be trial and error). In the end I copied every file except the ones from com.inductiveautomation.vision (I’m not using Vision), and the project.json file.
It was tedious but a lot faster than trying to redo all the work I did.
Hope this helps either solve the issue or at least gives people a workaround for now.
I have a perspective app I have been developing for a few days and it was starting to get especially good! It seems to have died a horrible death. Yes I know it’s beta, yes I actually did backup my work several days in a row but all backups restore corrupted.
This happened when I decided to stop and start the gateway from the services after running for a solid week with ongoing development
Unfortunately when I restore from several backups going back up to four days back they all have the issue, it seems the project was running OK in memory but the backups are all corrupted or don’t load properly.
When the gateway starts in the log "ProjectCache" reports "Unable to start Perspective project IADemoProject". The error is just a null pointer exception, i will attach it below.
On the gateway webpage under Home → Perspective Session Launcher (/web/perspective-launcher?21) It says “You haven’t created any Perspective Projects yet!”
When you launch the designer the perspective screens are all there but when you edit them they all say "no-project " on each screen
Ignition version - Was running the install from 02/14, also tried on the latest 02/28 and no go
OS Windows server 2012 R2 Datacenter and Windows 7 -x64
Let me know if you would like me to PM the project to you to take a look.