3
votes

I am using Google Cloud SDK for publishing and trying to host my first basic site. Whenever I try to deploy app, it shows error 403: appengine.applications.get permission is required. I've tried each and every thing: searched a lot but still not able to find any solution. Also after changing project name and then browsing the site, it still shows error 404 ,requested url not found on the server.

link- udacitywork1.appspot.com

INDEX.HTML

<html>
  <head>
    <title>Hello, udacity!</title>
    <link rel="stylesheet" type="text/css" href="/css/style.css">

  </head>
  <body>
    <h1>Hello,Udacity!</h1>
  </body>
</html>

APP.YAML CODE

runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /
  static_files: www/index.html
  upload: www/index.html

- url: /(.*)
  static_files: www/\1
  upload: www/(.*)

error 404 screenshot error 403 screenshot

Please help! Thanks in advance!

1
I check the URL it's showing 'Hello,Udacity!' without any problem. I did not get any 404 error - Bravin Balasubramaniam
yeah! but i updated the site to hello, udacity123! and then deployed then the error 403 came. then icahnged the project name to udacity1234. so the link becomes www.udacity1234.appspot.com. now u check the error 404 will show. - nchhabra1311
@nchhabra1311 Please don't post text as images. Instead copy-paste and format it accordingly. Thanks. - Dan Cornilescu
The app which works is someone's else's app (you wouldn't be the 1st one thinking to call it udacitywork1) - which is why you couldn't deploy. - Dan Cornilescu
The hostname in the url should become <your_app_name>.appspot.com, the leading www. is something else - you have nothing in the code justifying it. - Dan Cornilescu

1 Answers

1
votes

Changing the project name locally to a project which doesn't exist on GAE is not gonna work - you'll get the 403 errors. The project must be visible in your developer console before you can reference it in the gcloud commands.

From the Before you begin section in the Quickstart for Python App Engine Standard Environment:

Before running and deploying this quickstart, you must set up a Cloud Platform project for App Engine and then install the Cloud SDK:

  1. Create a new Cloud Platform project and App Engine application using the Cloud Platform Console:

    Go to App Engine

    When prompted, select the region where you want your App Engine application located. After your App Engine application is created, the Dashboard opens.