# \[FIXED\] Drone 2.0 - UI shows white page and "TypeError: i is undefined"

**URL:** <https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940>\
**Category:** Drone Bugs\
**Created:** [March 19, 2021, 7:27am UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940 "2021-03-19T07:27:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![morph027](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/morph027/32/4948_2.png) [@morph027](https://drone.discourse.group/u/morph027)\
**Post date:** [March 19, 2021, 7:27am UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/1 "2021-03-19T07:27:38Z")

</div>

Just saw the aweseome Drone 2.0 announcement and did a test build (`go build -ldflags "-extldflags \"-static\"" -o drone-server`)

Login works, but afterwards JS console throws an error and there’s only a white page.

 ![Screenshot from 2021-03-19 08-24-50](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/6/6339b85c84023c5d7ea7a592913b56bb957723b8.png)

---

<div class="post-metadata">

**Author:** ![morph027](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/morph027/32/4948_2.png) [@morph027](https://drone.discourse.group/u/morph027)\
**Post date:** [March 19, 2021, 7:45am UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/2 "2021-03-19T07:45:38Z")

</div>

Tried some different working urls:

- project settings
- project deployments
- project branches
- single build (selected from branches tab)

The build overview of a project throws the same error

---

<div class="post-metadata">

**Author:** ![morph027](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/morph027/32/4948_2.png) [@morph027](https://drone.discourse.group/u/morph027)\
**Post date:** [March 19, 2021, 7:53am UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/3 "2021-03-19T07:53:04Z")

</div>

Aha…another test using my admin user works for almost all routes. Project overview still is a white page.

So it looks like the error occurs for unprivileged users only.

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 19, 2021, 12:17pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/4 "2021-03-19T12:17:14Z")

</div>

Unfortunately I cannot reproduce and the JS output is not super helpful since it is minified. We will post a thread over the weekend that describes how to build the UI from source and run it locally in debug mode, which will help with reporting issues.

---

<div class="post-metadata">

**Author:** ![morph027](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/morph027/32/4948_2.png) [@morph027](https://drone.discourse.group/u/morph027)\
**Post date:** [March 19, 2021, 12:34pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/5 "2021-03-19T12:34:19Z")

</div>

Thank you. I’ve already tried with the instructions from the drone2 branch here: [GitHub - drone/drone-ui at drone2](https://github.com/drone/drone-ui/tree/drone2) which still gave me the “old” ui 😉

---

<div class="post-metadata">

**Author:** ![morph027](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/morph027/32/4948_2.png) [@morph027](https://drone.discourse.group/u/morph027)\
**Post date:** [March 19, 2021, 12:36pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/6 "2021-03-19T12:36:42Z")

</div>

Ah, funny, just tried another user (which has never been logged on to drone) just works without any errors…probably something with my account?

---

<div class="post-metadata">

**Author:** ![morph027](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/morph027/32/4948_2.png) [@morph027](https://drone.discourse.group/u/morph027)\
**Post date:** [March 19, 2021, 12:40pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/7 "2021-03-19T12:40:04Z")

</div>

Current errors for admin user on project view

`TypeError: Cannot read property 'charCodeAt' of undefined`

 ![Screenshot from 2021-03-19 13-39-26](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/d/d1867cfc232ae9b5d2f9e7c25dc6d8fb8c627869.png)

---

<div class="post-metadata">

**Author:** ![morph027](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/morph027/32/4948_2.png) [@morph027](https://drone.discourse.group/u/morph027)\
**Post date:** [March 19, 2021, 12:49pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/8 "2021-03-19T12:49:00Z")

</div>

Dropped my entire database and started from scratch without an admin user, the dashboard works.

Project build overview throws another one `TypeError: Cannot read property 'duration' of undefined`

 ![Screenshot from 2021-03-19 13-48-37](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/0/061e057dd5b1aeb78f8075d2b3882c1553d62aa7.png)

---

<div class="post-metadata">

**Author:** ![kjcodeacct](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/kjcodeacct/32/3088_2.png) [@kjcodeacct](https://drone.discourse.group/u/kjcodeacct)\
**Post date:** [March 19, 2021, 1:47pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/9 "2021-03-19T13:47:02Z")

</div>

I came here to report the same issue. It is reproducible on firefox v85 and chrome v89 for linux.

I am using the free [cloud.drone.io](http://cloud.drone.io) hosting for an open source github project. Projects I have CI/CD setup for from before the 2.0 rrelease load successfully.

Since the JS code is minified there isn’t much I can’t provide much besides the current project I have seen this issue on.

[https://cloud.drone.io/kjcodeacct/pwsync](https://cloud.drone.io/kjcodeacct/pwsync)

If there is any additional information needed, please let me know.

---

<div class="post-metadata">

**Author:** ![urbanswelt](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/urbanswelt/32/3045_2.png) [@urbanswelt](https://drone.discourse.group/u/urbanswelt)\
**Post date:** [March 19, 2021, 3:53pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/10 "2021-03-19T15:53:17Z")

</div>

Good to Know i`m not alone =)  
let us know how we can help !

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 19, 2021, 5:38pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/11 "2021-03-19T17:38:18Z")

</div>

thanks for the report. this has been patched and redeployed to drone cloud, and there is a new docker image available.

---

<div class="post-metadata">

**Author:** ![urbanswelt](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/urbanswelt/32/3045_2.png) [@urbanswelt](https://drone.discourse.group/u/urbanswelt)\
**Post date:** [March 19, 2021, 7:10pm UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/12 "2021-03-19T19:10:47Z")

</div>

This Type of Error is solved =)  
Maybe next Topic for this ?

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/b/b91c75ee40fb7a1a5a70e1b1d96766301e063f95.png)

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 20, 2021, 12:04am UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/13 "2021-03-20T00:04:27Z")

</div>

this was fixed patched earlier today [1], however, the latest version of drone has not been deployed to drone cloud yet. I am going to close this thread since the primary issue was resolved. Feel free to create new / separate threads for new issue reports.

[1] [ensure correct last started date when build count is 1 · drone/drone-ui@ed66040 · GitHub](https://github.com/drone/drone-ui/commit/ed66040afa32efcd63d50e2ee7eac1463e13c91d)

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 20, 2021, 12:04am UTC](https://drone.discourse.group/t/fixed-drone-2-0-ui-shows-white-page-and-typeerror-i-is-undefined/9940/14 "2021-03-20T00:04:30Z")

</div>


