Hi all, absolutely new to this and hoping for some help
Overview of the Issue
I have loaded Balena cloud and created my device herein. I am struggling to push content from git/local to the device
A paragraph or two about the issue you’re experiencing.
I keep receiving the below error and have not being successful in moving any data across to th pi
fatal: unable to access ‘https://github.com/Screenly/screenly-ose.git/’: The requested URL returned error: 403
Reproduction Steps
Password for '[https://dereshpillay@icloud.com@github.com](https://dereshpillay%40icloud.com@github.com/)':
remote: Permission to Screenly/screenly-ose.git denied to Dereshp.
fatal: unable to access 'https://github.com/Screenly/screenly-ose.git/': The requested URL returned error: 403
Dereshs-MacBook-Pro:screenly-ose dereshpillay$ git push
Username for '[https://github.com](https://github.com/)': dereshp
Password for '[https://dereshp@github.com](https://dereshp@github.com/)':
remote: Permission to Screenly/screenly-ose.git denied to Dereshp.
fatal: unable to access 'https://github.com/Screenly/screenly-ose.git/': The requested URL returned error: 403
Dereshs-MacBook-Pro:screenly-ose dereshpillay$ git push
Username for '[https://github.com](https://github.com/)': Dereshp
Password for '[https://Dereshp@github.com](https://Dereshp@github.com/)':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/Screenly/screenly-ose.git/'
Dereshs-MacBook-Pro:screenly-ose dereshpillay$ git push
Username for '[https://github.com](https://github.com/)': Dereshp
Password for '[https://Dereshp@github.com](https://Dereshp@github.com/)':
remote: Permission to Screenly/screenly-ose.git denied to Dereshp.
fatal: unable to access 'https://github.com/Screenly/screenly-ose.git/': The requested URL returned error: 403
Dereshs-MacBook-Pro:screenly-ose dereshpillay$
Environment
MacOS
- Raspberry Pi Hardware Version:3
- Screenly OSE Version:
Hi @Dereshp and welcome to the forums!
I’m not sure if you were following a guide or anything like that but you have perhaps missed a step. Executing git push
without any other options will try to push back to the Screenly app where you downloaded it from. Of course, this will give permission denied errors as the application is not open for the public to push code.
I’d recommend firstly taking a look at our recently refreshed deployment documentation to understand how the process works. If you’re completely new and have not set up your SSH key yet, I’d recommend using the balena push
flow which requires installation of the balena CLI tools. If you’re happy using the git
workflow though by all means continue with that, you just need to take a look at the section on how to add the remote
which will allow you to git push
to your device rather than back to the Screenly project.
Secondly, I’m aware that the official Screenly repo as it stands is not currently working with balenaCloud. The developers are in the process of updating it but until then I have made an unofficial fork which, at the time of writing, does work: https://github.com/chrisys/screenly-ose
I hope this helps, and don’t hesitate to post more questions if you get stuck again!
Hi Chris (Support)
still having issues - refer
[main] Fetched 23.6 MB in 13s (1696 kB/s)
[main] W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease Unable to find expected entry ‘main/binary-armhf/Packages’ in Release file (Wrong sources.list entry or malformed file)
[main] E: Some index files failed to download. They have been ignored, or old ones used instead.
[main]
[main] Removing intermediate container 9944ef7c37f2
[Info] Uploading images
[main] The command ‘/bin/sh -c apt-get update && apt-get -y install build-essential curl git-core libffi-dev libssl-dev matchbox net-tools nginx-light omxplayer psmisc python-dev python-imaging python-netifaces python-simplejson libraspberrypi0 ifupdown sqlite3 uzbl x11-xserver-utils xserver-xorg && apt-get clean’ returned a non-zero code: 100
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: The command ‘/bin/sh -c apt-get update && apt-get -y install build-essential curl git-core libffi-dev libssl-dev matchbox net-tools nginx-light omxplayer psmisc python-dev python-imaging python-netifaces python-simplejson libraspberrypi0 ifupdown sqlite3 uzbl x11-xserver-utils xserver-xorg && apt-get clean’ returned a non-zero code: 100
[Error] Not deploying release.
remote: error: hook declined to update refs/heads/master
To git.balena-cloud.com:gh_dereshp/screenly.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to ‘gh_dereshp@git.balena-cloud.com:gh_dereshp/screenly.git’
Dereshs-MacBook-Pro:screenly-ose dereshpillay$
@Dereshp did you for sure manage to pull down the latest version of the repo that I linked in my thread above? The error you’re getting now would be what I would expect if you were still using the official one. Your Dockerfile.template should have the line RUN sed -i '/jessie-updates/{s/^/#/}' /etc/apt/sources.list
on line 2 - could you check that’s there?
Hi Chris
Thanks - I have been successful,
Do you perhaps know of a monitor application that would allow to view what is actually active on the remote device
Thanks
Deresh
Hey @Dereshp, what kind of things do you want to monitor on the device?Do you mean you would like to know what is actively being displayed on the screen for a specific device?
Hi thanks for response,
Indeed, I would liked to see what is actively being displayed on the removed screen,
Please advise
Thanks
Deresh
Hmm, I don’t know a ready made way to do that, perhaps @chrisys knows of anything? One way would be to setup a VNC viewer like https://www.balena.io/blog/running-a-gui-application-with-balenacloud/ and then you would see what is being displayed on the screen.
Thanks Shaun
Appreciated - I will try this
Yeah that’s the way I would go too, although I haven’t tried it myself.