Google compute engine not initialized on new project - google-compute-engine

I have started a new project on google cloud but I am unable to use the compute engine. I'm getting the following message even after 6-7 hours.
Error Google Compute Engine is not ready for use yet in the project.
It may take several minutes if Google Compute Engine has just been
enabled, or if this is the first time you use Google Compute Engine in
the project.
Is there something I am missing or there is a problem?

I deleted the project and created a new and it worked. Also the old one is stuck on pending deletion.
If someone from google wants to take a look, it would be nice to inform me on what happened.

When projects are deleted, it take a few days before the project is permanently deleted. About what happened, it could be that when the project was created the project wasn't provisioned correctly, causing this issue, but you solved it by creating a new project.

Related

Multiple app were running in background , how to close them properly, autodesk forge

It is a forge app question. The app is created in visual studio and forge app. I was debugging. I am working on a forge application where I am using Data management, design automation and model derivatives. Design automation app were closing properly. After integrating Model Derivative I was passing rfa file by mistake and app was running endlessly.. The model is very small, but initially I did some mistake while passing the model to model derivative. I was passing rfa file, later realise model derivatives do not read rfa file. In the mean time I tried so many times. After passing a rvt file to model derivative, it was very fast and was running perfect. I had deleted those hanged apps. When they were running endlessly and did not show the model in the viewer, I closed the app and rerun the app or deleted the app and created a new one and rerun. Then when I saw data usage,it shows multiple apps were consuming cloud credit.Is it possible, multiple app were running simultaneously and the jobs which I had deleted did not close properly? The test model was really small.
I had stopped the app abruptly and debug again. I can guess, multiply apps were running one upon another. It is my guess. I can be wrong.
Please let me know few known reasons, for app running in background and how to properly end a job in forge cloud platform. I simply stopped debugging in visual studio and deleted the app in forge and created a new one.
In the usage graph, it is showing overlapping colors and usage of several app. My new model for design automation is big, my worry is I will lost all of my cloud credit if I do not close the jobs properly.
How to stop a project running in forge cloud. I am sure I could not stop app running in cloud properly before creating a new forge app and debug. All of them were running. I can be wrong, because I am new to forge cloud.
I described above, what can go wrong. Please let me know what could go wrong. Model was really small.
May be Ngrok was not closed properly. No idea.
I thought I closed each job, before starting a new one.
Model Derivative API doesn't support RFA format currently. With my experience, it will the following message while submitting a translation job on the RFA file with POST Jobs. Therefore, I'm not sure why you're saying the job or the app keeps running endlessly. Could you share more details on that??
{
"diagnostic": "Failed to trigger translation for this file."
}
Besides, I'm confused with your statement here. What kind of app was deleted? The Forge app inside your myapp page? It's unclear to me.
I had deleted those hanged apps. When they were running endlessly and
did not show the model in the viewer, I closed the app and rerun the
app or deleted the app and created a new one and rerun.
To cancel or delete translation jobs, you can call DELETE manifest. According to our engineering team, each translation job has designed expire time (e.g. 2 hours). If your translation job cannot be completed within the period, then the job will be canceled immediately by our service.
Note. To cancel a Desing Automation WorkItem, you can call DELETE workitems/:id to stop the job.
Lastly, back to the cloud credits question, Model Derivative API is charging per translation job while calling POST Jobs, not by the processing hour. Currently, only the Design Automation API is charging by the processing hour of your work item, see the pricing table here: https://forge.autodesk.com/pricing.
If you have further questions, you can drop me a line to forge[DOT]help[AT]autodesk[DOT]com.
Cheers,

Duplicating GCP Project in Compute Engine

On GCP Compute Engine, I have a Project A with several VMs running. I am not using App Engine.
How can I duplicate or make an exact copy of Project A into a second Project B (having the same VMs config and all its source and data files in Project A) thus resulting in two exact Projects?
I can't seem to find a solution. Thank you.
Unfortunately there is no "copy project" internal tool to perform such a task. Speaking about VMs,the fastest way to move existing VM would be by making disk images and creating new instances at the new project using the image from your old project using the "-image-project IMAGE_PROJECT" flag.

Cloud Datalab zombie VM

I had a play with Cloud Datalab a few days ago. After I finished I deleted the VM in my list which was named gae-datalab-main-[..]
It successfully deleted.
A couple of days later I noticed back in my list of VMs. So I deleted it again thinking it was just a glitch.
But it's back again today:
Anyone know what's going on here?!
Sorry about the trouble you are having. Did you delete it from the App Engine --> Versions page? Here is a quick screenshot:

Delete Google Compute Engine instance

I am trying to delete an instance from GUI web tool. It is showing that the instance have been deleted and it is removed from the list. Also the desk have been deleted. But after some time it is coming back in the list. Can some one please tell me what is the issue ?
Thanks!
As mention on my previous comment, if you have installed any of the click to deploy software packages in GCE, you need to delete the cluster in the same page.
If this is not the case, in the Developers Console, the 'Operation' option, provides information of instance being created and by whom. This can give you an idea on what is sniping back the instance. If is's a service account, you need to find the script that is creating the instance and stop it.

Google Script for scheduling pages on a Google Site

I am exploring the option of using Google Sites for our new intranet. We need to be able to schedule pages when they are created to automatically be deleted on a particular day.
I know this functionality is not native, and I would like to know whether or not it's possible to write a Google Script for a scheduling gadget in the editor view (as opposed to the live site).
And advice is very welcome. Thanks!
Jessica
If I was implementing this, I'd write a standalone script with two separate trigger functions, both of which run daily.
Script 1 would inventory the pages in the site. When new pages are
identified, their creation and projected deletion dates would be
recorded.
Script 2 would review the list of known pages, and delete any that
have reached their expiry date.
The reason for splitting the work up is two-fold: it simplifies the problem a bit to think about it this way, and it reduces the chance of experiencing a script time-out failure.
Unless there is a native way of doing this, I would create a WatiN interface to Google sites to create and delete pages