# Build Scan activation email not sent

**URL:** https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686
**Category:** scans.gradle.com
**Created:** [October 28, 2019, 7:45pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686 "2019-10-28T19:45:01Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![pcshin](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@pcshin](https://discuss.gradle.org/u/pcshin)
#### Post date: [October 28, 2019, 7:45pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/1 "2019-10-28T19:45:01Z")

</div>

Hi, after using the command line option --scan I’ll see a build scan activation url.

After entering my email address, I never receive an email. Has anyone else encountered this issue?

Here’s an example build scan activation url: [https://gradle.com/s/dlz7ur63xg7vo](https://gradle.com/s/dlz7ur63xg7vo)

---

<div class="post-metadata">

### Author: ![pcshin](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@pcshin](https://discuss.gradle.org/u/pcshin)
#### Post date: [October 29, 2019, 9:59pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/2 "2019-10-29T21:59:32Z")

</div>

In case this happens to anyone else, try activating the scan on a different browser. That worked for me.

---

<div class="post-metadata">

### Author: ![nir-logzio](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@nir-logzio](https://discuss.gradle.org/u/nir-logzio)
#### Post date: [June 1, 2020, 9:50am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/4 "2020-06-01T09:50:46Z")

</div>

Activating the scan on a different browser didn’t work for me.  
Adding the enterprise plugin to the build script did.  
Don’t really understand why  
[https://docs.gradle.com/enterprise/gradle-plugin/#connecting\_to\_scans\_gradle\_com](https://docs.gradle.com/enterprise/gradle-plugin/#connecting_to_scans_gradle_com)

---

<div class="post-metadata">

### Author: ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)
#### Post date: [June 3, 2020, 9:35am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/5 "2020-06-03T09:35:41Z")

</div>

Hi @nir-logzio  
I don’t fully understand what you experience.  
What did you try on the first run ? Which Gradle command  
Do you have the build scan URL that you tried to activate initially ?

---

<div class="post-metadata">

### Author: ![joy](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@joy](https://discuss.gradle.org/u/joy)
#### Post date: [June 3, 2020, 10:55am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/6 "2020-06-03T10:55:06Z")

</div>

Hi @Francois_Guillot,  
I’ve tried “gradlew build --scan”  
At the end of this process I got the scan URL in which I needed to enter my email address  
No email was received no matter which email address I used (I’ve used two)  
Only after I added the plugin to my build.gradle and run this command again entering any email address in the resulting link worked and I got the validation email  
I was using Gradle 5.6.1  
Sorry but I don’t have those links anymore.  
I can probably generate new ones but I’m not sure I want to publish them here

---

<div class="post-metadata">

### Author: ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)
#### Post date: [June 3, 2020, 11:47am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/7 "2020-06-03T11:47:57Z")

</div>

Ok, I understand the flow better.  
The fact that it worked when you added it in your build script is coincidental.  
Most most likely happened is that the first scan was rejected because too big (we have thresholds in place in [scans.gradle.com](http://scans.gradle.com) for that).  
Most likely because too many exception data, or too many configuration being resolved.  
It would have worked the second time even without putting it in the build script, because most of your tasks were up-to-date, hence it generated less data.

We have plans to improve the error when activating a scan that was not accepted by the server, but I can’t commit to any date yet.

---

<div class="post-metadata">

### Author: ![joy](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@joy](https://discuss.gradle.org/u/joy)
#### Post date: [June 3, 2020, 12:12pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/8 "2020-06-03T12:12:45Z")

</div>

@Francois_Guillot plans? 😄  
This sounds so simple to fix, either client or server side, and must be highly prioritized as the user experience is awful in such cases.

---

<div class="post-metadata">

### Author: ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)
#### Post date: [June 3, 2020, 12:30pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/9 "2020-06-03T12:30:19Z")

</div>

Yeah, by plans, I mean we know how to fix this.  
The error is surfaced in our logs, but only our logs 🙂

---

<div class="post-metadata">

### Author: ![joy](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@joy](https://discuss.gradle.org/u/joy)
#### Post date: [June 3, 2020, 2:32pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/10 "2020-06-03T14:32:13Z")

</div>

btw, @Francois_Guillot what’s the limit on a build scan?  
This can be quite problematic as the bigger the project is the bigger this tool is needed.  
I can see how with smaller project I don’t even need such a tool.

---

<div class="post-metadata">

### Author: ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)
#### Post date: [June 3, 2020, 3:15pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/11 "2020-06-03T15:15:49Z")

</div>

The limit is configurable when you have a Gradle Enterprise instance of your own.  
On [scans.gradle.com](http://scans.gradle.com), limits are

- the total build scan data (compressed) cannot exceed 50MB
- each event contained in the build scan data cannot exceed 7MB

We try to optimize those events as much as possible, but it is possible that some events go over the 7MB limit (lots of nested exceptions, lots of project configuration being resolved …)

---

<div class="post-metadata">

### Author: ![joy](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@joy](https://discuss.gradle.org/u/joy)
#### Post date: [June 4, 2020, 8:58am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/12 "2020-06-04T08:58:35Z")

</div>

@Francois_Guillot so I went to verify my suggestion for a fix and yours. I run a full build scan on a freshly cloned repo with the plugin section in build.gradle, then removed it and run a second build scan on the same already built repo. For the first build scan I got the verification email but for the second I didn’t. So I’m concluding my findings to be that indeed this section is currently required (at least in my version 5.6.1) and that it’s not related to the build scan size.

---

<div class="post-metadata">

### Author: ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)
#### Post date: [June 4, 2020, 9:18am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/13 "2020-06-04T09:18:20Z")

</div>

Can you DM me the link to the scans ?

---

<div class="post-metadata">

### Author: ![joy](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@joy](https://discuss.gradle.org/u/joy)
#### Post date: [June 4, 2020, 9:38am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/14 "2020-06-04T09:38:56Z")

</div>

@Francois_Guillot where to exactly?

---

<div class="post-metadata">

### Author: ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)
#### Post date: [June 4, 2020, 9:45am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/15 "2020-06-04T09:45:41Z")

</div>

private message here in this forum

---

<div class="post-metadata">

### Author: ![joy](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@joy](https://discuss.gradle.org/u/joy)
#### Post date: [June 4, 2020, 9:55am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/16 "2020-06-04T09:55:32Z")

</div>

@Francois_Guillot I’m not allowed to DM you here

---

<div class="post-metadata">

### Author: ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)
#### Post date: [June 4, 2020, 9:59am UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/17 "2020-06-04T09:59:41Z")

</div>

then send them to me at [francois at gradle dot com]

---

<div class="post-metadata">

### Author: ![joy](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@joy](https://discuss.gradle.org/u/joy)
#### Post date: [June 6, 2020, 6:53pm UTC](https://discuss.gradle.org/t/build-scan-activation-email-not-sent/33686/18 "2020-06-06T18:53:14Z")

</div>

For future readers of this issue I’ll just conclude that by adding the plugin snippet I have in a way upgraded the plugin version. This newer version has a better compression ratio and as a result my build scan was smaller and passed the checks on Gradle’s build scans servers as @Francois_Guillot described
