简体   繁体   English

由于应用程序设置损坏,Google App Engine(Java)自定义页面为“无法解析服务器的DNS地址”。 我该如何解决?

[英]Google App Engine (Java) custom page is “Unable to resolve the server's DNS address” caused by corrupted Application Settings. How can I fix it?

I'm trying to display a custom admin page in the "Custom" section of GAE's admin console (Java). 我正在尝试在GAE管理控制台(Java)的“自定义”部分中显示自定义管理页面。 I've got the html file in the war directory. 我在war目录中有html文件。 My appengine-web.xml contains the admin-console tag: 我的appengine-web.xml包含admin-console标记:

<admin-console>
    <page name="Hello World" url="/helloWorld.html" />
</admin-console>

To view the custom admin page, I need to deploy to app engine (searching on stack overflow I found that custom pages do not show up in the dev environment). 要查看自定义管理页面,我需要部署到应用程序引擎(搜索堆栈溢出后发现自定义页面未显示在开发环境中)。 When I deploy, I see the link under the "Custom" section as "Hello World". 部署后, 我在“自定义”部分下看到的链接为“ Hello World”。 When I click on it, I get an error message: 当我单击它时,我收到一条错误消息:

Unable to resolve the server's DNS address

You can find a screenshot of the error message here: http://i.stack.imgur.com/656P9.jpg 您可以在此处找到错误消息的屏幕截图: http : //i.stack.imgur.com/656P9.jpg

Debugging steps taken: 调试步骤:

  1. Is the html page available when I try to access it directly. 当我尝试直接访问html页面时,该页面是否可用。 ie app-id.appspot.com/helloWorld.html ? app-id.appspot.com/helloWorld.html吗?
    Yes

  2. If I create a new app in app engine (let's call this app2) and deploy this same code , can I access the custom page from within the admin console? 如果我在应用程序引擎中创建了一个新应用程序(我们称其为app2)并部署了相同的代码 ,是否可以从管理控制台中访问自定义页面?
    Yes

  3. If I create a new app by copying the settings from my original app (let's call this app3) using the "Duplicate Application Settings" from Application Settings in the Admin Console and then deploy this same code , can I access the custom page from within the admin console? 如果我通过使用管理控制台中“应用程序设置”中的“复制应用程序设置”从原始应用程序 (称为“ app3”)中复制设置来创建新应用程序,然后部署了相同的代码 ,我是否可以从管理控制台?
    No 没有

  4. Are the Application Settings of app2 and app3 the same (Application Settings is accessible from the Admin Console)? app2和app3的应用程序设置是否相同(可以从管理控制台访问应用程序设置)?
    Yes (except for the "Application Title" and "Application Identifier") (“应用程序标题”和“应用程序标识符”除外)

  5. Am I using a Custom domain? 我在使用自定义域吗? [1] [1]
    No 没有

  6. Am I using Google Accounts API for the "Authentication Type"? 我是否将Google Accounts API用作“身份验证类型”? [1] [1]
    Yes

[1] Stack Overflow post: Datastore admin - Unable to resolve the server's DNS address [1]堆栈溢出信息: 数据存储区管理员-无法解析服务器的DNS地址

This leads me to believe that my Application Settings are somehow corrupted and I cannot fix this from the Application Settings section in the Admin Console. 这使我相信我的应用程序设置已被损坏,因此无法从管理控制台的“应用程序设置”部分进行修复。 Is there a way that I can "clean" my Application Settings or "restore to factory defaults" to fix this, without affecting the data in my app? 有没有一种方法可以“清除”我的“应用程序设置”或“还原为出厂默认设置”来解决此问题,而又不影响我的应用程序中的数据?

Any help with how to fix this is greatly appreciated! 非常感谢您提供有关如何解决此问题的帮助! Thanks! 谢谢!

I posted this on HN for more exposure, link to discussion: https://news.ycombinator.com/item?id=9443973 我将其发布在HN上以获取更多信息,并链接至讨论: https : //news.ycombinator.com/item?id=9443973

One of the comments suggested that I redeploy with a new version name and delete the old version. 其中一条评论建议我重新部署新版本名称,然后删除旧版本。 that did the trick! 做到了! thanks @jirungaray 谢谢@jirungaray

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 验证在Java App for Google App Engine中输入的电子邮件地址 - Verifying entered email address in Java Application for Google App Engine 如何从JUnit启动Google App Engine Java开发服务器? - How can I start the Google App Engine Java development server from JUnit? 如何在Eclipse中重新启动Google App Engine Java Server? - How do I restart the Google App Engine Java Server in Eclipse? 如何在Quercus上使用Google App Engine的memcache? - How can I use Google App Engine's memcache with Quercus? 我应该如何解决由Java在Heroku上运行引起的Java错误? - How shoud I fix this Java error, caused by it`s working on Heroku? 在Google App Engine Java应用程序中加载自定义密钥库 - Loading a custom key store in Google App Engine Java application Google App Engine上的Java应用程序? - Java application on Google App Engine? 如何将序列化的Java对象从Swing应用程序发送到Google App Engine应用程序,反之亦然? - How do I send serialized java objects from a swing application to a google app engine application and vice versa? Google App Engine Java无法运行应用程序HTTP 500 - Google App Engine Java Can't Run Application HTTP 500 如何使用Google App Engine服务器本地设置运行GWT Web应用程序 - how to run GWT web application with google app engine server localy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM