Google App Engine Wont work its stuck in cmD - php

i just started using Google app engine.I followed the install instruction and am trying to run the simple hello word demo shown on Google's the app engines web-page and for some reason my web server wont start its stuck at
C:\Users\princewill\Desktop\google_appengine>dev_appserver.py --php_executable_p
ath=C:\Users\princewill\Desktop\php\php-cgi.exe C:\Users\princewill\Desktop\test
\helloworld
INFO 2013-08-21 06:57:35,788 sdk_update_checker.py:245] Checking for updates
to the SDK.
INFO 2013-08-21 06:57:35,789 __init__.py:94] Connecting through tunnel to: a
ppengine.google.com:443
INFO 2013-08-21 06:57:36,773 sdk_update_checker.py:261] Update check failed:
HTTP Error 404: Not Found
WARNING 2013-08-21 06:57:36,782 api_server.py:317] Could not initialize images
API; you are likely missing the Python "PIL" module.
INFO 2013-08-21 06:57:36,786 api_server.py:138] Starting API server at: http
://localhost:50032
INFO 2013-08-21 06:57:36,789 dispatcher.py:164] Starting module "default" ru
nning at: http://localhost:8080
INFO 2013-08-21 06:57:36,792 admin_server.py:117] Starting admin server at:
http://localhost:8000
can anyone help me out please.. this is driving me nuts

This doesn't look like it is stuck. You should load localhost:8080 and once that is loaded go back to your command line prompt to see if there are any errors. The description of "its not working says the webpage is not working" is not very helpful, exact error messages and log output would be more helpful.

Related

Error "Couldn't reach API" when I try to log in

I install Directus CMS via git clone successful. In the database 15 tables were created. In /config folder my projectkey.php file were created too.
After installation I want to login with my credentials and get the error "Couldn't reach API".
In PHP Error log -> no entry
In Directus log -> no entry
REST calls:
authenticate/ -> Code 200; Response: data/user
projectkey/ -> Code 200; Response: data/api
ping/ -> Code 200; Response: Pong
In a working instance I have seen that in API Call projectkey/ are more properties. For example data/server is missing in my instance.
Does anyone have any idea what this could be?
Version 8.5.X solved my problem
I had the same error and found the solution in the project's corresponding issue:
Check that you're using HTTPS on webservers and local... that is a new requirement added in 8.7.2 due to a cookie policy change by Chrome et al. If it STILL is an issue, please open a new ticket with exact/specific information. Thanks! đź‘Ť
Also, just as a reminder, this is a VERY generic error and could shown for several different root causes. More specific error handling/codes is something we're adding in v9.
Enabling SSL fixed it for me.

Laravel BotManStudio with Telegram doesn't work

Help me please. Now i'm playing around Botman Studio in Larvel. I'm using cod from example. It works great with web interface. I want use it with Telegram. I install drivers, get token. When i try to get registration this way:
"php artisan botman:telegram:register"
It gets error:
ErrorException : file_get_contents(https://api.telegram.org/bot/setWebhook?url=https://83255e3c.ngrok.io/botman): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Web interface work well with https://83255e3c.ngrok.io/botman/tinker (it use same webhook).
I register webhook on telegram this way:
curl -d "url=https://83255e3c.ngrok.io/botman" "https://api.telegram.org/bot524662111:AAF3syuVVVVVVVVV35Goh4lR6pxx1yLY/setWebhook"
Telegram told me Ok.
Now i send message to bot using telegram.
I see in ngrok's logo it comes as well as from webinteface, but bot doesn't reply. And he does work well wen i send message through web.
Help me please and sorry for my english. I will study hard. I promise.
In the error message you can see, that the YOUR-TELEGRAM-TOKEN didn't set.
The link should be like:
https://api.telegram.org/bot<YOUR-TELEGRAM-TOKEN>/setWebhook?url=https://83255e3c.ngrok.io/botman
Try set token on configuration:
you can find the configuration file located under config/botman/telegram.php
You can find it in the official documentation https://botman.io/2.0/driver-telegram
write below code in .env file:
TELEGRAM_TOKEN=telegram bot token here

PHP Desktop Chrome has stopped working

i have used php desktop application for codeigniter project its work properly
now i used inno setup to create setup for php desktop application
inno setup : step for inno setup
i have follow all the step and setup was create but after execute application not run and below error generate
Problem signature:
Problem Event Name: APPCRASH
Application Name: phpdesktop-chrome.exe
Application Version: 31.8.0.0
Application Timestamp: 546f0770
Fault Module Name: libcef.dll
Fault Module Version: 3.1650.1562.0
Fault Module Timestamp: 52d3dd6e
Exception Code: 80000003
Exception Offset: 001179c0
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
here is screenshot :
Method 1 – Reinstall google chrome or upgrade google chrome
(1) Go to “control panel –> Programs and features –> Select google chrome” to uninstall it.
(2) Now go to this path in your local computer “C:Program FilesGoogle” and delete “Chrome” folder. If you are using 64 bit computer then path of the folder will be ” C:Program Files (x86)Google”.
(3) Now, Go here and download latest version of google chrome and install it.
(4) Restart your computer after reinstalling google chrome and check whether problem is resolved or not.
Method 2 – Clear cookies and disable unwanted extensions and apps
(1) Click on this icon (Top right side of gogole chrome) –> go to settings –> Show advanced settings

Kubernetes guestbook-controller failing with permission denied error

I am following the guestbook example for kubernetes on gce:
https://cloud.google.com/container-engine/docs/tutorials/guestbook
I am able to complete up to step 4, exactly as it is described in the tutorial (all outputs match), however when I try to initialize the guestbook web server pods with
create -f $CONFIG_DIR/guestbook-controller.json
I get the following output with when using kubectl get pods
guestbook-controller-2mjqj Pending About a minute php-redis
API error (500): Cannot start container containerID: [8] System error: open /sys/fs/cgroup/memory/containerID/memory.memsw.limit_in_bytes: permission denied
I haven't been able to find anything related to this, any help would be greatly appreciated. Thanks in advance.
This was fixed last week in Kube:
https://github.com/GoogleCloudPlatform/kubernetes/issues/8814

Google App Engine - Deploy failing with Error 1: Unauthorised

I'm trying to get my first (PHP) application working. It works OK in Google App Engine Launcher, but when I try to deploy it I get the following message:
2014-08-19 15:37:58 Running command: "['C:\\Program Files\\Python\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=by#onetel.com', '--passin', 'update', 'C:\\Documents and Settings\\Barry\\My Documents\\test\\high-winter-668']"
03:38 PM Application: high-winter-668; version: 1
03:38 PM Host: appengine.google.com
03:38 PM
Starting update of app: high-winter-668, version: 1
03:38 PM Getting current resource limits.
Password for b...#...com: Invalid username or password.
2014-08-19 15:38:08,967 ERROR appcfg.py:2411 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
I can login OK to the application I created at appengine.google.com
and I am using the right/same email address and password.
I can see other topics where server/local time difference is the issue. My local PC time is the same as the time in the above error msg.
What have I got wrong?
Also:
I tried using appcfg.py on the command line and ran into another issue:
It errored saying I didnt have a "high-winter-668.yaml" file. So I changed the name of my "app.yaml" to "high-winter-668.yaml" - it then complained that I didnt specify a 'module" in the yaml file.
Meantime Google App Engine Launcher errored say I didnt have an "app.yaml" file.
Are they written by different companies!!??
Well, in floundering around I've found an answer.
I went here:
https://www.google.com/settings/security/lesssecureapps
and selected "Enable" less secure devices and apps to access your data.
When I tried to Deploy - it worked.
THIS WILL HAPPEN IF YOU HAVE 2-FACTOR authentication activated. The solution in that case is to go to the application-specific passwords page and generate a new password. You can name it "Google app engine" or the like and you'll get a long alpha string to use as the password when deploying.
If you use Google App Engine Launcher and have 2-factor in use you are guaranteed to run into this error on deploy (current version 1.9.17), and it has been that way for at least 1.5 years. It seems like the app engine launcher folks could trap that error and generate a helpful message but instead maybe you'll find it on stackoverflow :)
This happenned to me because I forgot the version line in app.yaml:
version: 1

Categories