Giter Site home page Giter Site logo

d3vilh / raspberry-gateway Goto Github PK

View Code? Open in Web Editor NEW
104.0 10.0 13.0 37.43 MB

Simple yet powerful home gateway environment with Pi-Hole +Unbound, VPN, Torrent client and Internet monitoring, all managed by Portainer.

Home Page: https://github.com/d3vilh/raspberry-gateway

License: Apache License 2.0

Dockerfile 0.85% Shell 14.31% Jinja 72.39% C++ 12.44%
raspberry-pi openvpn-server openvpn openvpn-ui portainer vpn docker pi-hole prometheus grafana-dashboard

raspberry-gateway's People

Contributors

anbruzga avatar d3vilh avatar fellowape 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raspberry-gateway's Issues

Stuck installing requirements

When I run the command to install the requirements ansible-galaxy collection install -r requirements.yml -vvv it just hangs for a very long time, without showing almost any output and not installing anything, this has been let to run for over 25 minutes without any additional changes.

ansible-galaxy [core 2.14.3]
  config file = /home/meydey/raspberry-gateway/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
Using /home/meydey/raspberry-gateway/ansible.cfg as config file
Reading requirement file at '/home/meydey/raspberry-gateway/requirements.yml'
Starting galaxy collection install process
Process install dependency map
Opened /root/.ansible/galaxy_token

RPI has a good internet connection and should work correctly.

Wrong task name for raspi-monitoring in tasks/handlers.yml

During the scratch install following errors appears:

ERROR! The requested handler 'Restart raspi-monitoring' was not found in either the main handlers list nor in the listening handlers list
ERROR! The requested handler 'Restart Raspi-monitoring' was not found in either the main handlers list nor in the listening handlers list

Will there be Raspberry Pi5 support?

Hi,

I am not sure if it is me alone, but I am having Segmentation fault on Raspberry Pi5 OS 64 lite.

tony@raspberrypi:~/raspberry-gateway $ valgrind ./webinstall
==1642== Memcheck, a memory error detector
==1642== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==1642== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==1642== Command: ./webinstall
==1642==
==1642==
==1642== Process terminating with default action of signal 11 (SIGSEGV)
==1642== Bad permissions for mapped region at address 0x2714BC
==1642== at 0x2714BC: ??? (in /home/tony/raspberry-gateway/webinstall)
==1642==
==1642== HEAP SUMMARY:
==1642== in use at exit: 0 bytes in 0 blocks
==1642== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==1642==
==1642== All heap blocks were freed -- no leaks are possible
==1642==
==1642== For lists of detected and suppressed errors, rerun with: -s
==1642== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Segmentation fault

From the context I assume Rasberry Pi5 might be not supported, is that right? If so, I wonder if there are any plans to support it?

Thanks all

Can't install

` ansible-playbook main.yml
[WARNING]: Could not match supplied host pattern, ignoring: raspberry-gateway

PLAY [raspberry-gateway] *****************************************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP ********************************************************************************************************************************************************`

./webinstall "segmentation fault"

Hi.
I'm trying to run
./webinstall
but unfortunately I'm getting segmentation fault.
If I run
strace ./webinstall
I get

execve("./webinstall", ["./webinstall"], 0x7fffe50156f0 /* 48 vars */) = -1 EINVAL (Invalid argument)
+++ killed by SIGSEGV +++
Segmentation fault

Thanks!

Can't run webinstall

Hello ๐Ÿ‘‹

I want to install raspberry gateway on my pi4 with dietpi.
Everything works until I want to start the webinstall script:

Screenshot_20240809-093102

Cannot install Portainer, permission errors

`
pi@terropi:~/raspberry-gateway $ ./webinstall
2024/07/26 00:47:58 Welcome! The web interface will guide you on installation process.
Installation logs: webinstall.log
2024/07/26 00:47:58 Starting web server on http://192.168.86.33:8088
2024/07/26 00:48:07 http: superfluous response.WriteHeader call from main.editConfig (main.go:397)
[DEPRECATION WARNING]: community.docker.docker_compose has been deprecated.
This module uses docker-compose v1, which is End of Life since July 2022.
Please migrate to community.docker.docker_compose_v2. This feature will be
removed from community.docker in version 4.0.0. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [raspberry_gateway] *******************************************************

TASK [Gathering Facts] *********************************************************
ok: [raspberry_gateway]

TASK [Load configuration (with defaults from example file)] ********************
ok: [raspberry_gateway] => (item=example.config.yml)
ok: [raspberry_gateway] => (item=config.yml)
ok: [raspberry_gateway] => (item=advanced.config.yml)

TASK [Ensure apt cache is up to date] ******************************************
changed: [raspberry_gateway]

TASK [Ensure pacman cache is up to date] ***************************************
skipping: [raspberry_gateway]

TASK [Check if Docker is already present.] *************************************
ok: [raspberry_gateway]

TASK [Download Docker install convenience script.] *****************************
changed: [raspberry_gateway]

TASK [Run Docker install convenience script.] **********************************
changed: [raspberry_gateway]

TASK [Ensure Docker is started.] ***********************************************
ok: [raspberry_gateway]

TASK [Ensure dependencies are installed (Debian).] *****************************
changed: [raspberry_gateway]

TASK [Ensure dependencies are installed (Archlinux).] **************************
skipping: [raspberry_gateway]

TASK [Install Docker Compose with apt.] ****************************************
changed: [raspberry_gateway]

TASK [Ensure pi user is added to the docker group.] ****************************
[WARNING]: Reset is not implemented for this connection
changed: [raspberry_gateway]

TASK [Reset connection so docker group is picked up.] **************************

TASK [Create Portainer folder on Pi.] ******************************************
changed: [raspberry_gateway]

TASK [Pull latest Portainer Docker image] **************************************
fatal: [raspberry_gateway]: FAILED! => {"changed": false, "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))"}

PLAY RECAP *********************************************************************
raspberry_gateway : ok=11 changed=7 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0

2024/07/26 00:51:25 exit status 2
`

This has been the result from various options of the ansible user. From pi, to custom users.

OpenVPN Server version tag

Hi,

Thank you for tall the hard work (you closed the issue on the UI thread before I was able to thank you for it :) )
Can you tag the OpenVPN image with the server's version, please?

Thank you again for all this work you're putting into these projects

Install failure - help please

Hi folks - get this error when installing from the web interface. Any help appreciated please!

TASK [Install Docker Compose using Pip.] ***************************************
fatal: [raspberry_gateway]: FAILED! => {"changed": false, "cmd": ["/usr/bin/pip3", "install", "docker-compose"], "msg": "stdout: Collecting docker-compose\n Using cached docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)\nCollecting PyYAML<6,>=3.10\n Using cached PyYAML-5.4.1.tar.gz (175 kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'error'\n\n:stderr: error: subprocess-exited-with-error\n \n ร— Getting requirements to build wheel did not run successfully.\n โ”‚ exit code: 1\n โ•ฐโ”€> [68 lines of output]\n /tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg\n !!\n \n ********************************************************************************\n The license_file parameter is deprecated, use license_files instead.\n \n This deprecation is overdue, please update your project and remove deprecated\n calls to avoid build errors in the future.\n \n See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.\n ********************************************************************************\n \n !!\n parsed = self.parsers.get(option_name, lambda x: x)(value)\n running egg_info\n writing lib3/PyYAML.egg-info/PKG-INFO\n writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt\n writing top-level names to lib3/PyYAML.egg-info/top_level.txt\n Traceback (most recent call last):\n File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in \n main()\n File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main\n json_out['return_val'] = hook(**hook_input['kwargs'])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel\n return hook(config_settings)\n ^^^^^^^^^^^^^^^^^^^^^\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel\n return self._get_build_requires(config_settings, requirements=['wheel'])\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 325, in _get_build_requires\n self.run_setup()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 341, in run_setup\n exec(code, locals())\n File "", line 271, in \n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/init.py", line 103, in setup\n return distutils.core.setup(**attrs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 185, in setup\n
return run_commands(dist)\n ^^^^^^^^^^^^^^^^^^\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands\n dist.run_commands()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands\n self.run_command(cmd)\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 989, in run_command\n super().run_command(command)\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command\n cmd_obj.run()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 318, in run\n self.find_sources()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 326, in find_sources\n mm.run()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 548, in run\n self.add_defaults()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 586, in add_defaults\n sdist.add_defaults(self)\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/command/sdist.py", line 113, in add_defaults\n super().add_defaults()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults\n self._add_defaults_ext()\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext\n self.filelist.extend(build_ext.get_source_files())\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "", line 201, in get_source_files\n File "/tmp/pip-build-env-8uxvup47/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 107, in getattr\n raise AttributeError(attr)\n AttributeError: cython_sources\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: subprocess-exited-with-error\n\nร— Getting requirements to build wheel did not run successfully.\nโ”‚ exit code: 1\nโ•ฐโ”€> See above for output.\n\nnote: This error originates from a subprocess, and is likely not a problem with pip.\n"}

PLAY RECAP *********************************************************************
raspberry_gateway : ok=6 changed=0 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0

2023/11/03 10:09:54 exit status 2

Unbound DNS as a feature request!

Ahoj, sousede!
We rescently talk and you promised to include Unbound DNS to pair with Pi-Hole and TechDNS.
Assume this as an official feature request.

install issue

hi, I am having to use the cli install and once it starts to install any of the addons like portainer or any of the dns or other options I get

Fatal: [raspberry_gateway] FAILED! => {"changed"; false, "msg": "error connectiong: error while fetching servrer API version: {Connection aborted.", PermissionError{13, 'permissiondenied'}}"}

any idea how I can resolve this issue?

WireGuard?

Can you add WireGuard support and allow disabling of starlink, co2 etc please?

Install Error.

TASK [Synchronize OpenVPN Server directory.] ***********************************
fatal: [raspberry_gateway]: FAILED! => {"changed": false, "msg": "Failed to find required executable "rsync" in pat hs: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}

I Try to install this on a ARM Server From Netcup.

These are AARCH64 kernels

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.