Google App Engine SOAP Not Appearing in phpinfo() - google-app-engine

Fatal error: Class 'SoapClient' not found in ../libraries/Shipping/drivers/Shipping_usps.php on line 12
Using Google App Engine for PHP, I receive the error above when try to instantiate a SoapClient object. I've checked phpinfo() and the SOAP extension isn't showing up. When I deploy to production, it does show up, so I figure there's something that's causing the extension not to load locally. I run the dev server from the command line as opposed to the application on Mac OS.
GAE is up to date. Any advice is appreciated.

Related

One or more modules in this project use a version of App Engine that does not support Java 8

I have a Google App Engine project in IntelliJ. I have been working on it for a while but suddenly I can't launch the local development server from IntelliJ anymore.
When I launch Intellij I get this message in Event log:
Java language level not supported: One or more modules in this project use a version of App Engine that does not support Java 8. Please click here to automatically change them to use the Java 7 language level.
If I try to launch the local server I get this error:
Error running 'Google App Engine Standard Local Server'
Error running Google App Engine Dev Server.
Exception occurred : com.google.cloud.tools.appengine.api.AppEngineException
Exception message : java.nio.file.NoSuchFileException: WEB-INF\appengine-web.xml
I can see from my version control system that appengine-web.xml or build.gradle have not changed.
If I run 'gradlew appenginerun' it works ok.
How can I see what modules are not supported on Java 8?
I imported the project again from gradle.
Seems to work now.

No instances in app engine admin console

I just deployed an app on Google App Engine and everything went fine. The app runs smoothly at < project-id >.appspot.com. I deployed it a few more times and one time there was an error:
05:56 PM Unknown error TEMPORARY_ERROR: . Deployed Version: 5.379937995233868117
ERROR: Unknown error TEMPORARY_ERROR: . Deployed Version: 5.379937995233868117
05:56 PM Rolling back the update. This can sometimes take a while since a VM version is being rolled back.
Could not start serving the given version.
ERROR: (gcloud.preview.app.deploy) Command failed with error code [1]
The app was still running and I could manage it to successfully deploy it again. But since then when I go to the admin console there is not a single instance listed. Only a small grey icon is shown with a flash. The path to the icon is '//ssl.gstatic.com/ui/v1/activityindicator/offline.png' (I looked it up in the CSS).
The app runs on a managed VM with a custom runtime.
Can anybody help me?
I was planning to deploy a managed VM with custom runtime and was watching this Google I/O bytes video and it seems it's expected. The manged vms with custom runtimes will show under Compute Engine on your developer console (4:35 in this video). You will be able to manage your App through App Engine on developer console.

Laravel FatalErrorException on Google App Engine

I am deploying an laravel application in Google app engine. I have installed SDK and python. I can deploy it online, but when run application localy by using this command from cmd:
python dev_appserver.py --skip_sdk_update_check=yes --port=8080
--admin_port=8000 --php_executable_path=C:\wamp\bin\php\php5.4.12\php-cgi.exe C:\laravel-master
It shows the following error:
PHP Startup: apc_fcntl_create: could not open C:\Windows\.apc.a02796
I really need to run it locally because I can't test it online. Pls I need some help
This is the cache having problems to send write file commands to your Windows SO. A workaround to this is to locally disable APC by adding:
apc.enabled = "0"
Do your SDK php.ini file.
But it's better to keep it enabled in your GAE application.

Internal error on deployment to google appengine

I'm trying to get Vaadin7 app working on Google app-engine. I use app-engine sdk 1.8.5 with eclipse juno.
Deployment seems to work since I get:
------------ Deploying frontend ------------
Preparing to deploy:
Created staging directory at: '/tmp/appcfg4530509922106401908.tmp'
Scanning for jsp files.
Scanning files on local disk.
Initiating update.
Cloning 4 static files.
Cloning 8 application files.
Deploying:
Uploading 0 files.
Initializing precompilation...
Deploying new version.
Verifying availability:
Will check again in 1 seconds.
Will check again in 2 seconds.
Will check again in 4 seconds.
Will check again in 8 seconds.
Closing update: new version is ready to start serving.
Updating datastore:
Uploading index definitions.
Deployment completed successfully
However at the end of operation there is a pop-up saying:
An internal error occurred during: "Deploying <app-name> to Google".
java.lang.NullPointerException
Nothing is written to log file and I have no clue what kind of nullpointer is that. Accessing the application from web-browser gives HTTP 500.
Any tips on what can be the reason/possible solution?
Normally, after a successful deployment, the Google App Engine Eclipse plugin launches a browser tab pointing to your-app-id.appspot.com. If this fails, you can get a NullPointerException as you have described.
This is what happens to me, at least, with Eclipse 4.3 (Kepler) and app-engine sdk 1.8.6.
In this situation, your backend has indeed been deployed and it is safe to ignore this error. You will have to, however, launch or refresh your browswer tab manually.

My Google App Engine appspot URL wont work

I recently created my Google App Engine account, and uploaded my application, and have an instance of said app running.
I can access my app via localhost:8080 but when I try to use myappid.appspot.com I get a 500 Server Error (Of course I replace "myappid" with my apps name). This is what it says:
"Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it."
Can anyone help me get the URL working? I need my team to be able to access this app from anywhere. I have no idea what could be wrong with it, I am very new to GAE. After a lot of searching all I find is people saying their appspot URL works, and want other options. But I just want my appspot URL to work first!
Some more info:
This is a Python app, using the GAE Python SDK, I am running Windows 7, and using the GAE Launcher GUI to deploy and run the app.
Thanks in advance!
EDIT: Here is the error in my Log:
: No module named flask Traceback (most recent call last): File "/base/data/home/apps/s~luxtestapp/1.362824400913245138/bootstrap.py", line 19, in from app import create_app File "/base/data/home/apps/s~luxtestapp/1.362824400913245138/app/init.py", line 10, in from flask import Flask
Apparently the app uses Flask instead of Webbapp2. Honestly I'm not too sure about it all, because this is a pre-built app that I downloaded and deployed. I didn't write it.
In the control panel for your app on appspot go to the log section.
Appengine
The see what the latest entry says. Filter to "error".
Also when you create your app (python webapp2 example) turn debugging on:
app = webapp2.WSGIApplication([
('/', MainHandler)],
debug=True)
You'll get a much more informative error screen then instead of '500'.
You need to copy the flask folder to your project folder. In general every package not supported by GAE (see list of supported libraries), must be present in the project folder.
Try setting the environment variables before/after deploy. Go to the local project folder, open bash the paste this commands: ps: Ignore the $ sign
$ set HTTP_PROXY=http://cache.example.com:3128
$ set HTTPS_PROXY=http://cache.example.com:3128
check this link out for help: cloud.google.com/appengine/docs/python/tools/uploadinganapp

Resources