Git Product home page Git Product logo

cloudpebble-composed's Issues

suggestion please update to 4.3

I was able to get this running on 4.3 without issues. By changing
ENV FIRMWARE_VERSION 3.11
replace with
ENV FIRMWARE_VERSION 4.3
within cloudpebble-qemu-controller/Dockerfile

Thank you

Unable to get it to run on Windows 10

Following the instructions, had the following issues:

  • dos2unix had to run on the docker_start.sh
  • Missing most static resources (like jquery, fuse, etc.) from root/static
  • Getting this error when running docker-compose up
    �[34mcelery_1 |�[0m [2016-06-25 06:47:18,674: ERROR/MainProcess] Unrecoverable error: TypeError("init() got an unexpected keyword argument 'socket_connect_timeout'",)
    �[34mcelery_1 |�[0m Traceback (most recent call last):
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/celery/worker/init.py", line 206, in start
    �[34mcelery_1 |�[0m self.blueprint.start(self)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/celery/bootsteps.py", line 123, in start
    �[34mcelery_1 |�[0m step.start(parent)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/celery/bootsteps.py", line 373, in start
    �[34mcelery_1 |�[0m return self.obj.start()
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 278, in start
    �[34mcelery_1 |�[0m blueprint.start(self)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/celery/bootsteps.py", line 123, in start
    �[34mcelery_1 |�[0m step.start(parent)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 478, in start
    �[34mcelery_1 |�[0m c.connection = c.connect()
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 375, in connect
    �[34mcelery_1 |�[0m callback=maybe_shutdown,
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 369, in ensure_connection
    �[34mcelery_1 |�[0m interval_start, interval_step, interval_max, callback)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/utils/init.py", line 246, in retry_over_time
    �[34mcelery_1 |�[0m return fun(_args, *_kwargs)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 237, in connect
    �[34mcelery_1 |�[0m return self.connection
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 742, in connection
    �[34mcelery_1 |�[0m self._connection = self._establish_connection()
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/connection.py", line 697, in _establish_connection
    �[34mcelery_1 |�[0m conn = self.transport.establish_connection()
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/init.py", line 809, in establish_connection
    �[34mcelery_1 |�[0m self.avail_channels.append(self.create_channel(self))
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/transport/virtual/init.py", line 791, in create_channel
    �[34mcelery_1 |�[0m channel = self.Channel(connection)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 464, in init
    �[34mcelery_1 |�[0m self.client.info()
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/utils/init.py", line 325, in get
    �[34mcelery_1 |�[0m value = obj.dict[self.name] = self.get(obj)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 908, in client
    �[34mcelery_1 |�[0m return self._create_client(async=True)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 861, in _create_client
    �[34mcelery_1 |�[0m return self.AsyncClient(connection_pool=self.async_pool)
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 882, in __init

    �[34mcelery_1 |�[0m self.connection = self.connection_pool.get_connection('
    ')
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/redis/connection.py", line 455, in get_connection
    �[34mcelery_1 |�[0m connection = self.make_connection()
    �[34mcelery_1 |�[0m File "/usr/local/lib/python2.7/site-packages/redis/connection.py", line 464, in make_connection
    �[34mcelery_1 |�[0m return self.connection_class(**self.connection_kwargs)
    �[34mcelery_1 |�[0m TypeError: init() got an unexpected keyword argument 'socket_connect_timeout'

CloudPebble does not work as-is

Hi all. I did some further poking around and discovered a few things, and even got it running after a while.

(Please see my post here https://www.reddit.com/r/pebble/comments/9fs3ob/looking_to_set_up_a_local_instance_of_cloudpebble/) Findings below

I cannot really say for sure what did it but here's everything I did (I think)

cloudpebble/requirements.txt

Changed "amqp==1.4.4" to "amqp==1.4.9"

cloudpebble-qemu-controller/requirements.txt

Changed "greenlet==0.4.5" to "greenlet==0.4.14"

Rebuilt both with "docker build ." in each folder

Copied output container IDs into docker-compose.yml

Commented out build line in web, replaced with "image: IDHERE"

Looking now though, I don't see it there. Maybe I imagined it. Probably an indicator that changing the amqp line wasn't the issue.

Commented out the build line in qemu, replaced it with "image: IDHERE"

Changed all the "./cloudpebble(stuff)" paths to be absolute paths. (ex: ./ changed to /home/hbh7/cloudpebble-composed/etc)

Changed all the IPs to match my VM IP

Entered the web container with docker exec -it CONTAINERID /bin/bash

Somehow passed "Error response from daemon: Cannot link to a non running container: /f9c5e80b594f_cloudpebblecomposed_qemu_1 AS /cloudpebblecomposed_web_1/cloudpebblecomposed_qemu_1"

I think it was simply running docker-compose down and then docker-compose up -d

Did something (output lost for a lot of this section :( sorry) with bower similar to this.

RUN rm -rf bower_components && cd /tmp && python /code/manage.py bower install && mv bower_components /code/

Manually moved files into place

mv /tmp/bower-components /code/

Copied the backbone folder a few places: (oh I guess Reddit doesn't indent farther)

./root/static/common/backbone (I think this one is the right one)

./root/static/root/js/bower_components/backbone

./root/static/root/backbone

Then ran python manage.py collectstatic

Had to restart django then I thought, so I ended up running "pkill -9 python" since that seemed to be running the show

Container then died, had to run docker-compose up -d again, but

Seemed to work after that :D

I probably missed something and did a bunch of things horribly wrong, but it seems pretty functional now.

Few other broken things still though:

No emulator despite the container seeming to work fine now (doesn't immediately exit anymore)

Some fonts are missing

Cloudpebble to phone connection doesn't work

Can't always import projects it seems, got an error that I now lost

Am now locked out or something, its rejecting my login now after I changed/did something or another during the writeup

External access to CloudPebble

I have found an issue with external access to the emulator and running the get pdw function. This seems to work fine from within the system. Possible external forward issue to docker.

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.