Giter Site home page Giter Site logo

avtse-iiotg-upgrade's People

Contributors

waynepetersiot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ergouser kunyi

avtse-iiotg-upgrade's Issues

usbinfo installation failure

usbinfo is failing to install on top of the default 20190719a_shrink image.

I saw an install error during the upgrade, but the installer continued without error.

While trying to add the gateway to a newly created account with the phone app (qa), I saw these service errors:

Aug 11 21:21:13 raspberrypi systemd[1]: iotconnectservice.service: Service hold-off time over, scheduling restart.
Aug 11 21:21:13 raspberrypi systemd[1]: Stopped Smartedge-iiot-gateway IoTConnect SDK service.
Aug 11 21:21:13 raspberrypi systemd[1]: Started Smartedge-iiot-gateway IoTConnect SDK service.
Aug 11 21:21:13 raspberrypi bash[10179]: Starting Smartedge-iiot-gateway SDK
Aug 11 21:21:14 raspberrypi bash[10179]: Traceback (most recent call last):
Aug 11 21:21:14 raspberrypi bash[10179]:   File "/opt/avnet-iot/IoTConnect/sample/example.py", line 13, in <module>
Aug 11 21:21:14 raspberrypi bash[10179]:     import usbinfo
Aug 11 21:21:14 raspberrypi bash[10179]: ImportError: No module named usbinfo
Aug 11 21:21:24 raspberrypi systemd[1]: iotconnectservice.service: Service hold-off time over, scheduling restart.
Aug 11 21:21:24 raspberrypi systemd[1]: Stopped Smartedge-iiot-gateway IoTConnect SDK service.
avnet@raspberrypi:~ $ sudo pip install usbinfo
Collecting usbinfo
  Using cached https://files.pythonhosted.org/packages/0f/75/249ac6107bac6ab10e3ef0d42c6c36872075f78ada8af16e96d6f8845646/usbinfo-1.1.2.tar.gz
    Complete output from command python setup.py egg_info:
    Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    No local packages or working download links found for pytest-runner
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-BM_P3E/usbinfo/setup.py", line 93, in <module>
        main()
      File "/tmp/pip-build-BM_P3E/usbinfo/setup.py", line 90, in main
        setup(**setup_data)
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 317, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 372, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 846, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1118, in best_match
        return self.obtain(req, installer)
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1130, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 440, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 693, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-BM_P3E/usbinfo/

The workaround was to install pytest-runner and usbinfo:

avnet@raspberrypi:~ $ sudo pip install usbinfo
Collecting usbinfo
  Using cached https://files.pythonhosted.org/packages/0f/75/249ac6107bac6ab10e3ef0d42c6c36872075f78ada8af16e96d6f8845646/usbinfo-1.1.2.tar.gz
Requirement already satisfied: pyudev in /usr/local/lib/python2.7/dist-packages (from usbinfo)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from pyudev->usbinfo)
Building wheels for collected packages: usbinfo
  Running setup.py bdist_wheel for usbinfo ... done
  Stored in directory: /root/.cache/pip/wheels/45/da/72/edbf3a7bed1003efbc2d3694dab2e4bf80d8c83e94381003bb
Successfully built usbinfo
Installing collected packages: usbinfo
Successfully installed usbinfo-1.1.2

Upgrade to v1.1 causes continuous reboots

Hello!
I upgraded my Avnet IIOT SmartEdge over the weekend using this script:
https://github.com/Avnet/avtse-iiotg-upgrade

I chose v1.1 when that choice came up. The script appeared to do a lot of things and it said it completed successfully. Then I pressed the enter key to reboot.

Now it will boot to the login prompt, but then about 15 seconds later reboots again, and again... etc.

My SmartEdge was provided to me as part of an element14 Beta - not sure if that gave me an incompatible base OS ?

I'm hoping for some brilliant advice to get it running again :D

Thanks,
-Nico

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.