Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to autoupdate Octoprint #92

Open
Quasimondo opened this issue Jun 20, 2017 · 0 comments
Open

Error when trying to autoupdate Octoprint #92

Quasimondo opened this issue Jun 20, 2017 · 0 comments
Labels

Comments

@Quasimondo
Copy link

Quasimondo commented Jun 20, 2017

Not sure if this is the right place to post this, but when trying to run the automatic update from the Mr Beam frontend it failed this time. I think it is an issue with git on the Raspberry not having a domain associated, at least that's what I read from the log file:


2017-06-18 09:48:43,486 - octoprint.plugins.softwareupdate - INFO - Update plugin: github_commit/mrbeam/netconnectd/stable-1.2.2, current: 314b108a29448712a4adaf9feaa92af9176e289a, remote: a97601af145956a98124445073b63089648b828d, local: 314b108a29448712a4adaf9feaa92af9176e289a
2017-06-18 09:48:43,490 - octoprint.plugins.softwareupdate - INFO - Starting update of netconnectd to a97601af145956a98124445073b63089648b828d...
2017-06-18 09:48:53,128 - octoprint.plugins.softwareupdate.updaters.update_script - ERROR - Target: netconnectd, error while executing update script, got returncode 1
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.2_528_geb5e740-py2.7.egg/octoprint/plugins/softwareupdate/updaters/update_script.py", line 62, in perform_update
    returncode, stdout, stderr = execute(update_command, cwd=folder)
  File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.2_528_geb5e740-py2.7.egg/octoprint/plugins/softwareupdate/util.py", line 25, in execute
    raise ScriptError(p.returncode, p.stdout.text, p.stderr.text)
ScriptError
2017-06-18 09:48:53,139 - octoprint.plugins.softwareupdate.updaters.update_script - WARNING - Target: netconnectd, update stdout:
>>> Running: git diff --shortstat
>>> Running: git pull

2017-06-18 09:48:53,142 - octoprint.plugins.softwareupdate.updaters.update_script - WARNING - Target: netconnectd, update stderr:
From https://github.com/mrbeam/netconnectd
 + 314b108...a97601a stable-1.2.2 -> origin/stable-1.2.2  (forced update)
   881e76b..a97601a  master     -> origin/master

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident  <pi@mrbeam.(none)> not allowed
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.2_528_geb5e740-py2.7.egg/octoprint/plugins/softwareupdate/scripts/git-pull.py", line 180, in <module>
    main()
  File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.2_528_geb5e740-py2.7.egg/octoprint/plugins/softwareupdate/scripts/git-pull.py", line 176, in main
    update_source(git_executable, folder, target, force=args.force)
  File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.2_528_geb5e740-py2.7.egg/octoprint/plugins/softwareupdate/scripts/git-pull.py", line 102, in update_source
    raise RuntimeError("Could not update, \"git pull\" failed with returncode %d: %s" % (returncode, stdout))
RuntimeError: Could not update, "git pull" failed with returncode 128: 

2017-06-18 09:48:53,147 - octoprint.plugins.softwareupdate - ERROR - Update of netconnectd can not be performed
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.2_528_geb5e740-py2.7.egg/octoprint/plugins/softwareupdate/__init__.py", line 608, in _perform_update
    update_result = updater.perform_update(target, check, target_version)
  File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.2_528_geb5e740-py2.7.egg/octoprint/plugins/softwareupdate/updaters/update_script.py", line 69, in perform_update
    raise UpdateError("Error while executing update script for %s", (e.stdout, e.stderr))
UpdateError
2017-06-18 09:48:53,190 - requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): api.github.com
2017-06-18 09:48:53,384 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/requests-2.8.1-py2.7.egg/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

2017-06-18 09:48:54,306 - octoprint.plugins.softwareupdate - INFO - Update plugin: github_commit/mrbeam/mrbeam-inkscape-ext/stable-1.2.2, current: 54d905172741127c707375413a271da704aa5fd7, remote: 54d905172741127c707375413a271da704aa5fd7, local: 54d905172741127c707375413a271da704aa5fd7

The question is if there is a way to fix this from the web frontend or if I have to log into the RPi with a console and manually set those git credentials?

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

No branches or pull requests

2 participants