x
login Signup

Project completely disappeared from EFlow

Running EFlow 7.0. Even as System Admin cannot find missing Project. Checked the logs nothing recorded regarding missing project. Track changes is enabled. No notification that the project was deleted or changed. I checked /opt/electriccloud/electriccommander/logs/commander.log nothing out of the ordinary. But also like looking for needle in a haystack.

Is it possible that the EFlow server could have a syncing issue with the EFlow database so much so that it causes a Project entry on the EFlow database to not be retrieved and displayed on the EFlow web server? My only solution I can come up with is to restart the EFlow web server and the EFlow database and see if the missing project reappears. Thoughts? Suggestions? Anyone have any other ideas of what could have happened or where I could check for an error?

avatar image By luckyirishlife 59 asked Sep 08, 2017 at 10:11 PM
more ▼
(comments are locked)
10|750 characters needed characters left

3 answers: sort voted first

You should not expect a project to disappear without a reason, such as deleting the project by API or taking away read permissions for the user trying to see the database.

ElectricFlow does not need to perform a synchronization with the database. While some API calls do get added to a queue for processing (such as running a job, or starting a delete operation that may take time), there isn't a synchronization that is necessary.

In commander.log, if you see the API call to deleteProject, there is your evidence. Alternatively, if you see a call to modifyAclEntry, createAclEntry, deleteAclEntry or similar, that may explain why a user can no longer see the project. Remember - if you removed permissions to the project, you may not see the revision in change tracking. User admin can revert those types of changes, but not restore a project that was deleted.

avatar image By marcoman 2.2k answered Sep 10, 2017 at 07:40 PM
more ▼
(comments are locked)
10|750 characters needed characters left

A project can disappear if you has lost permission to it as @marco mentioned. To confirm that, try from the command line (after logging)

 ectool getProject "your_project_name"

If the project is returned it's certainly that the ec_visibility property has been changed (like for example when trying to create a plugin). That property simply "hide" a project in the UI So to revert:

 ectool setProperty ec_visibility --value "all" --projectName "your_project_name"

Hope that help

avatar image By lrochette 5.8k answered Sep 11, 2017 at 12:51 PM
more ▼
(comments are locked)
10|750 characters needed characters left

I executed ectool getProject from the command line as admin and I got the following error.

ectool error [NoSuchProject]: Project 'SomeProject' does not exist

I have logged into the EFlow web server as admin and I cannot see the project at all. So I can rule out a permissions or visibility issue correct?

avatar image By luckyirishlife 59 answered Sep 21, 2017 at 06:32 PM
more ▼
(comments are locked)
avatar image lrochette Sep 22, 2017 at 01:41 PM

yes if you run the "ectool getProject" as admin and cannot see it, it means you project is gone. I hope you backed it up. If not in the future I would recommend to use EC-Admin::saveAllObjects on a regular schedule

Note: if the ec_visibility is not set as "all", even logging as admin won't show you the project in the UI.

10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.