[google-appengine] GAE standard project cannot upload files to GCS bucket

2020-07-20 Thread 전하정
Hi. I'm trying to make a website that allows users to upload files from 
their local file system to the website. I'm now implementing API for 
uploading files to the GCS bucket.

I used the code from Google docs 
,
 
which was very helpful. This code worked pretty well when I run my project 
on a local server(localhost:8080), however, when I deployed my project to 
GAE and run again({my-project-id}.appspot.com), it returns 
java.nio.file.NoSuchFileException.

I think the problem is that GAE server cannot read any file path from local 
computer, such as C:/users/desktop/test.txt, but I think I need path like 
this because I have to make users upload their files from their own 
computer.

Here is the code that I used:

Storage storage = 
StorageOptions.newBuilder().setProjectId(projectId).build().getService();
BlobId blobId = BlobId.of(uploadReqDto.getBucketName(), 
uploadReqDto.getUploadFileName());
BlobInfo blobInfo = BlobInfo.newBuilder(blobId).build();
storage.create(blobInfo, 
Files.readAllBytes(Paths.get(uploadReqDto.getLocalFileLocation(;

uploadReqDto.getBucketName(),  uploadReqDto.getUploadFileName() and 
uploadReqDto.getLocalFileLocation() are request parameters for the POST 
API, which looks like:


{
  "bucketName": "myBucketName",
  "uploadFileName": "Test1.txt",
  "localFileLocation": "C:/users/desktop/my/file/path"
}

Is there any special way to configure paths from local computer when the 
project is deployed and running on GAE?



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e11dab31-5fd7-467b-8043-07a28b999feeo%40googlegroups.com.


[google-appengine] Re: Repeated phising notification from GCP

2020-07-20 Thread Mailmeteor Team
We just did following your suggestion, thanks.
Any other action we could take to learn more? I've heard that GCP is 
offering paying support, do you think it would be useful for us to switch 
to paying support?

On Monday, July 20, 2020 at 4:48:35 PM UTC+2 Olu wrote:

> Hi, 
>
> Can you confirm if you reported this issue to the GCP Abuse team using 
> this contact form[1]? The GCP Abuse team will be more appropriate to advise 
> on this type of Abuse issue. 
>
> [1]https://support.google.com/code/contact/cloud_platform_report?hl=en
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6604f9b8-523d-4c25-a93f-98fd6f34771cn%40googlegroups.com.


Re: [google-appengine] Re: App Engine doesn't downscale when CPU utilisation is below target_utilization

2020-07-20 Thread wesley chun
This question only applies to Flex users
.
According to the documentation
,
health check HTTP requests are *not* sent to the container, meaning that it
doesn't affect the autoscaling (up or down) to your app like "real" traffic
to your app. The exception is if you "extended" your health checks to your
app by providing a path to the endpoint you wish to be hit when a health
check is performed. I'm sure you also know that Flex requires *at least* 1
instance being up, so it'll never downscale to zero (see this page

regarding scaling, health checks, and other differences b/w standard &
flexible environments.

Hope this helps!
--Wesley

On Sun, Jul 19, 2020 at 4:26 PM tz martin  wrote:

> Does anyone know if potential health check settings (liveness_check or
> readiness_check) are as requests that would prevent downscaling instances?
> Wondering if health check "bursts" would keep one or all instances alive.
>
> On Tuesday, September 3, 2019 at 2:52:21 PM UTC diogoa...@google.com
> wrote:
>
>> You can use the App Engine custom runtime
>>  to
>> deploy an application in any language.
>>
>> I did not find any documents about Angular 8, but as a starting point you
>> could take a look at this tutorial for deploying Angular 6
>> 
>> .
>>
>> As not all use cases can be covered in the App Engine documents I
>> recommend you take request development assistance on Stack Overflow
>> ,
>> where the community of developers will be able to help you with your
>> Angular coding.
>>
>> On Tuesday, September 3, 2019 at 8:54:41 AM UTC-4, chuda mani wrote:
>>>
>>> hi i need a suggestion , i have to deploy angular 8 application with
>>> apache server in gcp app engine..is it possible?..if so please  forward any
>>> reference documents..thank you
>>>
>>
-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
wesley chun :: @wescpy  :: Software
Architect & Engineer
Developer Advocate at Google Cloud by day; at night...
Python training & consulting : http://CyberwebConsulting.com
"Core Python" books : http://CorePython.com
Python blog: http://wescpy.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAB6eaA7%3Doqv4FY%2Bb4bvSuoKresHvX%2BJiVS_pnPnXDxUcKLoENw%40mail.gmail.com.


[google-appengine] GAE standard project returns java.nio.file.NoSuchFileException when uploading file to GCS

2020-07-20 Thread 전하정
Hi. I am trying to make a website that allows users to upload their own 
files, and I figured that it would be nice to store the files to the GCS.

Therefore, I am trying to make an API that can upload a file from a local 
computer(paths like C:/user/..) to my GCS bucket.

The problem is that when I run the project locally(at localhost:8080), the 
API works well and uploads the file to my bucket.

However, when I deploy the project to Google App Engine and run it(at 
{my-project-id}.appspot.com, it returns java.nio.file.NoSuchFileException 
and fails to upload the file.

I've been stuck with this problem for almost a week, and I am wondering if 
it is not allowed for GAE to get access to user's file system. 

Here is the code that I used to upload the project, which is the same as 
the code from google doc 

 about 
this topic.

Storage storage = 
StorageOptions.newBuilder().setProjectId(projectId).build().getService();
BlobId blobId = BlobId.of(uploadReqDto.getBucketName(), 
uploadReqDto.getUploadFileName());
BlobInfo blobInfo = BlobInfo.newBuilder(blobId).build();
storage.create(blobInfo, 
Files.readAllBytes(Paths.get(uploadReqDto.getLocalFileLocation(;

 uploadReqDto.getUploadFileName() and uploadReqDto.getLocalFileLocation() 
are the parameter of my POST API, which looks like

{
  "uploadFileName": "sooktubeTest1.txt",
  "localFileLocation": "C:/users/my/file/path"
}

I am almost sure that there is a problem with my localFileLocation 
variable, but I don't know how to fix it. It seems like GAE cannot get any 
file path. 
Is there any special way to upload user's local file to GCS when the 
project is deployed on GAE?

thanks. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c4f64a34-d4cb-44e1-9840-0ef5e6b44d14o%40googlegroups.com.


Re: [google-appengine] Re: I'm interested to know more about cloud storage free trail under$300

2020-07-20 Thread wesley chun
Hi Kumar, as a beginner to GCP, I generally recommend *against* using the
free trial when exploring the product group. (BTW, in English, there is a
difference between "trial" and "trail".) As Joseph mentioned, there is
an "Always
Free" tier 
(multiple
GCP products). This daily/monthly free quota for participating products (1
free VM, 5GB disk storage [US region], 2M Cloud Functions calls, etc.) is
always available to developers. As long as you stay under the quota, you
will never be charged for their use.

I recommend you do NOT use the $300USD Free Trial because of 2 main
reasons: 1) the trial lasts exactly 12 months from when you activate it
(the clock starts ticking immediately) and 2) it is a 1-time offer (can't
get it again). You only incur billing by exceeding the Always Free tier
quotas, meaning you don't "eat into" the $300 until that happens. Do your
due diligence, research which GCP tools to use, and *only activate the Free
Trial when your normal usage on GCP consistently exceeds the Always Free
tier*. Otherwise you're not taking full advantage of the offer.

Good luck!
--Wesley


On Mon, Jul 20, 2020 at 10:53 AM 'noverlyjoseph' via Google App Engine <
google-appengine@googlegroups.com> wrote:

> You will only be charged for what you go over the Free Tier depending on
> the services.
> For Cloud Storage for example, as long as you don't go over the Always
> Free limit in your usage, you will not be charged.
> Here's[1] the Always Free usage limits for Cloud Storage.
> For any other services you will find that information in the Pricing
> section of that Service.
>
>
> [1] https://cloud.google.com/storage/pricing#cloud-storage-always-free
>
>
> On Monday, July 20, 2020 at 8:15:10 AM UTC-4, kumar reddy wrote:
>>
>> I just want to know more about $300 free trail. I i get signed up for
>> $300 free trail, and add credit card details., will i be charged for any
>> charges after i consume the services under that package?. will i have a
>> stop point that allows me to stop using the paid services?
>>
>> My intention is to avoid any kind of charges, and continue with free
>> trail to experience the cloud storage.
>>
>> Thanks,
>> Kumar N.
>>
>
-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
wesley chun :: @wescpy  :: Software
Architect & Engineer
Developer Advocate at Google Cloud by day; at night...
Python training & consulting : http://CyberwebConsulting.com
"Core Python" books : http://CorePython.com
Python blog: http://wescpy.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAB6eaA4E6hKUyUqeOgtCBGqOb%3DEwP0k5FubUQ9uP%3Dt1Tmu6_9Q%40mail.gmail.com.


[google-appengine] Re: Not able to register for Google Cloud Platform Free Trial

2020-07-20 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
Hi Atanu,

You can reach out to the Cloud Billing team via following the "Contact 
Cloud Billing Support" link provided in this documentation 
. You can find 
multiple channels of free Cloud Billing support there such as phone, chat, 
community support and create a ticket with the billing team.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5f3ed5de-cc72-4b99-ba74-9813c3579c9fo%40googlegroups.com.


[google-appengine] Re: I'm interested to know more about cloud storage free trail under$300

2020-07-20 Thread 'noverlyjoseph' via Google App Engine
You will only be charged for what you go over the Free Tier depending on 
the services.
For Cloud Storage for example, as long as you don't go over the Always Free 
limit in your usage, you will not be charged.
Here's[1] the Always Free usage limits for Cloud Storage.
For any other services you will find that information in the Pricing 
section of that Service.


[1] https://cloud.google.com/storage/pricing#cloud-storage-always-free


On Monday, July 20, 2020 at 8:15:10 AM UTC-4, kumar reddy wrote:
>
> I just want to know more about $300 free trail. I i get signed up for $300 
> free trail, and add credit card details., will i be charged for any charges 
> after i consume the services under that package?. will i have a stop point 
> that allows me to stop using the paid services?
>
> My intention is to avoid any kind of charges, and continue with free trail 
> to experience the cloud storage.
>
> Thanks,
> Kumar N.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/41ea7cd9-6fc5-48cd-9f8f-38bb858d2732o%40googlegroups.com.


[google-appengine] Re: Repeated phising notification from GCP

2020-07-20 Thread 'Olu' via Google App Engine
Hi, 

Can you confirm if you reported this issue to the GCP Abuse team using this 
contact form[1]? The GCP Abuse team will be more appropriate to advise on 
this type of Abuse issue. 

[1]https://support.google.com/code/contact/cloud_platform_report?hl=en

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4438dcaf-5189-44a2-a8ab-eb2cbeb46670o%40googlegroups.com.


[google-appengine] Re: Chrome Safe Browsing Blocking Downloads from App Engine Blobstore

2020-07-20 Thread 'Olu' via Google App Engine
Thank you for the info. If the issue is indeed about the Google Chrome, you 
could reach out to the Chrome Community[1], perhaps there could be some 
help or workaround offered there.

[1]https://support.google.com/chrome/community?hl=en 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a4007abe-638b-4b6a-a49d-20199dcb2953o%40googlegroups.com.


[google-appengine] Re: GAE Python 3.7 cloud builder issues failing with pip

2020-07-20 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
Hi Allan,

If the issue still persists, I recommend to continiue with this Issue 
Tracker . I have forwarded this 
issue to the App Engine product team for further investigation. 

Note that Google groups are reserved for general questions on Google Cloud 
Platform-end products and for reporting an issue, we encourage you to 
report it to the Public Issue tracker 
 in the future.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/11b464dd-f438-49ba-92d8-e7c22d7d49dao%40googlegroups.com.


[google-appengine] I'm interested to know more about cloud storage free trail under$300

2020-07-20 Thread kumar reddy
I just want to know more about $300 free trail. I i get signed up for $300 
free trail, and add credit card details., will i be charged for any charges 
after i consume the services under that package?. will i have a stop point 
that allows me to stop using the paid services?

My intention is to avoid any kind of charges, and continue with free trail 
to experience the cloud storage.

Thanks,
Kumar N.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d4ee2c01-0624-4805-8878-bf7b89f2b9bfo%40googlegroups.com.