Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Stuck on Built With Nerves splash screen for example project #45

Open
cburman01 opened this issue May 6, 2019 · 14 comments
Open

Stuck on Built With Nerves splash screen for example project #45

cburman01 opened this issue May 6, 2019 · 14 comments

Comments

@cburman01
Copy link

Followed the instructions from the Example folder and am getting the Build With Nerves splash screen on an RPI3.

Tried:
I have re-burned the SD card numerous times.
verified network connection and the KIOSK_URL.

Any ideas?

@cburman01
Copy link
Author

Also wanted to add:

I've tried manually specifying the Display child in the app supervisor to rule out any config issues:

[
{WebengineKiosk, {[homepage: "http://192.168.1.2:4200", background: "black"], name: Display}}
]

@mobileoverlord
Copy link
Contributor

This is usually due to another issue in your project. Unfortunately the easiest way to debug this is using a console cable. Would you be able to connect one?

@cburman01
Copy link
Author

Thanks, I just ordered one and will report back once I get the output.

@mobileoverlord
Copy link
Contributor

I've gone through and applied some upstream updates to the project, and also updated the example project to work with Elixir 1.8. I've tested booting it and it seems to be working. Once the 1.5.0 release is out, you should be able to test this again.

Here is the progress of the build:
https://circleci.com/workflow-run/0a68470d-983e-4039-b59f-b9a5e628fd22

@cburman01
Copy link
Author

@mobileoverlord Thanks Ill test it out and report back. I appreciate you getting to this.

Collin

@cburman01
Copy link
Author

So i am getting this when I do a deps.get from the Example folder:

Resolving kiosk_system_rpi3
  => Trying https://github.com/letoteteam/kiosk_system_rpi3/releases/download/v1.5.0/kiosk_system_rpi3-portable-1.5.0-5A3D027.tar.gz
     Status 404 Not Found
  => Trying https://github.com/letoteteam/kiosk_system_rpi3/releases/download/v1.5.0/kiosk_system_rpi3-portable-1.5.0-5A3D0275E5BEA4D23DD3F8BF3EF5A131F4CA5F9AB1DD61259B04757F158F71DA.tar.gz
     Status 404 Not Found
  => no_result

I also tried swapping out the kiosk_system_rpi3 dep to this: {:kiosk_system_rpi3, "~> 1.5", runtime: false, targets: :rpi3} but that release hasn't been published to hex yet.

Any idea why {:kiosk_system_rpi3, path: "../", runtime: false, targets: :rpi3} this would be looking for a release that doesn't exist? It's odd because I would assume the dependency would get compiled from that path instead of reaching out to git.

I checked the build progress and it appears to be finished.

@mobileoverlord
Copy link
Contributor

Sorry bout that, I didn't notice it was done and just published the release.

@cburman01
Copy link
Author

I was over zealous haha.

Ok I am still seeing the same issue. It appears mix is trying to locate the release with the wrong hash:

This is the correct url: https://github.com/LeToteTeam/kiosk_system_rpi3/releases/download/v1.5.0/kiosk_system_rpi3-portable-1.5.0-20F4A7D.tar.gz

This is the url hex is trying to pull: https://github.com/letoteteam/kiosk_system_rpi3/releases/download/v1.5.0/kiosk_system_rpi3-portable-1.5.0-5A3D0275E5BEA4D23DD3F8BF3EF5A131F4CA5F9AB1DD61259B04757F158F71DA.tar.gz

@mobileoverlord
Copy link
Contributor

Do you have any local file modifications in your git repo? The hash is computed off the contents of the files listed in https://github.com/LeToteTeam/kiosk_system_rpi3/blob/master/mix.exs#L85-L106

I tested locally and it seems to have pulled the right file.

@cburman01
Copy link
Author

Not that I see. Here is the output of my git status

example git:(master) git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
➜  example git:(master) 

@mobileoverlord
Copy link
Contributor

Can you try running mix deps.get from the top level, then cd into the example folder ad run again? Curious why its computing a different hash.

@cburman01
Copy link
Author

cburman01 commented May 14, 2019

Interesting, I still get the same error when I deps.get in the root dir:

Compiling 35 files (.ex)

Generated nerves app
==> kiosk_system_rpi3
Resolving Nerves artifacts...
  Resolving kiosk_system_rpi3
  => Trying https://github.com/letoteteam/kiosk_system_rpi3/releases/download/v1.5.0/kiosk_system_rpi3-portable-1.5.0-5A3D027.tar.gz
     Status 404 Not Found
  => Trying https://github.com/letoteteam/kiosk_system_rpi3/releases/download/v1.5.0/kiosk_system_rpi3-portable-1.5.0-5A3D0275E5BEA4D23DD3F8BF3EF5A131F4CA5F9AB1DD61259B04757F158F71DA.tar.gz
     Status 404 Not Found
  => no_result
  Cached nerves_toolchain_arm_unknown_linux_gnueabihf

➜  kiosk_system_rpi3 git:(master) ✗ pwd
/Users/cnburma1/_git/kiosk_system_rpi3

Here is the last commit hash that git sees:
lready up to date.

➜  kiosk_system_rpi3 git:(master) ✗ git rev-parse HEAD
40b164c8f6658cc57022d27fc98524b32f48ce58

Edit: Added pwd

@cburman01
Copy link
Author

What OS are you running on @mobileoverlord? I am wondering if different line endings are causing the hash to be calculated differently.. This is only a theory.

I'm on macOS Mojave 10.14.4

@hez
Copy link

hez commented Jun 9, 2020

Do you have any local file modifications in your git repo? The hash is computed off the contents of the files listed in https://github.com/LeToteTeam/kiosk_system_rpi3/blob/master/mix.exs#L85-L106

I tested locally and it seems to have pulled the right file.

How do you customize one of those files? I was trying to go down the customization road and ran in to this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants