Git Product home page Git Product logo

communitycellularmanager's Introduction

Deprecated

This project is no longer maintained by the team at Facebook, and ongoing development takes place in the community-maintained fork:

https://github.com/co-cell/ccm

Overview

Community Cellular Manager (CCM) is a set of programs which allow for standalone telecom systems that can be operated by individuals or as a network appliance inside of a traditional telecom network. The components are as follows:

  • cloud: The endagaweb Django app and other associated services (OpenVPN, certifier, sason) needed to manage a set of CCM clients.

  • client: The software running on an OpenCellular (or similar hardware) access point. Manages subscribers, routing, and access locally while being controlled by the cloud components.

  • openbts-python: A client for openbts-based systems to communicate with CCM-based clients.

  • osmocom-python: A client for osmocom-based systems to communicate with CCM-based clients.

  • common: Libraries shared between the client and cloud stack.

  • sms_utilities: A standalone library for working with SMS PDUs.

Each subdirectory has its own README explaining the build/test/deploy paradigm used for that particular subcomponent.

Questions:

[email protected]

Join the CommunityCellularManager community

See the CONTRIBUTING file for how to help out.

License

Community Cellular Manager is BSD-licensed. We also provide an additional patent grant. See the LICENSE and PATENTS files for more information.

communitycellularmanager's People

Contributors

2dot71mily avatar emakeev avatar eprueves avatar kheimerl avatar kkroo avatar markisaa avatar matt9j avatar mferland avatar petew1 avatar piyushabad88 avatar saifhhasan avatar shaddi avatar shivkumarsah avatar

Stargazers

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

Watchers

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

communitycellularmanager's Issues

Facebook Community Cellular Manager Client errors = Can't find ruby library file or shared library fpm

Hello,

Hello,

Following the instructions per Facebook's CommunityCellularManager for Client, I am getting errors

Here is the git checkout version of Facebook's Community Cellular Manager I'm using:

ubuntu@ubuntu:~/CommunityCellularManager$ sudo git log -n1
commit 9e5415d
Author: Steve Muir [email protected]
Date: Mon Dec 19 11:31:50 2016 -0800

Only ignore top-level static dir, not deeper ones

Summary:
The .gitignore rule was intended to only exclude cloud/static, not
cloud/endagaweb/static. The typo meant the static images and such weren't
pushed to GH. A subsequent push will restore them.

Reviewed By: shaddi

Differential Revision: D4341788

fbshipit-source-id: 4741c24327c9e6d3af485e2b6084d532c835a064

Here is what I'm running:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

I have the following installed:

ubuntu@ubuntu:~/CommunityCellularManager/cloud$ pip3 --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

ubuntu@ubuntu:~/CommunityCellularManager/cloud$ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

ubuntu@ubuntu:~/CommunityCellularManager/cloud$ vagrant --version
Vagrant 1.8.7

VBoxManage --version
4.3.36_Ubuntur105129

ansible --version
ansible 2.3.0

Here is the error message I receive:

**ubuntu@ubuntu:~/CommunityCellularManager/client$ sudo fab dev package
[localhost] local: vagrant ssh-config openbts | grep HostName
[localhost] local: vagrant ssh-config openbts | grep Port
[localhost] local: vagrant ssh-config openbts | grep IdentityFile
['/home/ubuntu/CommunityCellularManager/client/.vagrant/machines/openbts/virtualbox/private_key']
[[email protected]:2201] Executing task 'package'
[[email protected]:2201] run: mkdir -p ~/endaga-packages
current contents of ~/endaga-packages:
[[email protected]:2201] run: ls ~/endaga-packages
packaging /home/vagrant/openbts-python
[[email protected]:2201] run: mkdir -p ~/endaga-packages
[[email protected]:2201] run: gem which fpm
[[email protected]:2201] out: ERROR: Can't find ruby library file or shared library fpm
[[email protected]:2201] out:

Fatal error: run() received nonzero return code 1 while executing!

Requested: gem which fpm
Executed: /bin/bash -l -c "gem which fpm"**

But I have "fpm" installed as you can see below:

ubuntu@ubuntu:~/CommunityCellularManager/client$ gem which fpm
/var/lib/gems/1.9.1/gems/fpm-1.7.0/lib/fpm.rb

I haven't been able to get either Facebook's CCM Cloud, nor Client, to function yet.

Any assistance would be greatly appreciated!

Failed to install client requirements.txt for client Unit testing

Hello Sir as per client unit testing requirement, python-nose is required, but it is breaking while installing requirements.txt

facebook@facebook-ThinkPad-T450s:~/fbcode/CommunityCellularManager/client$ sudo pip install -r requirements.txt
The directory '/home/facebook/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/facebook/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: argparse==1.2.1 in /usr/lib/python2.7 (from -r requirements.txt (line 1))
Collecting astroid==1.3.6 (from -r requirements.txt (line 2))
Downloading astroid-1.3.6-py2.py3-none-any.whl (182kB)
100% |████████████████████████████████| 184kB 170kB/s
Collecting Babel==1.3 (from -r requirements.txt (line 3))
Downloading Babel-1.3.tar.gz (3.4MB)
100% |████████████████████████████████| 3.4MB 81kB/s
Collecting coverage==3.7.1 (from -r requirements.txt (line 4))
Downloading coverage-3.7.1.tar.gz (284kB)
100% |████████████████████████████████| 286kB 84kB/s
Collecting docopt==0.6.2 (from -r requirements.txt (line 5))
Downloading docopt-0.6.2.tar.gz
Collecting eno==0.0.17 (from -r requirements.txt (line 6))
Downloading eno-0.0.17.tar.gz
Collecting envoy==0.0.3 (from -r requirements.txt (line 7))
Downloading envoy-0.0.3-py2.py3-none-any.whl
Collecting flup==1.0.3.dev-20110405 (from -r requirements.txt (line 8))
Downloading flup-1.0.3.dev-20110405.tar.gz (57kB)
100% |████████████████████████████████| 61kB 65kB/s
Collecting humanize==0.5.1 (from -r requirements.txt (line 9))
Downloading humanize-0.5.1.tar.gz
Collecting itsdangerous==0.22 (from -r requirements.txt (line 10))
Downloading itsdangerous-0.22.tar.gz
Collecting logilab-common==0.63.2 (from -r requirements.txt (line 11))
Downloading logilab-common-0.63.2.tar.gz (196kB)
100% |████████████████████████████████| 204kB 47kB/s
Collecting meld3==1.0.2 (from -r requirements.txt (line 12))
Downloading meld3-1.0.2-py2.py3-none-any.whl
Collecting mock==1.0.1 (from -r requirements.txt (line 13))
Downloading mock-1.0.1.zip (861kB)
100% |████████████████████████████████| 870kB 59kB/s
Collecting netifaces==0.8 (from -r requirements.txt (line 14))
Downloading netifaces-0.8.tar.gz
Collecting nose==1.3.4 (from -r requirements.txt (line 15))
Downloading nose-1.3.4-py2-none-any.whl (154kB)
100% |████████████████████████████████| 163kB 70kB/s
Collecting openbts==0.1.7 (from -r requirements.txt (line 16))
Downloading openbts-0.1.7.tar.gz
Collecting Paste==1.7.5.1 (from -r requirements.txt (line 17))
Downloading Paste-1.7.5.1.tar.gz (523kB)
100% |████████████████████████████████| 532kB 107kB/s
Collecting phonenumbers==6.2.0 (from -r requirements.txt (line 18))
Downloading phonenumbers-6.2.0.tar.gz (2.1MB)
100% |████████████████████████████████| 2.1MB 133kB/s
Collecting psutil==3.1.1 (from -r requirements.txt (line 19))
Downloading psutil-3.1.1.tar.gz (247kB)
100% |████████████████████████████████| 256kB 187kB/s
Collecting psycopg2==2.6 (from -r requirements.txt (line 20))
Downloading psycopg2-2.6.tar.gz (367kB)
100% |████████████████████████████████| 368kB 25kB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Q7Xudx/psycopg2/

function package_freeswitch_mod_smpp() undefined

when building packages for osmocom by running fab osmocom dev package:

/client/fabfile.py", line 110, in package
    package_freeswitch_mod_smpp()
NameError: global name 'package_freeswitch_mod_smpp' is not defined

BTS connected but there's no telemetry data

I managed to connect a SysmoBTS to CCM. I'm running osmo-nitb on osmocom vm client and osmo-bts on sysmo. Issuing show bts 0 on osmo-nitb vty from vm client shows that it's connected.

Also, i've registrated snowflake ID of osmocom vm client on the cloud and checking the dashboard it says "active".

However, when clicking on "Tower Monitoring" to see the stats, it says:
This tower is running old software (version "None") and is not sending telemetry data in checkins.

I'm reading the scripts to understand what's going on but could get nothing so far.
What might be wrong? Any thoughts?

etagecom.io repsitories signed with sha1

Hello!
Starting in apt version 1.4 gpg certificates using sha1 as the digest algorithm have been disabled (see this blogpost https://juliank.wordpress.com/2016/03/14/dropping-sha-1-support-in-apt/). This impacts debian9 and ubuntu 16.04 or later. It looks like the repository maintainers need to re-generate the repository signing keys using a modern digest algorithm (https://unix.stackexchange.com/questions/387053/debian-9-apt-and-gpg-error-inrelease-the-following-signatures-were-inva). I originally found this issue working to deploy a community cellular manager osomocom client onto a debian9 machine. Let me know if there is any more info I can provide.
Cheers,
-Matt J.

apt-get update errors:

W: GPG error: http://repo.endaga.com dev Release: The following signatures were invalid: 916E6D307A1F68A97BE79BA8982FB270664644E6
E: The repository 'http://repo.endaga.com dev Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repo.etagecom.io dev Release: The following signatures were invalid: FDA0AA1640DB1B4741F0135FF1757AA7673FFA94
E: The repository 'http://repo.etagecom.io dev Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repo.etagecom.io test Release: The following signatures were invalid: FDA0AA1640DB1B4741F0135FF1757AA7673FFA94
E: The repository 'http://repo.etagecom.io test Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repo.etagecom.io beta Release: The following signatures were invalid: FDA0AA1640DB1B4741F0135FF1757AA7673FFA94
E: The repository 'http://repo.etagecom.io beta Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repo.etagecom.io stable Release: The following signatures were invalid: FDA0AA1640DB1B4741F0135FF1757AA7673FFA94
E: The repository 'http://repo.etagecom.io stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

pgpdump of downloaded etagecom.io public key showing SHA1 as the digest:

vagrant@endaga-client-osmocom:~$ pgpdump pubkey.gpg 
Old: Public Key Packet(tag 6)(525 bytes)
        Ver 4 - new
        Public key creation time - Sat Dec  5 21:14:07 GMT 2015
        Pub alg - RSA Encrypt or Sign(pub 1)
        RSA n(4096 bits) - ...
        RSA e(17 bits) - ...
Old: User ID Packet(tag 13)(35 bytes)
        User ID - Package Repo <[email protected]>
Old: Signature Packet(tag 2)(568 bytes)
        Ver 4 - new
        Sig type - Positive certification of a User ID and Public Key packet(0x13).
        Pub alg - RSA Encrypt or Sign(pub 1)
        Hash alg - SHA1(hash 2)
        Hashed Sub: signature creation time(sub 2)(4 bytes)
                Time - Sat Dec  5 21:14:07 GMT 2015

...

apt-get install endaga-osmocom fails

While trying to setup osmocom client vagrant up osmocom successfully executed but after,
vagrant ssh osmocom and sudo apt-get update the below command fails:

apt-get install endaga-osmocom
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
endaga-osmocom : Depends: openggsn (>= 0.92) but it is not installable
Depends: osmocom-sgsn (>= 0.15.0) but it is not installable
Depends: freeswitch-meta-vanilla but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

[Errno 111] Connection refused

Connection refused while trying to adjust credit or send sms to user. And when I go back to the subscriber page's i can see that the request is not completed, its in the pending list.

The web cloud shows:

Internal Server Error: /dashboard/subscribers/IMSI724119111341404/send-sms
Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 39, in inner
    response = get_response(request)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
    return bound_func(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
    return func.__get__(self, type(self))(*args2, **kwargs2)
  File "/home/vagrant/cloud/endagaweb/views/dashboard.py", line 53, in dispatch
    return super(ProtectedView, self).dispatch(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/vagrant/cloud/endagaweb/views/dashboard.py", line 490, in post
    tasks.async_post.delay(url, params)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/task.py", line 453, in delay
    return self.apply_async(args, kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/task.py", line 565, in apply_async
    **dict(self._get_exec_options(), **options)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/base.py", line 354, in send_task
    reply_to=reply_to or self.oid, **options
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/amqp.py", line 310, in publish_task
    **kwargs
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/messaging.py", line 172, in publish
    routing_key, mandatory, immediate, exchange, declare)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 457, in _ensured
    interval_max)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 369, in ensure_connection
    interval_start, interval_step, interval_max, callback)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
    return fun(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 237, in connect
    return self.connection
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 742, in connection
    self._connection = self._establish_connection()
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 697, in _establish_connection
    conn = self.transport.establish_connection()
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
    conn = self.Connection(**opts)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/connection.py", line 165, in __init__
    self.transport = self.Transport(host, connect_timeout, ssl)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/connection.py", line 186, in Transport
    return create_transport(host, connect_timeout, ssl)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/transport.py", line 299, in create_transport
    return TCPTransport(host, connect_timeout)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/transport.py", line 95, in __init__
    raise socket.error(last_err)
error: [Errno 111] Connection refused
[27/Oct/2017 19:03:42] ERROR [exception.py:124] Internal Server Error: /dashboard/subscribers/IMSI724119111341404/send-sms
Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 39, in inner
    response = get_response(request)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/utils/decorators.py", line 67, in _wrapper
    return bound_func(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/utils/decorators.py", line 63, in bound_func
    return func.__get__(self, type(self))(*args2, **kwargs2)
  File "/home/vagrant/cloud/endagaweb/views/dashboard.py", line 53, in dispatch
    return super(ProtectedView, self).dispatch(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/vagrant/cloud/endagaweb/views/dashboard.py", line 490, in post
    tasks.async_post.delay(url, params)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/task.py", line 453, in delay
    return self.apply_async(args, kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/task.py", line 565, in apply_async
    **dict(self._get_exec_options(), **options)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/base.py", line 354, in send_task
    reply_to=reply_to or self.oid, **options
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/celery/app/amqp.py", line 310, in publish_task
    **kwargs
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/messaging.py", line 172, in publish
    routing_key, mandatory, immediate, exchange, declare)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 457, in _ensured
    interval_max)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 369, in ensure_connection
    interval_start, interval_step, interval_max, callback)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/utils/__init__.py", line 246, in retry_over_time
    return fun(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 237, in connect
    return self.connection
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 742, in connection
    self._connection = self._establish_connection()
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/connection.py", line 697, in _establish_connection
    conn = self.transport.establish_connection()
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 116, in establish_connection
    conn = self.Connection(**opts)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/connection.py", line 165, in __init__
    self.transport = self.Transport(host, connect_timeout, ssl)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/connection.py", line 186, in Transport
    return create_transport(host, connect_timeout, ssl)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/transport.py", line 299, in create_transport
    return TCPTransport(host, connect_timeout)
  File "/home/vagrant/.virtualenvs/endaga/local/lib/python2.7/site-packages/amqp/transport.py", line 95, in __init__
    raise socket.error(last_err)
error: [Errno 111] Connection refused

Calls not being completed

I am currently trying to make 'internal' calls between clients, I already check and both clients have credits, however it does not complete the dial.
OpenBSC log:

<0004> abis_rsl.c:1852 BTS 0 CHAN RQD: reason: call re-establishment (ra=0x4d, neci=0x01, chreq_reason=0x02)
<0000> chan_alloc.c:352 (bts=0,trx=0,ts=3,pchan=TCH/F) Allocating lchan=0 as TCH_F
<0004> abis_rsl.c:1922 (bts=0,trx=0,ts=3,ss=0) Activating ARFCN(65) SS(0) lctype TCH_F r=CALL ra=0x4d ta=0
<0004> abis_rsl.c:595 (bts=0,trx=0,ts=3,pchan=TCH/F) Tx RSL Channel Activate with act_type=INITIAL
<0004> abis_rsl.c:1231 (bts=0,trx=0,ts=3,ss=0) state NONE -> ACTIVATION REQUESTED
<0004> abis_rsl.c:1603 (bts=0,trx=0,ts=3,ss=0) CHANNEL ACTIVATE ACK
<0004> abis_rsl.c:1231 (bts=0,trx=0,ts=3,ss=0) state ACTIVATION REQUESTED -> ACTIVE
<0000> abis_rsl.c:2125 (bts=0,trx=0,ts=3,ss=0) SAPI=0 ESTABLISH INDICATION
<0000> gsm_04_08.c:4007 Dispatching 04.08 message, pdisc=5
<0002> gsm_04_08.c:1024 <- CM SERVICE REQUEST serv_type=0x01 MI(TMSI)=608646690
<000d> db.c:1307 Sync Equipment IMEI=355320084208080, classmark1=33, classmark2=33 19 82 , classmark3=60 14 04 62 88 10 01 27 e0 00
<0002> gsm_04_08_utils.c:667 -> CM SERVICE ACK
<0000> abis_rsl.c:2125 (bts=0,trx=0,ts=3,ss=0) SAPI=0 DATA INDICATION
<0003> bsc_api.c:605 GPRS SUSPENSION REQUEST
<0000> abis_rsl.c:2125 (bts=0,trx=0,ts=3,ss=0) SAPI=0 DATA INDICATION
<0000> gsm_04_08.c:4007 Dispatching 04.08 message, pdisc=3
<0001> gsm_04_08.c:3902 (bts 0 trx 0 ts 3 ti 8 sub 15555581408) Received 'SETUP' from MS in state 0 (NULL)
<0001> gsm_04_08.c:3907 Unknown transaction ID 8, creating new trans.
<0001> transaction.c:71 subscr=0x557d746ddbc0, net=0x557d7453bdb0
<0001> gsm_04_08.c:1631 new state NULL -> INITIATED
<0001> gsm_04_08.c:2310 Subscriber Marcus Dias (15555581408) sends SETUP to 15555579368
<0001> gsm_04_08.c:1693 (bts 0 trx 0 ts 3 ti 8 sub 15555581408) Sending 'MNCC_SETUP_IND' to MNCC.
<0006> gsm_04_08.c:3593 receive message MNCC_RTP_CREATE
<0006> gsm_04_08.c:3424 RTP create: codec=SPEECH_V1, chan_type=TCH_F
<000a> bsc_api.c:415 Sending (bts=0,trx=0,ts=3,ss=0) ChanModify for speech: SPEECH_V1 on channel TCH_F
<0003> gsm_04_08_utils.c:517 -> CHANNEL MODE MODIFY mode=0x01
<0000> abis_rsl.c:2125 (bts=0,trx=0,ts=3,ss=0) SAPI=0 DATA INDICATION
<0003> gsm_04_08_utils.c:542 CHANNEL MODE MODIFY ACK
<0004> abis_rsl.c:2342 (bts=0,trx=0,ts=3,ss=0) IPAC_BIND speech_mode=0x10 RTP_PAYLOAD=3
<0003> osmo_msc.c:76 MSC assign complete (do nothing).
<0004> abis_rsl.c:1624 (bts=0,trx=0,ts=3,ss=0) CHANNEL MODE MODIFY ACK
<0004> abis_rsl.c:2523 (bts=0,trx=0,ts=3,ss=0) IPAC_CRCX_ACK LOCAL_IP=200.239.93.157 LOCAL_PORT=39406 CON_ID=0 <0006> gsm_04_08.c:3500 (bts=0,trx=0,ts=3,ss=0) sending pending RTP create ind.
<0001> gsm_04_08.c:1701 (bts - trx - ts - ti -- sub -) Sending 'MNCC_RTP_CREATE' to MNCC.

<0006> gsm_04_08.c:3593 receive message MNCC_CALL_PROC_REQ
<0001> gsm_04_08.c:3804 (bts 0 trx 0 ts 3 ti 08 sub 15555581408) Received 'MNCC_CALL_PROC_REQ' from MNCC in state 1 (INITIATED)
<0001> gsm_04_08.c:1631 new state INITIATED -> MO_CALL_PROC
<0001> gsm_04_08.c:144 (bts 0 trx 0 ts 3 ti 80) Sending 'CALL_PROC' to MS.
<0006> gsm_04_08.c:3593 receive message MNCC_DISC_REQ
<0001> gsm_04_08.c:3804 (bts 0 trx 0 ts 3 ti 08 sub 15555581408) Received 'MNCC_DISC_REQ' from MNCC in state 3 (MO_CALL_PROC)
<0001> gsm_04_08.c:2234 starting timer T306 with 30 seconds
<0001> gsm_04_08.c:1631 new state MO_CALL_PROC -> DISCONNECT_IND
<0001> gsm_04_08.c:144 (bts 0 trx 0 ts 3 ti 80) Sending 'DISCONNECT' to MS.
<0000> abis_rsl.c:2125 (bts=0,trx=0,ts=3,ss=0) SAPI=0 DATA INDICATION
<0000> gsm_04_08.c:4007 Dispatching 04.08 message, pdisc=3
<0001> gsm_04_08.c:3902 (bts 0 trx 0 ts 3 ti 8 sub 15555581408) Received 'RELEASE' from MS in state 12 (DISCONNECT_IND)
<0001> gsm_04_08.c:1673 stopping pending timer T306
<0001> gsm_04_08.c:144 (bts 0 trx 0 ts 3 ti 80) Sending 'RELEASE_COMPL' to MS.
<0001> gsm_04_08.c:1693 (bts 0 trx 0 ts 3 ti 8 sub 15555581408) Sending 'MNCC_REL_IND' to MNCC.
<0001> gsm_04_08.c:1631 new state DISCONNECT_IND -> NULL
<0000> chan_alloc.c:486 (bts=0,trx=0,ts=3,ss=0) starting release sequence
<0004> abis_rsl.c:1231 (bts=0,trx=0,ts=3,ss=0) state ACTIVE -> RELEASE REQUESTED
<0003> gsm_04_08_utils.c:251 Sending Channel Release: Chan: Number: 0 Type: 2
<0004> abis_rsl.c:777 (bts=0,trx=0,ts=3,ss=0) DEACTivate SACCH CMD
<0004> abis_rsl.c:1445 (bts=0,trx=0,ts=3,ss=0): MEAS RES for inactive channel
<0000> abis_rsl.c:2125 (bts=0,trx=0,ts=3,ss=0) SAPI=0 RELEASE INDICATION
<0004> abis_rsl.c:1731 (bts=0,trx=0,ts=3,ss=0) T3111 expired: releasing RF Channel
<0004> abis_rsl.c:869 (bts=0,trx=0,ts=3,ss=0) RF Channel Release
<0004> abis_rsl.c:2542 (bts=0,trx=0,ts=3,ss=0) IPAC_DLCX_IND
<0004> abis_rsl.c:939 (bts=0,trx=0,ts=3,ss=0) RF CHANNEL RELEASE ACK
<0004> abis_rsl.c:1231 (bts=0,trx=0,ts=3,ss=0) state RELEASE REQUESTED -> NONE

freeswitch log:

2017-11-06 18:17:03.428847 [ERR] mod_smpp_gateway.c:297 Unrecognized Command ID: 258
2017-11-06 18:17:03.428847 [ERR] mod_smpp_gateway.c:379 Unknown command_id[258]
2017-11-06 18:24:31.428836 [DEBUG] switch_rtp.c:1459  [  zrtp cache]: 	Storing ZRTP cache to </var/lib/freeswitch/db/zrtp.dat>...
2017-11-06 18:24:31.428836 [DEBUG] switch_rtp.c:1320 Saving ZRTP cache: OK

Any ideas in how to solve this? Thanks

Error: private key password verification failed

That's the openvpn.log

Tue Aug 22 12:44:11 2017 OpenVPN 2.3.2 i686-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Jun 22 2017
Tue Aug 22 12:44:11 2017 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Tue Aug 22 12:44:11 2017 Cannot load private key file /etc/openvpn/endaga-client.key: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
Tue Aug 22 12:44:11 2017 Error: private key password verification failed
Tue Aug 22 12:44:11 2017 Exiting due to fatal error

And that's the endagad.log

Unable to verify client cert against CA bundle:

I've already ensured etage-bundle.crt is the same in client and cert. But can't solve it at all

python manage.py setup_test_db is failing

With the help of vagrant I'm able to create VMs, but getting the following error.
django.db.utils.ProgrammingError: relation "endagaweb_clientrelease" does not exist

(endaga) vagrant@endaga-web:~/cloud$ python manage.py setup_test_db
.........
django.db.utils.ProgrammingError: relation "endagaweb_clientrelease" does not exist
LINE 1: INSERT INTO "endagaweb_clientrelease" ("date", "version", "c...

I verified and found following tables available, but endagaweb_clientrelease is missing.

                      List of relations

Schema | Name | Type | Owner
--------+---------------------------------------+----------+------------
public | account_emailaddress | table | endaga_dev
public | account_emailaddress_id_seq | sequence | endaga_dev
public | account_emailconfirmation | table | endaga_dev
public | account_emailconfirmation_id_seq | sequence | endaga_dev
public | auth_group | table | endaga_dev
public | auth_group_id_seq | sequence | endaga_dev
public | auth_group_permissions | table | endaga_dev
public | auth_group_permissions_id_seq | sequence | endaga_dev
public | auth_permission | table | endaga_dev
public | auth_permission_id_seq | sequence | endaga_dev
public | auth_user | table | endaga_dev
public | auth_user_groups | table | endaga_dev
public | auth_user_groups_id_seq | sequence | endaga_dev
public | auth_user_id_seq | sequence | endaga_dev
public | auth_user_user_permissions | table | endaga_dev
public | auth_user_user_permissions_id_seq | sequence | endaga_dev
public | authtoken_token | table | endaga_dev
public | django_admin_log | table | endaga_dev
public | django_admin_log_id_seq | sequence | endaga_dev
public | django_content_type | table | endaga_dev
public | django_content_type_id_seq | sequence | endaga_dev
public | django_migrations | table | endaga_dev
public | django_migrations_id_seq | sequence | endaga_dev
public | django_session | table | endaga_dev
public | django_site | table | endaga_dev
public | django_site_id_seq | sequence | endaga_dev
public | geography_columns | view | postgres
public | geometry_columns | view | postgres
public | guardian_groupobjectpermission | table | endaga_dev
public | guardian_groupobjectpermission_id_seq | sequence | endaga_dev
public | guardian_userobjectpermission | table | endaga_dev
public | guardian_userobjectpermission_id_seq | sequence | endaga_dev
public | raster_columns | view | postgres
public | raster_overviews | view | postgres
public | socialaccount_socialaccount | table | endaga_dev
public | socialaccount_socialaccount_id_seq | sequence | endaga_dev
public | socialaccount_socialapp | table | endaga_dev
public | socialaccount_socialapp_id_seq | sequence | endaga_dev
public | socialaccount_socialapp_sites | table | endaga_dev
public | socialaccount_socialapp_sites_id_seq | sequence | endaga_dev
public | socialaccount_socialtoken | table | endaga_dev
public | socialaccount_socialtoken_id_seq | sequence | endaga_dev
public | spatial_ref_sys | table | postgres
(43 rows)

Unable to locate package endaga-osmocom

I'm following the client instructions. Until now i issued.

vagrant up osmocom
vagrant ssh osmocom
apt-get install endaga-osmocom

When i issue apt-get install endaga-osmocom i get this:

root@endaga-client-osmocom:/home/vagrant# apt-get install endaga-osmocom
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package endaga-osmocom
root@endaga-client-osmocom:/home/vagrant# 

I've already issued apt-get update. The output of apt-cache search endaga is:

root@endaga-client-osmocom:/home/vagrant# apt-cache search endaga
python-endaga-core - Endaga client core
python-pynexmo - Python library for nexmo, with some updates from Endaga. Forked from https://github.com/marcuz/libpynexmo
root@endaga-client-osmocom:/home/vagrant# 

CCM Client instructions failure because of missing freeswitch-mod-smpp package

I am currently following the client instructions and when issuing the apt-get install endaga-osmocom I get:

root@endaga-client-osmocom:~# apt-get install endaga-osmocom
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 endaga-osmocom : Depends: freeswitch-mod-smpp but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I gave a quick look at the FreeSwitch package feed and noticed that this package is missing for some reason...

"Your phone is not provisioned"

I managed to connect sysmoBTS(running the bts soft) and the CCM client (running nitb). And I can see the ‘OML Link state: connected’:


Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Welcome to the OpenBSC control interface

Copyright (C) 2008-2016 Harald Welte, Holger Freyther
Contributions by Daniel Willmann, Jan Lübbe, Stefan Schmidt
Dieter Spaar, Andreas Eversberg, Sylvain Munaut, Neels Hofmeyr

License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
OpenBSC> show bts
BTS 0 is of nanobts type in band GSM900, has CI 1 LAC 1, BSIC 63 (NCC=7, BCC=7) and 1 TRX
Description: (null)
MS Max power: 12 dBm
Minimum Rx Level for Access: -110 dBm
Cell Reselection Hysteresis: 4 dBm
RACH TX-Integer: 9
RACH Max transmissions: 7
Uplink DTX: not enabled
Downlink DTX: not enabled
Channel Description Attachment: yes
Channel Description BS-PA-MFRMS: 5
Channel Description BS-AG_BLKS-RES: 1
System Information present: 0x0000087e, static: 0x00000000
Early Classmark Sending: forbidden
  Unit ID: 1234/0/0, OML Stream ID 0xff
  NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
  Site Mgr NM State: Oper 'Enabled', Admin 'unknown 0x0', Avail 'OK'
  GPRS NSE: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
  GPRS CELL: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
  GPRS NSVC0: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
  GPRS NSVC1: Oper 'Disabled', Admin 'unknown 0x0', Avail 'Off line'
  Paging: 0 pending requests, 50 free slots
  OML Link state: connected.
  Current Channel Load:
             CCCH+SDCCH4:   0% (0/4)
                   TCH/F:   0% (0/2)
                  SDCCH8:   0% (0/8)


I can see and connect to the network, send SMS, but I cannot call (vty openbsc log call_log_OpenBSC_-_CCM.log). When I try it, I receive an sms with "Your phone is not provisioned" written, even with the policy of the network set to 'accept-all' and my phones in the database with 'authorized 1' ( I had to manually create its entry on the database even with the 'create-on-demand' active).

Files were lost in transit from /TaloLabs

two empty files are missing:

./cloud/endagaweb/migrations/__init__.py
./cloud/endagaweb/devops/__init__.py

first one breaks django migrations (no endaga-specific tables are seen when doing python manage.py makemigrations).
can't comment on the second one

osmocom: sending SMS with more than 160 chars fails

In osmocom-based client, sending SMS with more than 160 chars fails. In the snippet included, SMS echo test sends back a '\x05' character.

https://gist.github.com/eprueves/0d75a84f7ed155c1f77c79f4d57a10d2

issue may be related to the parsing of the SMS since 'vbts_text' is empty

2018-02-22 06:51:11.421577 [NOTICE] mod_python.c:212 Invoking py module: VBTS_Parse_SMS
2018-02-22 06:51:11.421577 [DEBUG] mod_python.c:283 Call python script 
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Parsing:
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_text=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_tp_protocol_id=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_rp_message_reference=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_rp_dest_address=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_tp_dest_address_type=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_tp_message_type=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_rp_message_type=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_tp_dest_address=919
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_rp_originator_address=639360101902
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_rp_originator_address_type=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_tp_user_data=
2018-02-22 06:51:11.421577 [INFO] switch_cpp.cpp:1365 Setting vbts_tp_data_coding_scheme=

CCM client not registering with cloud instances

I've followed both cloud and client READMEs and so far everything seems to be running OK. The only issue which remains is that I cannot get the client to send status updates to the cloud.

Looking at the /var/log/endagad logs I see things like:

Unable to verify client cert against CA bundle

Similarly in /var/log/endaga:

[CRITICAL] endaga: system_utilities.py:260:verify_cert: Unable to verify client cert against CA bundle:#012/etc/openvpn/endaga-client.crt

What did I do wrong?

Any help would be appreciated!

client: prices are not being stored in config db

In client/core/checkin.py, price configs are processed by calling
process_prices(self.conf, config_dict['prices']) (line 87)

However, the arguments does not comply with the ordering defined in client/core/billing.py (line 227)
def process_prices(pricing_data, config_db):.

As such, the endaga_config table does not get populated with the pricing data

client: missing FS global variable 'smqueue_profile'

In /core/sms/freeswitch/_openbts.py, send() and send_direct() looks for the "smqueue_profile" global variable:
to_full = str(freeswitch.getGlobalVariable("smqueue_profile") + "/sip:smsc@" + sip_my_ip + ":" + sip_my_port)

But this is now missing in /etc/freeswitch/vars.xml when the openbts/osmocom profiles were refactored to internal. This causes "VBTS_Send_SMS_Direct" to fail with the ff error:

2016-11-10 06:06:17.337288 [ERR] mod_python.c:164 Python Error by calling script "VBTS_Send_SMS_Direct": <type 'exceptions.TypeError'> Message: unsupported operand type(s) for +: 'NoneType' and 'str' Exception: None

Fix would be to add this line in vars.xml and restart fs.
<X-PRE-PROCESS cmd="set" data="smqueue_profile=internal"/>

Tested on openbts dev-client using 44c7827.

Cloud: Postgres fails to initialize in DB VM when using non-en_US locale.

On both Ubuntu 14.04 and 16.04, the DB VM fails to complete its "Add all the packages needed for operation" playbook task if the host locale is not set to en_US. In my case, Ubuntu had automagically set my locale to es_ES based on my timezone during installation. The error reported is:

Adding user postgres to group ssl-cert

Creating config file /etc/logrotate.d/postgresql-common with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
 * No PostgreSQL clusters exist; see \"man pg_createcluster\"
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually with

  pg_createcluster 9.3 main --start

or a similar command (see 'man pg_createcluster').

This is because remote sessions using non-en_US locales fail to set the LANGUAGE environment variable properly. An article referencing the problem can be found here: https://www.digitalocean.com/community/questions/language-problem-on-ubuntu-14-04

After setting my locale back to en_US in all aspects (date, time, numeric, etc), the LANGUAGE environment variable was set properly again and postgres installed successfully.

A fix would be to hardcode the locale environment variables into the playbook. If that is an acceptable solution, I will prepare a PR. A workaround is having a proper LANGUAGE variable defined in your .bash_profile.

Last tested on 3e9b52b.

Facebook Community Cellular Manager CLOUD errors = [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user

Hello,

Following the instructions per Facebook's CommunityCellularManager for CLOUD, I am getting errors

I did a git checkout of the following Facebook Community Cellular Manager:

buntu@ubuntu:~/CommunityCellularManager$ sudo git log -n1
commit 9e5415d
Author: Steve Muir [email protected]
Date: Mon Dec 19 11:31:50 2016 -0800

Only ignore top-level static dir, not deeper ones

Summary:
The .gitignore rule was intended to only exclude cloud/static, not
cloud/endagaweb/static. The typo meant the static images and such weren't
pushed to GH. A subsequent push will restore them.

Reviewed By: shaddi

Differential Revision: D4341788

fbshipit-source-id: 4741c24327c9e6d3af485e2b6084d532c835a064

Here is what I'm running:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

I have the following installed:

ubuntu@ubuntu:~/CommunityCellularManager/cloud$ pip3 --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

ubuntu@ubuntu:~/CommunityCellularManager/cloud$ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

ubuntu@ubuntu:~/CommunityCellularManager/cloud$ vagrant --version
Vagrant 1.8.7

VBoxManage --version
4.3.36_Ubuntur105129

ansible --version
ansible 2.3.0

Here is the error message I receive:

**DEBUG ssh: Checking key permissions: /home/ubuntu/CommunityCellularManager/cloud/.vagrant/machines/db/virtualbox/private_key
INFO interface: detail: Running ansible-playbook...
INFO interface: detail: db: Running ansible-playbook...
db: Running ansible-playbook...
INFO interface: detail: PYTHONUNBUFFERED=1 ANSIBLE_NOCOLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --connection=ssh --timeout=30 --limit="db" --inventory-file=/home/ubuntu/CommunityCellularManager/cloud/.vagrant/provisioners/ansible/inventory -v ansible/postgres.dev.yml
PYTHONUNBUFFERED=1 ANSIBLE_NOCOLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --connection=ssh --timeout=30 --limit="db" --inventory-file=/home/ubuntu/CommunityCellularManager/cloud/.vagrant/provisioners/ansible/inventory -v ansible/postgres.dev.yml
INFO subprocess: Starting process: ["/usr/local/bin/ansible-playbook", "--connection=ssh", "--timeout=30", "--limit=db", "--inventory-file=/home/ubuntu/CommunityCellularManager/cloud/.vagrant/provisioners/ansible/inventory", "-v", "ansible/postgres.dev.yml"]
INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: Using /home/ubuntu/CommunityCellularManager/cloud/ansible.cfg as config file
INFO interface: detail: Using /home/ubuntu/CommunityCellularManager/cloud/ansible.cfg as config file

Using /home/ubuntu/CommunityCellularManager/cloud/ansible.cfg as config file
DEBUG subprocess: stderr: [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
make sure become_method is 'sudo' (default).
This feature will be removed in a
future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
INFO interface: detail: [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
make sure become_method is 'sudo' (default).
This feature will be removed in a
future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
make sure become_method is 'sudo' (default).
This feature will be removed in a
future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
DEBUG subprocess: stdout:
PLAY [db] **********************************************************************
INFO interface: detail:
PLAY [db] **********************************************************************

PLAY [db] **********************************************************************
DEBUG subprocess: stdout:
TASK [Gathering Facts] *********************************************************
INFO interface: detail:
TASK [Gathering Facts] *********************************************************

TASK [Gathering Facts] *********************************************************
DEBUG subprocess: stdout: fatal: [db]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
INFO interface: detail: fatal: [db]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}

fatal: [db]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
DEBUG subprocess: stdout: to retry, use: --limit @/home/ubuntu/CommunityCellularManager/cloud/ansible/postgres.dev.retry

PLAY RECAP *********************************************************************
db : ok=0 changed=0 unreachable=1 failed=0

INFO interface: detail: to retry, use: --limit @/home/ubuntu/CommunityCellularManager/cloud/ansible/postgres.dev.retry

PLAY RECAP *********************************************************************
db : ok=0 changed=0 unreachable=1 failed=0

to retry, use: --limit @/home/ubuntu/CommunityCellularManager/cloud/ansible/postgres.dev.retry

PLAY RECAP *********************************************************************
db : ok=0 changed=0 unreachable=1 failed=0

DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999
DEBUG subprocess: Exit status: 4
ERROR warden: Error occurred: Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.**

I've tried to add become/become_user to the Ansible.cfg file all with the same error.

Any assistance would be greatly appreciated!

Freeswitch will not build

[[email protected]:2222] out: checking for python distutils... yes
[[email protected]:2222] out: checking location of site-packages... /usr/lib/python3/dist-packages
[[email protected]:2222] out: checking python libdir... /usr/lib
[[email protected]:2222] out: checking for main in -lpython3.4... no
[[email protected]:2222] out: configure: error: python3.4 is unusable
[[email protected]:2222] out:

Omar reports this as the workaround

cd /usr/lib/i386-linux-gnu && sudo ln libpython3.4m.so libpython3.4.so && sudo ldconfig -i

Cloud: settings.py file missing in clean install

From a fresh clone of this repository and setup of the Vagrant cloud vms: In the web vm virtual environment, python can't find the settings.py file, so makemigrations in manage.py fails with the following message:
File "/home/vagrant/cloud/endagaweb/settings/base.py", line 16, in
from settings import *
ImportError: No module named settings

Setup was done by following instructions in cloud README.py. @matt-9-johnson was also able to reproduce this error.

Running Ubuntu 16.04, from commit 3dfb556

ansible playbook is removing *all* etage and endaga repos

Not sure why, but removing the

- name: Remove production Etage repo
  apt_repository: repo='deb http://repo.etagecom.io stable main' state=absent update_cache=no

from the yml causes the repos to continue to exist after the provisioning.

pip version too old in both osmocom and openbts

vagrant@endaga-client-osmocom:~$ pip3 -V
pip 1.5.6 from /usr/lib/python3/dist-packages (python 3.4)

This doesn't support download to we're seeing:
[[email protected]:2200] run: fpm -s python --verbose --python-pip pip3 --python-bin python3 --python-package-name-prefix python3 -t deb 'grpcio == 1.0.4'
[[email protected]:2200] out: Setting workdir {:workdir=>"/tmp", :level=>:info}
[[email protected]:2200] out: Trying to download {:package=>"grpcio == 1.0.4", :level=>:info}
[[email protected]:2200] out: ERROR: unknown command "download" {:level=>:info}
[[email protected]:2200] out: Process failed: pip3 failed (exit code 1). Full command was:["pip3", "download", "--no-clean", "--no-deps", "--no-binary", ":all:", "-i", "https://pypi.python.org/simple", "--build", "/tmp/package-python-build-e23798822ef12c8fec1c5ea67c7dab53349c81344f4ee9af8bbd42ef6564/grpcio == 1.0.4", "grpcio == 1.0.4"] {:level=>:error}
[[email protected]:2200] out:

Fixed by getting more recent pip installed. Trying to figure out how to do that correctly programmatically.

While depackaging endaga packages, getting the following error

Target: Integrate Openbts client with Cloud App in same machine
Pre-Condition:

  1. I have 2 shell command terminals in ubuntu
  2. In terminal 1 vagrant up services for cloud - This is working fine
  3. In terminal 2 vagrant up services for client
    I have followed the above steps as it mentioned. But failed while installing packages inside openbts vm of client.

vagrant@endaga-client-openbts:~/endaga-packages$ sudo dpkg -i *.deb

Installing new version of config file /etc/openvpn/etage-bundle.crt ...
0fced22e-3e46-4096-ba04-f59946e7fb17
ERROR: database "endaga" already exists
ERROR: role "endaga" already exists
NOTICE: relation "subscribers" already exists, skipping
CREATE TABLE
Restarted supervisord
Setting up python-openbts (0.1.15) ...
Errors were encountered while processing:
endaga-openbts_0.7.11_all.deb
freeswitch-conf-endaga_0.3.4_all.deb
vagrant@endaga-client-openbts:~/endaga-packages$

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.