Error in creating cloud endpoint in Compute Engine

75 views
Skip to first unread message

Mahmoud Alaa

unread,
Nov 19, 2017, 6:51:19 AM11/19/17
to Google Cloud Endpoints
Hello everybody, I need to create a cloud endpoint on compute engine, I followed this create endpoint on compute engine with Debian instance , but I need to create on ubuntu instance not debian. I didn't find any tutorial to create endpoints on ubuntu instance deployed on compute engine. I followed previous link and got error in "Running the sample API" section in step 4: "Set up a virtual environment",  when run "./bin/pip install -r requirements.txt" I get "error no such file or directory". I created an empty file named "requirements.txt", then when run I get "You must give at least one requirement to install (see "pip help install")"

If previous link is for Debian instances only, please tell me how to get out from this trouble or give me a tutorial for ubuntu instances.

Thank you.

D. T.

unread,
Nov 20, 2017, 6:13:25 PM11/20/17
to mahmoud...@positiveedge-mea.com, Google Cloud Endpoints
Are you in the wrong directory? The instructions refer to https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/endpoints/getting-started/requirements.txt. In the worst case, you can just copy the contents into requirements.txt.

Daniel Tang | Software Engineer | ta...@google.com | Google Inc



--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/cf61677e-2331-4c60-9733-21294262e764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mahmoud Alaa

unread,
Nov 26, 2017, 5:38:51 AM11/26/17
to Google Cloud Endpoints
Okay, I copied content from here into a file I created named 'requirements.txt' and run this commend " ./bin/pip install -r requirements.txt" successfully,
But run next command " ./bin/gunicorn -b :8081 main:app"   gave  'error no such file or directory'. 
Thank you for your support!


D. T.

unread,
Nov 28, 2017, 4:34:03 PM11/28/17
to mahmoud...@positiveedge-mea.com, Google Cloud Endpoints
Can you paste the exact command and output that you're getting?

Daniel Tang | Software Engineer | ta...@google.com | Google Inc



--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.

Mahmoud Alaa

unread,
Dec 3, 2017, 4:39:32 AM12/3/17
to Google Cloud Endpoints
I'm following steps here, in "Running the sample API" section and when execute this command "gcloud compute scp --recurse . [INSTANCE-NAME]:~/"  no error appeared in windows cmd.

I understood that  previous command will copy files from getting-started on my local machine to /home/current_user  in cloud instance ,

I connected to instance via Win SCP on windows 10 but I can't find the deployed files in the instance in /home/current_user.

Thank you for your support.


Mahmoud Alaa

unread,
Dec 3, 2017, 5:11:42 AM12/3/17
to Google Cloud Endpoints
Finally, I dragged files from getting-started sample into /home/current_user with winSCP.
May I can't find deployed sample files on my cloud instance or  this command "   gcloud compute scp --recurse . [INSTANCE-NAME]:~/
"  not run for me on ubunut 16.04 LTS .
 

D. T.

unread,
Dec 5, 2017, 7:02:17 PM12/5/17
to mahmoud...@positiveedge-mea.com, Google Cloud Endpoints
I'm not entirely sure what state you're in right now. Do you have the files uploaded to a GCE VM?

Daniel Tang | Software Engineer | ta...@google.com | Google Inc



--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.

Mahmoud Alaa

unread,
Dec 6, 2017, 5:53:49 AM12/6/17
to Google Cloud Endpoints
Thank you, endpoint code uploaded and run successfully.
        The problem with me was that  command "gcloud compute scp --recurse . [INSTANCE-NAME]:~/"  didn't upload files
    or may be uploaded somewhere else. I uploaded files using SFTP.

    Thank you for support.

D. T.

unread,
Dec 6, 2017, 1:56:01 PM12/6/17
to mahmoud...@positiveedge-mea.com, Google Cloud Endpoints
Glad to hear!

Daniel Tang | Software Engineer | ta...@google.com | Google Inc



--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages