Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 11:07
    coveralls commented #727
  • 11:06
    coveralls commented #727
  • 10:40
    Aryamanz29 synchronize #727
  • 10:40

    Aryamanz29 on add-command-loading-overlay

    [change:ux] Added command loadi… (compare)

  • 10:36
    coveralls commented #727
  • 10:36
    coveralls commented #727
  • 10:34
    Aryamanz29 review_requested #727
  • 10:33
    Aryamanz29 edited #727
  • 10:32
    Aryamanz29 synchronize #727
  • 10:32

    Aryamanz29 on add-command-loading-overlay

    [change:ux] Added command loadi… (compare)

  • 10:20
    Aryamanz29 labeled #727
  • 10:20
    Aryamanz29 assigned #727
  • 10:20
    Aryamanz29 opened #727
  • 10:19

    Aryamanz29 on add-command-loading-overlay

    [change:ux] Added command loadi… (compare)

  • 10:13
    Aryamanz29 assigned #714
  • 07:40
    dependabot[bot] labeled #33
  • 07:40
    dependabot[bot] opened #33
  • 07:40

    dependabot[bot] on npm_and_yarn

    Bump express from 4.16.1 to 4.1… (compare)

  • Dec 06 21:17
    atb00ker commented #163
  • Dec 06 19:57

    nemesisdesign on master

    [feature] Added autocomplete fi… (compare)

Kaung Maung Maung
@kaungmaungmaung
Screen Shot 2022-11-30 at 4.34.14 PM.png
0xpluto
@desolated40
I have a few devices already registered and they are also connected to OpenVPN for mgmt. They work flawlessly, after remote rebooting they come right back up online.
0xpluto
@desolated40
This issue I am having is only with new devices trying to register
okraits
@okraits:matrix.org
[m]
@desolated40: How does the config of openwisp-config look like?
0xpluto
@desolated40
config controller 'http'
option url 'https://xxx'
option interval '180'
option management_interval '10'
option registration_interval '30'
option verify_ssl '0'
option management_interface 'tun0'
option shared_secret 'xxx'
This exact config worked before
okraits
@okraits:matrix.org
[m]
And some devices are already registered, right?
0xpluto
@desolated40
yes exactly
okraits
@okraits:matrix.org
[m]
And what did you change? Or what is the difference between the current config and the configs of the other devices?
Federico Capoano
@nemesisdesign
@desolated40 look at the log in /opt/openwisp2/log/openwisp2.log or something like that
it's an application exception
@kaungmaungmaung on what OS are you deploying?
0xpluto
@desolated40

Thanks for the input guys! i'm seeing this in the log

Traceback (most recent call last):
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, callback_args, **callback_kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view
return self.dispatch(request,
args, kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper
return bound_method(*args,
kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(args, **kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/openwisp_controller/config/controller/views.py", line 69, in dispatch
return super().dispatch(request,
args, kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch
return handler(request, *args,
kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/openwisp_controller/config/controller/views.py", line 404, in post
config.save()
File "/opt/openwisp2/env/lib/python3.8/site-packages/openwisp_controller/config/base/config.py", line 441, in save
result = super().save(args, **kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/models/base.py", line 806, in save
self.save_base(
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/models/base.py", line 857, in save_base
updated = self._save_table(
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/models/base.py", line 1000, in _save_table
results = self._do_insert(
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/models/base.py", line 1041, in _do_insert
return manager._insert(
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(
args, **kwargs)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/models/query.py", line 1434, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1621, in execute_sql
cursor.execute(sql, params)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/utils.py", line 91, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 477, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.IntegrityError: NOT NULL constraint failed: config_config.error_reason
[ERROR 2022-11-30 14:52:53,730] module: log, process: 1284, thread: 140425403787072
Internal Server Error: /controller/register/
Traceback (most recent call last):
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
File "/opt/openwisp2/env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 477, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.IntegrityError: NOT NULL constrai

This doesn't really say a lot for me
Screenshot 2022-11-30 at 15.58.47.png
Federico Capoano
@nemesisdesign
@desolated40 are you using the development version?
it looks so to me
it could either be a misconfiguration or a bug, but we are using the development version in a few deployments and we don't have this problem when devices register
what's the log on the openwrt side when this happens? eg: logread | grep openwisp
0xpluto
@desolated40
Im using the latest openwisp-controller version. Not the development version. I did try out the development version of Openwisp-monitoring, but that one is not working correctly so i reverted this

I'm getting this on the openwrt side:

root@openwrt-vm3:~# logread |grep openwisp
Wed Nov 30 16:15:31 2022 daemon.info openwisp: OpenWISP config agent stopping
Wed Nov 30 16:15:31 2022 daemon.info openwisp: OpenWISP config agent started
Wed Nov 30 16:15:31 2022 daemon.info openwisp: Registering device...
Wed Nov 30 16:15:31 2022 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header
Wed Nov 30 16:15:36 2022 daemon.info openwisp: Registering device...
Wed Nov 30 16:15:37 2022 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header
Wed Nov 30 16:15:42 2022 daemon.info openwisp: Registering device...
Wed Nov 30 16:15:42 2022 daemon.err openwisp: Invalid url: missing X-Openwisp-Controller header

Federico Capoano
@nemesisdesign
@desolated40 I am not sure what is going on
what version of openwisp-config is this?
Kaung Maung Maung
@kaungmaungmaung
Screen Shot 2022-12-01 at 10.44.50 AM.png
2 replies
What is the problem of this? I can't install openwisp2 on clean ubuntu 22.04.1LTS. Anyone please kindly help me to install openwisp2 for production usage.
Sergey
@sergorl
Dear friends, I face a problem: mass upgrade doesn't work, but all devices are online with stastus OK. How to fix it? here is the log:
Build:
standard v17
Status:
in progress
Completed:
0 out of 0
Success rate:
N/A
Failure rate:
N/A
Abortion rate:
N/A
Created:
1 Dec 2022, 10:08 a.m.
Modified:
1 Dec 2022, 10:08 a.m
1 reply
0xpluto
@desolated40

@desolated40 I am not sure what is going on

what version of openwisp-config is this?
These are the versions in use
openwisp-config 1.1.0a-1
openwisp-monitoring 0.1.1-1

0xpluto
@desolated40
Hi All, I'm trying to start from fresh on a new server. OpenWisp installs fine and works. However after following the OpenVPN Server automation guide I get a fault from the role nkakouros.easyrsa
Screenshot 2022-12-02 at 13.49.27.png

I just copied/pasted this playbook.yml

  • hosts: openvpn
    vars:

    EasyRSA

    easyrsa_generate_dh: true
    easyrsa_servers:

    - name: server

    easyrsa_clients: []
    easyrsa_pki_dir: /etc/easyrsa/pki

    OpenVPN

    openvpn_keydir: "{{ easyrsa_pki_dir }}"
    openvpn_clients: []
    openvpn_use_pam: false
    roles:

    • role: nkakouros.easyrsa
    • role: Stouts.openvpn
Can anybody point me into the right direction?
Federico Capoano
@nemesisdesign
@desolated40 ditch the ansible thing and just install manually
install the openvpn server, create a VPN server in openwisp as you need and copy the config on the system from there (you can download a package which contains everything)
docker-openwisp has a built in openvpn container with a working conf
0xpluto
@desolated40
Thanks for the info! I will look into it
Federico Capoano
@nemesisdesign
@tricksol the only other active check enbled by default is the config applied check, are you talking about the alerts?
4 replies
Anvesha19
@anveshajain19

Greetings everyone!
I have recently joined the community and I wanted to introduce myself. I am Anvesha Jain from India. I am currently pursuing my B.Tech in CS from SGSITS Indore. My interest is in learning Python, Web development, Graphics, and network management. I am currently learning data structures, and contributing to open source.
Here is my Linkedin profile: https://www.linkedin.com/in/anvesha-jain-25413321b/.

I believe in the power of social capital to improve my productivity, expand my professional options, and raise my overall quality of life! I really want to contribute here, Please guide me.

Anvesha19
@anveshajain19
Thank you @nemesisdesign !
clutch2sft
@clutch2sft
Screenshot from 2022-12-04 06-26-47.png
Screenshot from 2022-12-04 06-29-41.png
Hi ow team - I'm struggling to understand what causes the credential section to be green. I alway set the management interface to wg0 and you can see in the first image that is the case on this device. Still the reason for failure on the Credentials tab is because the OW is trying to connect to the public IP and not the wireguard ip. On other devices this just shows Is working: green checkmark. Yes all devices are configured the same for these settings.
Vihar214
@Vihar214
Hello Everyone, My name is Vihar Patel.
I am new to open-source contribution but I have a good understanding of javascript, HTML, and CSS apart from that I am also very good at C and C++. I am interested in learning python and Django. I would love to contribute to this organization, Please guide me.
Aryaman
@Aryamanz29
Hello @Vihar214 👋🏻 Welcome to the OpenWISP community! Here are some resources that will help you get started:
Anurag Nayak
@sn0w1729:matrix.org
[m]
@Aryamanz29: So how should I begin my contribution to Openwisp from a beginner's perspective? And where should I clone the openwisp repo on a linux vm or windows?
1 reply
Aryaman
@Aryamanz29
@sn0w1729:matrix.org After reading contributing guidelines, I recommend to you first try installing OpenWISP on your system and play with it for that please refer quick start section of OpenWISP docs: https://openwisp.io/docs/user/quickstart.html, It is better to use Debian based Linux distros for development.
Vihar214
@Vihar214
Thanks for your support @Aryamanz29.
1 reply
Federico Capoano
@nemesisdesign
@clutch2sft openwisp is trying to reach the public IP of the device, we have addressed this in the development version which will be shipped in the next release