I'm trying to upload a simple "hello world" with google app engine (for python). Every time I do I get the following error
Error 404: --- begin server output ---
This application does not exist (app_id=u'sqeekytest').
--- end server output ---
I've checked and double checked that the app_id matches. I found a possible solution in the following thread however I am a complete noob at this and I'm not sure that I am doing this correctly.
This application does not exist (app_id=xxx)
It seems that the most common solution to this problem is to run appcfg.py update . --no_cookies. What I don't know is where I am running it. Is it in cmd, the python shell, the google cloud SDK shell that comes with the program? I've tried it a few different places and the only result I have gotten is the launching of pycharm. Either the solution is not working for me or I am doing something dumb (more likely). I cannot figure this out.
Thanks
Open a terminal or command prompt and cd to the directory of your project
$ cd path/to/project
Then from there do
$ appcfg.py update . --no_cookies
That assumes your app.yaml is in the root directory of your project. If it's in a different directory, specify it by
$ appcfg.py update /path/to/directory/where/app.yaml/is --no_cookies
It could be that appcfg.py is not in your PATH, in that case you could add it to the PATH or simply specify the location, also from within the root directory of your project.
$ path/to/google-cloud-sdk/bin/appcfg.py update . --no_cookies
This will open a webpage in a browser asking for permission and once you have given it it will automatically continue with the deploying process in the terminal/command prompt.
Related
I'm following this guide to set up and test Google Cloud SDK app engine: Installing App Engine with GCloud
I follow the guide until the "Your first App Engine webapp" section. At the end it says to run "dev_appserver.py ." I run this which prompts me to select a program to open the file. I pick python.exe in my python27 folder. a cmd prompt for python pops ups displays a ton of text then disappears unfortunately the box closes the instant the text appears so I cannot read it. If I go to the next step and open "http://localhost:8080/" it will not load. I assume because the python prompt is closing itself.
I am running python 2.7, I followed the instructions precisely, I tried reinstalling everything, shutting down computer, and going through it step by step again and I get the same problem.
What is causing this auto closing problem?
EDIT: It works if I run, in the GCloud SDK Shell: "python "C:\Users\ pathfile to dev_appserver.py..." instead of going directly to the directory running the .py file and choosing python. Its a way to do it, but not exactly user friendly to type out 8 folder directories.
I encountered the same problem. The solution below works for me. On windows command prompt write the following commands:
1 - cd C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin
2 - python dev_appserver.py "C:\path\of\your\project"
I'm completely new in malware research analysis field. I am trying to install cuckoo sandbox 2.0.3. It looks like it has been installed, because when I run the command $cuckoo it shows:
I have windows 7 as guest in the VirtualBox and I have copied the agent.py file in the guest. According to the Cuckoo documentation, the agent.py file should show this when double clicked:
Starting agent on 0.0.0.0:8000
But in my case, whenever I double click the agent.py file, it shows black screen like this:
So, I have completely stuck here and cannot proceed further. I checked the .conf files; everything looks fine, IP addresses are also given properly. So, I don't know what the actual reason for this situation is. As I have said I am completely new in this field, so any kind of help will be highly appreciated. Please let me know if you need any other information regarding my installation process.
Try to run CMD as administrator, and the goes to the path where agent.py is installed and then type
Python agent.py
Once the agent is run try to submit.
Just try to submit the url or file using below command on cuckoo server
Step 1: start cuckoo server
cuckoo -d
Step 2: submit url to analyzer.
cuckoo -d submit -u www.google.com
Past the logs from Cuckoo server.
The problem
my appication won't update on the dev server or the live server unless I do step 3 (below), every single time. Otherwise, I will get permission problems as shown below
e2016-01-08 12:47:58,781 ERROR appcfg.py:2438 An error occurred processing file '': HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting.
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u's~project-name').
--- end server output ---
I'd ideally like to test just using dev_appserver.py
Things I've already tried
appcfg.py update --no_cookies . after the webpage opened for me to sign in, I got
No data received
ERR_EMPTY_RESPONSE
and my terminal was stuck on " --noauth_local_webserver "
appcfg.py rollback . That leaves me with the same error:
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u's~').
--- end server output ---
appcfg.py -A <project name> update . This just returns error from step above
appcfg.py --no_cookies --oauth2 --email=myemail --noauth_local_webserver update . this uploads the project to my server, but, I'm tired of having to 'allow' then paste the code back into the terminal every single time
shutting down app engine launcher, removing project from launcher then adding back
restarting computer, turing off computer
launching from the terminal, launching from app engine launcher
Note: I'm already signed into google chrome
What should I try next?
Every time you use the '--no_cookies' option, you are telling appcfg to never save your credentials, so it's always going to prompt you every time you upload your app.
Running appcfg.py update app.yaml or appcfg.py update <dir_name> just once should be sufficient, since the '--oauth2' option is now the default and currently the only support authentication method.
On a side note, appcfg stores certain files under your user directory (C:\Users\<username> on Windows, or /home/<username> on Linux / Mac) named '.appcfg_*' for its cookies and saved auth tokens. You may need to show hidden files / extensions to see them. Sometimes deleting these files and re-running appcfg can help with auth not working.
I just started a django project with docker, I used the cookiecutter-django template that is discussed in the book Two scoops of django.
I am trying to set it all up in OSX, but I am having some trouble with the following part from the documentation:
Saving changes
If you are using OS X or Windows, you need to create a
/data partition inside the virtual machine that runs the docker deamon
in order make all changes persistent. If you don’t do that your /data
directory will get wiped out on every reboot. To create a persistent
folder, log into the virtual machine by running:
$ docker-machine ssh dev1
$ sudo su
$ echo 'ln -sfn /mnt/sda1/data /data' >>
/var/lib/boot2docker/bootlocal.sh
However, if I execute these commands, and try to start my docker project, I get the following error:
ERROR: Cannot start container 182a38022fbdf65f7a64f1ca5475a3414084d11c91f1cb48bffc6f76491baf4a: mkdir /data: file exists
I'm quite stuck at this point, do you guys have an idea what I could do to get this up and running?
So in the end this was fixed by making the directory in the local machine. I did that with the following code when adding the line to the bootlocal.sh file:
$ mkdir /mnt/sda1/data
Hi there I'm trying to deploy my python app using Travis CI but I'm running into problems when I run the "travis setup heroku" command in the cmd prompt.
I'm in my project's root directory, there is an existing ".travis.yml" file in that root directory.
I've also installed ruby correctly and travis correcty because when I run:
"ruby -v" I get "ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]"
"travis -v" I get "1.7.7"
When I run "travis setup heroku" I get this message "The system cannot find the path specified" then prompts me for a "Heroku API token:"
What's the issue?
If you hadn't had Heroku Toolbelt setup to the $PATH environment variable during installation, here are some steps to check:
Check if Heroku toolbelt is set in PATH variable. If not, cd to your Heroku toolbelt installation folder, then click on the address bar and copy it.
Go to the Control Panel, then click System and Advanced System Protection.
Go to Environment Variables, then look for $PATH in the System Variables
After the last program in the variable, put a ; then paste in your Heroku CLI folder and click OK. (This requires cmd to be restarted manually)
Login to Heroku CLI
grab the token key from heroku auth:token
run travis setup heroku if the setup goes smoothly, you shouldn't get the command not found and prompt you for heroku auth key. It will ask that you want to encrypt the auth key (highly recommend) and verify the information you provided with the toolbelt and Travis CLI.
commit changes
you should be able to get your app up and running within your tests.