I have a simple hugo site, deployed in google cloud storage as static web site and its working fine with one issue, Whenever the subfolder is requested in browser with / , the browser trying to download and failing. without / its working fine.
ie, http://mysite/ is working fine, but http://mysite/subfolder/ is not working but trying to download it and fails. whenever http://mysite or http://mysite/subfolder is called the browser working fine.
Please see supporting images and help to solve the issue.. Thanks.
What Google document says..
While testing its ok,
But after deployed to Google Cloud storage, its behaving like this..
Please check the faulty url
Here
Please check the working url
Here
Finally resolved...
x-goog-metageneration:1 works, x-goog-metageneration:2 fails.
So as per https://cloud.google.com/storage/docs/xml-api/reference-headers
I deleted and recreated the surya folder, now its working.
But why x-goog-metageneration:2 fails, x-goog-metageneration:1 working...
Google only knows.
Related
the Google Cloud Functions dashboard has stopped working for me.. trying to navigate through tabs, but nothing happens.
It seems it happens only using chrome, works ok in safari...
Any of you experiencing a similar issue?
I have just started looking at Google Cloud. I have been following this tutorial to try to setup the system.
I can successfully download the tar file, I can successfully run install.sh, however when I run the following command I get some unusual behaviour:
./google-cloud-sdk/bin/gcloud init
1) I agree to login - fine.
2) It brings up a page where I need to choose one of my accounts, which I do.
3) It brings up a website saying:
Google Cloud SDK wants to access your Google Account
I then hit Allow.
4) This is where it all goes wrong. It then tries to go to a website such as the following:
http://localhost:8085/?code=4/tQD6sXNDlkpcdFUctB7ZgKKuj7T1Aiqev4o7zGaDVpctit6zrqFfWbnAXSo_zFTVjo4_VyxrUlUtq8IgsRAS7M0&scope=openid%20email%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/cloud-platform%20https://www.googleapis.com/auth/appengine.admin%20https://www.googleapis.com/auth/compute%20https://www.googleapis.com/auth/accounts.reauth%20https://www.googleapis.com/auth/plus.me
The website displays something saying 'This site can't be reached'.
This seems strange to me. Why is Google attempting to access http://localhost:8085 ? Surely it should be going to some kind of Google site.
If you could offer any help or advice, I would very much appreciate it. Please bear in mind that I am new to Google Cloud and I would need some very basic help. I am trying to setup a simple website with something like "hello world" with html/css and python.
If you know of any alternative tutorials that work, I would really appreciate it.
I had the same problem as you. I solved it by using gcloud auth login --no-launch-browser
I am trying to follow the instructions on this page, and they are working great, until the part where I deploy from my Google App Engine Launcher. When I click deploy I should see something like this:
But instead, I see something like this:
and the end result is that my app doesn't get deployed to xxxxxxx.appspot.com, it redirects me to http://localhost:8080/?code=4/EfmizPdAPVDgoSInA8mS1KVOvQTkWX4ziFnEpG3XKxA#
I'm a begginer with this kind of tech, please, any suggestions on how to troubleshoot?
Found the answer here. In my case, what worked was to first disable the app in the App Engine Launcher, and only then hit deploy. First time I tried, it authenticated, then second time I deployed, it deployed successfully. Thanks Arnie.
In case, I post his other suggestions:
1) remember to give your google id access to less secure apps.
2) remember to go to appspot.com or https://appengine.google.com/ and accept terms and conditions. Your project should also be active on https://console.developers.google.com/project
3) use correct versions of python and google app engine SDK
4) Before hitting deploy button on google app engine stop the app from running on your local host. It will NOT deploy while it is running locally on local host.
I am currently trying to set up a Virtual Machine and a Database Server for my website to launch off of. I decided to go with Amazon's AWS.
I have beeing working through This Tutorial and am at Part 3 now.
I got to the point where I started the Apache Web Server and went to my local DNS name in my browser, and successfully saw the Test Page.
I proceeded forward with Downloading "Drupal" and got to the section where it says "Configure Drupal". I am now trying to load my local DNS name in my browser again, only to get a 500 Server Error.
I'm not sure what could've went wrong, I only entered the commands in the tutorial for the whole section on "Install Drupal".
Thank you
EDIT: Also, what exactly does Drupal do? And do I need to use it?
Drupal is a CMS system, and you don't have to use it. It is only being used to provide an example for a website. Instead of installing Drupal, you can install your own site on the server if you prefer or even something like Wordpress if you're more familiar with that.
However, if you do want to follow the example your best bet for discovering the problem is to look into what the exact error is. You should be able to find more information about that in the log files located in /var/log/httpd. The error log in there should show you more details about what failed.
I've tried to add google login to my web application using django-allauth.
I added to my google application the following callback_uri:
"http://localhost:8000/accounts/google/login/callback"
since i'm running tests on my development server (localhost) and i don't wanna use https.
Even though, i get a 'redirect_uri_mismatch' saying that my redirect URI doesn't match any registred redirect URI.
Does anyone have any ideea about what causes this?
Thanks for your time.
Later Edit:
Using 127.0.0.1 instead of localhost solved this problem.
Recently I ran into problems trying to get Google+ to work as well. I finally got it working. I made some updates to the documentation so it's a bit easier to use. See if using the updated allauth google docs you can get it to work.
Have you try doing the following:
1. Go to the Google Developers console -> Api $ auth -> credentials
2. You should see "Client ID for web application" click "Edit Settings"
3. Change your "Redirect URI" to "http://localhost:8000/accounts/google/login/callback"
Should work after that let me know if it doesn't.
Cheers,
Dan