How to Fix : 403 Forbidden You do not have permission to modify this app (app_id=u'b~con-cen-225506')

0

I am following the instruction on https://classroom.udacity.com/courses/ud859/lessons/1215898636/concepts/14522086170923

Since I am in learning phase now and already google for solution but nothing worked . appengine:devserver work fine But it shows error message when I run appengine:update .

[INFO] Scanning for projects...
[WARNING] The project com.example.helloendpoints:helloendpoints:war:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
    [INFO] 
    [INFO] -------------< com.example.helloendpoints:helloendpoints >--------------
    [INFO] Building helloendpoints 1.0-SNAPSHOT
    [INFO] --------------------------------[ war ]---------------------------------
    [INFO] 
    [INFO] >>> appengine-maven-plugin:1.9.70:update (default-cli) > package @ helloendpoints >>>
    [INFO] 
    [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ helloendpoints ---
    [INFO] argLine set to -javaagent:C:\\Users\\hp\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.9\\org.jacoco.agent-0.7.9-runtime.jar=destfile=G:\\ud859-master\\ud859-master\\Lesson_2\\00_Conference_Central\\target\\jacoco.exec
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ helloendpoints ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory G:\ud859-master\ud859-master\Lesson_2\00_Conference_Central\src\main\resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ helloendpoints ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- versions-maven-plugin:2.3:display-dependency-updates (default) @ helloendpoints ---
    [INFO] artifact javax.inject:javax.inject: checking for updates from central
    [INFO] artifact javax.servlet:servlet-api: checking for updates from central
    [INFO] artifact com.google.appengine:appengine-api-1.0-sdk: checking for updates from central
    [INFO] artifact com.google.endpoints:endpoints-framework: checking for updates from central
    [INFO] artifact com.googlecode.objectify:objectify: checking for updates from central
    [INFO] The following dependencies in Dependencies have newer versions:
    [INFO]   com.google.appengine:appengine-api-1.0-sdk .......... 1.9.68 -> 1.9.70
    [INFO]   com.googlecode.objectify:objectify ...................... 5.0 -> 6.0.2
    [INFO]   javax.servlet:servlet-api ......................... 2.5 -> 3.0-alpha-1
    [INFO] 
    [INFO] 
    [INFO] --- versions-maven-plugin:2.3:display-plugin-updates (default) @ helloendpoints ---
    [INFO] artifact com.google.appengine:appengine-maven-plugin: checking for updates from central
    [INFO] artifact com.google.cloud.tools:appengine-maven-plugin: checking for updates from central
    [INFO] artifact com.google.cloud.tools:endpoints-framework-maven-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-deploy-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from central
    [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from central
    [INFO] artifact org.codehaus.mojo:versions-maven-plugin: checking for updates from central
    [INFO] 
    [INFO] The following plugin updates are available:
    [INFO]   com.google.cloud.tools:appengine-maven-plugin .... 1.3.2 -> 2.0.0-rc2
    [INFO]   com.google.cloud.tools:endpoints-framework-maven-plugin  1.0.2 -> 2.0.0
    [INFO]   org.codehaus.mojo:versions-maven-plugin .................. 2.3 -> 2.7
    [INFO] 
    [WARNING] The following plugins do not have their version specified:
    [WARNING]   maven-clean-plugin ........................ (from super-pom) 3.1.0
    [WARNING]   maven-compiler-plugin ..................... (from super-pom) 3.8.0
    [WARNING]   maven-deploy-plugin .................... (from super-pom) 3.0.0-M1
    [WARNING]   maven-install-plugin ................... (from super-pom) 3.0.0-M1
    [WARNING]   maven-resources-plugin .................... (from super-pom) 3.1.0
    [WARNING]   maven-site-plugin ......................... (from super-pom) 3.7.1
    [WARNING]   maven-surefire-plugin .................. (from super-pom) 3.0.0-M2
    [WARNING]   maven-war-plugin .......................... (from super-pom) 3.2.2
    [INFO] 
    [INFO] Project defines minimum Maven version as: 3.6.0
    [INFO] Plugins require minimum Maven version of: 3.1.0
    [INFO] Note: the super-pom from Maven 3.5.3 defines some of the plugin
    [INFO]       versions and may be influencing the plugins required minimum Maven
    [INFO]       version.
    [INFO] 
    [INFO] No plugins require a newer version of Maven than specified by the pom.
    [INFO] 
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ helloendpoints ---
    [INFO] Not copying test resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ helloendpoints ---
    [INFO] Not compiling test sources
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ helloendpoints ---
    [INFO] Tests are skipped.
    [INFO] 
    [INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ helloendpoints ---
    [INFO] Skipping JaCoCo execution due to missing execution data file.
    [INFO] 
    [INFO] --- maven-war-plugin:2.2:war (default-war) @ helloendpoints ---
    [INFO] Packaging webapp
    [INFO] Assembling webapp [helloendpoints] in [G:\ud859-master\ud859-master\Lesson_2\00_Conference_Central\target\helloendpoints-1.0-SNAPSHOT]
    [INFO] Processing war project
    [INFO] Copying webapp resources [G:\ud859-master\ud859-master\Lesson_2\00_Conference_Central\src\main\webapp]
    [INFO] Webapp assembled in [4029 msecs]
    [INFO] Building war: G:\ud859-master\ud859-master\Lesson_2\00_Conference_Central\target\helloendpoints-1.0-SNAPSHOT.war
    [INFO] WEB-INF\web.xml already added, skipping
    [INFO] 
    [INFO] <<< appengine-maven-plugin:1.9.70:update (default-cli) < package @ helloendpoints <<<
    [INFO] 
    [INFO] 
    [INFO] --- appengine-maven-plugin:1.9.70:update (default-cli) @ helloendpoints ---
    [INFO] 
    [INFO] Google App Engine Java SDK - Updating Application
    [INFO] 
    [INFO] Retrieving Google App Engine Java SDK from Maven
    [INFO] Updating Google App Engine Application
    [INFO] Running -A con-cen-225506 -V 1 --oauth2 update G:\ud859-master\ud859-master\Lesson_2\00_Conference_Central\target/helloendpoints-1.0-SNAPSHOT
    Dec 14, 2018 2:10:04 PM java.util.prefs.WindowsPreferences <init>
    WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
    Reading application configuration data...


    Beginning interaction for module default...
    Dec 14, 2018 2:10:08 PM com.google.appengine.tools.admin.AbstractServerConnection send1
    WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=con-cen-225506&version=1&
    403 Forbidden
    You do not have permission to modify this app (app_id=u'b~con-cen-225506').
    This is try #0
    Dec 14, 2018 2:10:08 PM com.google.appengine.tools.admin.AbstractServerConnection send1
    WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=con-cen-225506&version=1&
    403 Forbidden
    You do not have permission to modify this app (app_id=u'b~con-cen-225506').
    This is try #1
    Dec 14, 2018 2:10:08 PM com.google.appengine.tools.admin.AbstractServerConnection send1
    WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=con-cen-225506&version=1&
    403 Forbidden
    You do not have permission to modify this app (app_id=u'b~con-cen-225506').
    This is try #2
    Dec 14, 2018 2:10:09 PM com.google.appengine.tools.admin.AbstractServerConnection send1
    WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=con-cen-225506&version=1&
    403 Forbidden
    You do not have permission to modify this app (app_id=u'b~con-cen-225506').
    This is try #3

    com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=con-cen-225506&version=1&
    403 Forbidden
    You do not have permission to modify this app (app_id=u'b~con-cen-225506').

    Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=con-cen-225506&version=1&
    403 Forbidden
    You do not have permission to modify this app (app_id=u'b~con-cen-225506').

    Please see the logs [C:\Users\hp\AppData\Local\Temp\appcfg3413047815688804405.log] for further information.

Here is my pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <groupId>com.example.helloendpoints</groupId>
    <artifactId>helloendpoints</artifactId>

    <!--
      The parent pom defines common style checks and testing strategies for our samples.
      Removing or replacing it should not effect the execution of the samples in anyway.
    -->
    <parent>
        <groupId>com.google.cloud.samples</groupId>
        <artifactId>shared-configuration</artifactId>
        <version>1.0.9</version>
    </parent>

    <prerequisites>
        <maven>3.6.0</maven>
    </prerequisites>


    <properties>
        <appengine.app.version>1</appengine.app.version>
        <appengine.target.version>1.9.21</appengine.target.version>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <!-- Compile/runtime dependencies -->
        <!-- Uncomment to use Endpoints Frameworks v1.0 and comment the v2.0 section -->
        <!--
        [START appengine-endpoints]
        <dependency>
              <groupId>com.google.appengine</groupId>
              <artifactId>appengine-endpoints</artifactId>
              <version>1.9.53</version>
        </dependency>
        [END appengine-endpoints]
        -->
        <!-- End of Endpoints Frameworks v1.0 -->
        <!-- Endpoints Frameworks v2.0 -->
        <!-- [START endpoints-frameworks] -->
        <dependency>
            <groupId>com.google.endpoints</groupId>
            <artifactId>endpoints-framework</artifactId>
            <version>2.2.0</version>
        </dependency>
        <!-- [END endpoints-frameworks] -->
        <!-- End of Endpoints Frameworks v2.0 -->
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
            <version>1.9.68</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode.objectify</groupId>
            <artifactId>objectify</artifactId>
            <version>5.0</version>
        </dependency>
    </dependencies>

    <build>
        <!-- for hot reload of the web application-->
        <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
        <plugins>

           <plugin>
                 <groupId>com.google.appengine</groupId>
                 <artifactId>appengine-maven-plugin</artifactId>
                 <version>1.9.70</version>
                 <configuration>
                     <enableJarClasses>false</enableJarClasses>
                     <port>8181</port>
                     <address>0.0.0.0</address>
                 </configuration>
            </plugin>
            <!-- [START appengine-plugin] -->
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>appengine-maven-plugin</artifactId>
                <version>1.3.2</version>
                <configuration>
                    <!-- deploy configuration -->
                </configuration>
            </plugin>
            <!-- [END appengine-plugin] -->
            <!-- [START endpoints-frameworks-plugin] -->
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>endpoints-framework-maven-plugin</artifactId>
                <version>1.0.2</version>
                <configuration>
                    <!-- plugin configuration -->
                    <hostname>con-cen-225506.appspot.com</hostname>
                </configuration>
            </plugin>
            <!-- [END endpoints-frameworks-plugin] -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <version>2.3</version>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>display-dependency-updates</goal>
                            <goal>display-plugin-updates</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

Any Idea ??

java
eclipse
maven
google-app-engine
google-cloud-platform
asked on Stack Overflow Dec 14, 2018 by Pravin Kamble • edited Dec 17, 2018 by Pravin Kamble

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0