Hi Federico,
Thanks for your replies.
When we are trying to install the openwisp server as discussed,we are using
below playbook.yml
- hosts: openwisp2
become: "{{ become | default('yes') }}"
roles:
- openwisp.openwisp2-dev
vars:
openwisp2_network_topology: false
openwisp2_firmware_upgrader: false
openwisp2_radius: false
openwisp2_monitoring: true # monitoring is enabled by default
openwisp2_controller_pip: "
https://github.com/ShreeshaRelysys/openwisp-controller/tarball/master"
openwisp2_notifications_pip: "
https://github.com/ShreeshaRelysys/openwisp-notification/tarball/master"
openwisp2_users_pip: "
https://github.com/ShreeshaRelysys/openwisp-users/tarball/master"
openwisp2_utils_pip: "
https://github.com/ShreeshaRelysys/openwisp-utils/tarball/master"
# openwisp2_django_x509_pip: "
https://github.com/ShreeshaRelysys/django-x509/tarball/master"
# openwisp2_django_loci_pip: "
https://github.com/ShreeshaRelysys/django-loci/tarball/master"
openwisp2_netjsonconfig_pip: "
https://github.com/ShreeshaRelysys/netjsonconfig/tarball/master"
openwisp2_network_topology_pip: "
https://github.com/ShreeshaRelysys/openwisp-network-topology/tarball/master"
openwisp2_firmware_upgrader_pip: "
https://github.com/ShreeshaRelysys/openwisp-firmware-upgrader/tarball/master
"
openwisp2_monitoring_pip: "
https://github.com/ShreeshaRelysys/openwisp-monitoring/tarball/master"
openwisp2_radius_pip: "
https://github.com/ShreeshaRelysys/openwisp-radius/tarball/master"
Below is the error we are getting
Error:
======
=============================================================
RUNNING HANDLER [openwisp.openwisp2-dev : reload supervisor]
**********************************************************************************
changed: [139.59.18.30]
RUNNING HANDLER [openwisp.openwisp2-dev : remove celerybeat schedule]
*************************************************************************
ok: [139.59.18.30]
TASK [openwisp.openwisp2-dev : migrate]
*******************************************************************************************************
[WARNING]: Unable to use /var/www/.ansible/tmp as temporary directory,
failing back to system: [Errno 13] Permission denied:
'/var/www/.ansible'
fatal: [139.59.18.30]: FAILED! => {"changed": false, "cmd": "./manage.py
migrate --noinput", "msg": "\n:stderr: Traceback (most recent call last):\n
File \"./manage.py\", line 10, in <module>\n
execute_from_command_line(sys.argv)\n File
\"/opt/openwisp2/env/lib/python3.7/site-packages/django/core/management/__init__.py\",
line 419, in execute_from_command_line\n utility.execute()\n File
\"/opt/openwisp2/env/lib/python3.7/site-packages/django/core/management/__init__.py\",
line 395, in execute\n django.setup()\n File
\"/opt/openwisp2/env/lib/python3.7/site-packages/django/__init__.py\", line
24, in setup\n apps.populate(settings.INSTALLED_APPS)\n File
\"/opt/openwisp2/env/lib/python3.7/site-packages/django/apps/registry.py\",
line 122, in populate\n app_config.ready()\n File
\"/opt/openwisp2/env/lib/python3.7/site-packages/openwisp_controller/config/apps.py\",
line 35, in ready\n self.__setmodels__()\n File
\"/opt/openwisp2/env/lib/python3.7/site-packages/openwisp_controller/config/apps.py\",
line 51, in __setmodels__\n 'subnet_division', 'SubnetDivisionRule'\n
File
\"/opt/openwisp2/env/lib/python3.7/site-packages/swapper/__init__.py\",
line 80, in load_model\n \"Could not find
{name}!\".format(name=join(app_label,
model))\ndjango.core.exceptions.ImproperlyConfigured: Could not find
subnet_division.SubnetDivisionRule!\n", "path":
"/opt/openwisp2/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin",
"syspath":
["/tmp/ansible_django_manage_payload_o7601lzv/ansible_django_manage_payload.zip",
"/usr/lib/python36.zip", "/usr/lib/python3.6",
"/usr/lib/python3.6/lib-dynload", "/usr/local/lib/python3.6/dist-packages",
"/usr/lib/python3/dist-packages"]}
PLAY RECAP
************************************************************************************************************************************
139.59.18.30 : ok=79 changed=26 unreachable=0 failed=1
skipped=45 rescued=0 ignored=2
Can you please help with this error?
Appreciate your constant support.
Thank you,
On Tuesday, January 25, 2022 at 5:46:51 PM UTC+5:30 f.capoano wrote:
> Use the variables as indicated, there's
> also openwisp2_extra_python_packages with which you can control other
> python packages if you need.
>
> F.
>
> On Mon, Jan 24, 2022 at 10:59 AM Harish Ss <[email protected]> wrote:
>
>> Hi Federico,
>>
>> Thank you for your reply,We are trying to clone all the repositories from
>> Openwisp Github account to our private Github account because we tested our
>> software with present repositories.So in future when we are installing
>> Openwisp-server we want it to be installed from our personal Github
>> account.As you suggested we tried adding our Github path to below variables.
>>
>> openwisp2_controller_pip: <Github_Path>
>> openwisp2_notifications_pip: <Github_Path>
>> openwisp2_users_pip: <Github_Path>
>> openwisp2_utils_pip: <Github_Path>
>> openwisp2_django_x509_pip: <Github_Path>
>> openwisp2_django_loci_pip: <Github_Path>
>> openwisp2_netjsonconfig_pip: <Github_Path>
>> openwisp2_network_topology_pip: <Github_Path>
>> openwisp2_firmware_upgrader_pip: <Github_Path>
>> openwisp2_monitoring_pip: <Github_Path>
>> openwisp2_radius_pip: <Github_Path>
>>
>>
>> My question is these changes are enough or we need to change more to
>> install complete openwisp-server from our Github repository.
>>
>> I observed that the requirement.txt file inside openwisp-controller
>> repository will point to your github repository we need to change those
>> things also are only above changes are enough to achieve this. Thank you.
>>
>>
>> On Wednesday, January 19, 2022 at 8:09:42 PM UTC+5:30 f.capoano wrote:
>>
>>> Look for "_pip" here: https://github.com/openwisp/ansible-openwisp2
>>> With those variables you can pin down the specific version you use.
>>>
>>> # you may replace the values of these variables with any URL
>>> # supported by pip (the python package installer)
>>> # use these to install forks, branches or development versions
>>> # WARNING: only do this if you know what you are doing; disruption
>>> # of service is very likely to occur during development
>>> # Custom OpenWISP 2 Python packages will be installed with
>>> "--no-deps"
>>> # parameter, be aware that you will have to add new dependencies if
>>> # necessary to "openwisp2_extra_python_packages" var
>>> openwisp2_controller_pip: false
>>> openwisp2_notifications_pip: false
>>> openwisp2_users_pip: false
>>> openwisp2_utils_pip: false
>>> openwisp2_django_x509_pip: false
>>> openwisp2_django_loci_pip: false
>>> openwisp2_netjsonconfig_pip: false
>>> openwisp2_network_topology_pip: false
>>> openwisp2_firmware_upgrader_pip: false
>>> openwisp2_monitoring_pip: false
>>> openwisp2_radius_pip: false
>>>
>>> Best regards
>>> Federico Capoano
>>>
>>> On Wed, Jan 19, 2022 at 10:14 AM Harish SS <[email protected]> wrote:
>>>
>>>> Hi Federico,
>>>>
>>>> When we are installing openwisp-server through ansible below versions
>>>> of package are getting installed.
>>>>
>>>> openwisp-controller - 0.9.0 alpha
>>>> openwisp-monitoring - 0.2.0 alpha
>>>> openwisp-notification - 0.3
>>>> openwisp-users - 0.6.0 alpha
>>>> openwisp-utils - 0.8.0 alpha
>>>>
>>>> we had tested our custom scripts with these version.So in future when
>>>> we install the openwisp-server using ansible we need above versions to be
>>>> installed.We don't want ansible-openwisp2 to install updated version of
>>>> all
>>>> these packages in future.
>>>>
>>>> Is their any method to achieve this.
>>>>
>>>>
>>>>
>>>>
>>>> On Wednesday, January 19, 2022 at 6:24:24 PM UTC+5:30 f.capoano wrote:
>>>>
>>>>> Hi Harish,
>>>>>
>>>>> I'm glad you were able to make it work!
>>>>> I think your question is not clear, please try to be more specific
>>>>> and use a bit more technical reference, what is that you need to do
>>>>> exactly
>>>>> and you aren't able to figure out right now?
>>>>>
>>>>> Best regards
>>>>> Federico Capoano
>>>>>
>>>>> On Wed, Jan 19, 2022 at 6:53 AM Harish SS <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> We are able to integrate openwisp server with our openwrt router
>>>>>> device.Since we have done some modification according to the requirement
>>>>>> like we are not using ModemManager on our router so we uninstalled the
>>>>>> ModemManager package and developed customer script to send the Cellular
>>>>>> Module information like Signal Strength, Signal Quality, Access
>>>>>> Technology
>>>>>> and signal to noise ratio to Openwisp server it's working fine for us.So
>>>>>> we
>>>>>> want to retain the present master branch version in the future Openwisp
>>>>>> Server installation for our device.
>>>>>> For installation of Openwisp Server we are using the ansible
>>>>>> method.Can you please help us how to install the same present master
>>>>>> branch
>>>>>> for our future installation.
>>>>>> Since we have tested lot on the present git master branch
>>>>>> version,so in future we don't want to install the upgraded openwisp
>>>>>> server
>>>>>> version for our router.
>>>>>> Can you please help us out in this regard.
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "OpenWISP" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web, visit
>>>>>> https://groups.google.com/d/msgid/openwisp/f9c11d2f-a280-4e04-843f-43b8ecb9420dn%40googlegroups.com
>>>>>>
>>>>>> <https://groups.google.com/d/msgid/openwisp/f9c11d2f-a280-4e04-843f-43b8ecb9420dn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "OpenWISP" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>> To view this discussion on the web, visit
>>>> https://groups.google.com/d/msgid/openwisp/fa62b941-10fe-4989-b583-a7d43755c71en%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/openwisp/fa62b941-10fe-4989-b583-a7d43755c71en%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>
> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/openwisp/9166430c-4502-47c9-aa0e-602810b29b92n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/openwisp/9166430c-4502-47c9-aa0e-602810b29b92n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/06eda142-ee83-4b5c-91db-ef27e5b07a21n%40googlegroups.com.