Update: After re-setup with the version 'edge' it runs smoothly. Thank you 
very much!

Hagen Muench schrieb am Freitag, 1. April 2022 um 19:55:38 UTC+2:

> Update: found one .env in the folder where I have started the setup.sh and 
> one other in /opt/openwisp/docker-openwisp.
> After purging all containers and images and rerun the setup it looks 
> better. However, the ngnix does not come up:
>             Name                          Command               State     
>                          Ports                          
>
>
> ----------------------------------------------------------------------------------------------------------------------------------
> docker-openwisp_api_1          bash init_command.sh             Up       
> 8001/tcp                                                 
> docker-openwisp_celery_1       bash init_command.sh             Up       
> 8000/tcp                                                 
> docker-openwisp_celerybeat_1   bash init_command.sh             Up       
> 8000/tcp                                                 
> docker-openwisp_dashboard_1    bash init_command.sh             Up       
> 8000/tcp                                                 
> docker-openwisp_freeradius_1   /docker-entrypoint.sh sh i ...   Up       
> 0.0.0.0:1812->1812/udp,:::1812->1812/udp,                
>                                                                         
>  0.0.0.0:1813->1813/udp,:::1813->1813/udp                 
> docker-openwisp_influxdb_1     /entrypoint.sh influxd           Up       
> 8086/tcp                                                 
> docker-openwisp_nginx_1        /docker-entrypoint.sh sh i ...   Exit 1     
>                                                        
>
> docker-openwisp_openvpn_1      sh init_command.sh               Up       
> 1194/tcp, 0.0.0.0:1194->1194/udp,:::1194->1194/udp       
> docker-openwisp_postfix_1      sh init_command.sh               Up       
> 25/tcp                                                   
> docker-openwisp_postgres_1     docker-entrypoint.sh postgres    Up       
> 5432/tcp                                                 
> docker-openwisp_redis_1        docker-entrypoint.sh redis ...   Up       
> 6379/tcp                                                 
> docker-openwisp_websocket_1    supervisord --nodaemon --c ...   Up       
> 8003/tcp
>
> from 'docker-compose logs -f':
> nginx_1       | writing new private key to '/etc/letsencrypt/live/
> radius.wifiction.de/privkey.pem'
> nginx_1       | -----
> nginx_1       | 2022/04/01 15:11:09 [emerg] 43#43: host not found in 
> upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71
> nginx_1       | nginx: [emerg] host not found in upstream "radius" in 
> /etc/nginx/conf.d/radius.https.conf:71
> nginx_1       | 2022/04/01 15:27:23 [emerg] 40#40: host not found in 
> upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71
> nginx_1       | nginx: [emerg] host not found in upstream "radius" in 
> /etc/nginx/conf.d/radius.https.conf:71
> nginx_1       | 2022/04/01 17:30:18 [emerg] 40#40: host not found in 
> upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71
> nginx_1       | nginx: [emerg] host not found in upstream "radius" in 
> /etc/nginx/conf.d/radius.https.conf:71
> nginx_1       | 2022/04/01 17:32:17 [emerg] 40#40: host not found in 
> upstream "radius" in /etc/nginx/conf.d/radius.https.conf:71
> nginx_1       | nginx: [emerg] host not found in upstream "radius" in 
> /etc/nginx/conf.d/radius.https.conf:7
>
> Hagen Muench schrieb am Freitag, 1. April 2022 um 09:52:46 UTC+2:
>
>> Hi Ajay,
>>
>> finally I could welcome covid in my life and I was out of order the past 
>> week.
>>
>> The output of 'docker-copose ps':
>> /opt/openwisp/docker-openwisp# docker-compose ps
>>             Name                          Command               State     
>>                                     Ports                                   
>>     
>>
>> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>> docker-openwisp_api_1          bash init_command.sh             Up     
>>  8001/tcp                                                                   
>>        
>> docker-openwisp_celery_1       bash init_command.sh             Up     
>>  8000/tcp                                                                   
>>        
>> docker-openwisp_celerybeat_1   bash init_command.sh             Up     
>>  8000/tcp                                                                   
>>        
>> docker-openwisp_dashboard_1    bash init_command.sh             Up     
>>  8000/tcp                                                                   
>>        
>> docker-openwisp_freeradius_1   /docker-entrypoint.sh sh i ...   Up     
>>  0.0.0.0:1812->1812/udp,:::1812->1812/udp, 
>> 0.0.0.0:1813->1813/udp,:::1813->1813/udp
>> docker-openwisp_influxdb_1     /entrypoint.sh influxd           Up     
>>  8086/tcp                                                                   
>>        
>> docker-openwisp_nginx_1        /docker-entrypoint.sh sh i ...   Up     
>>  0.0.0.0:443->443/tcp,:::443->443/tcp, 0.0.0.0:80->80/tcp,:::80->80/tcp     
>>        
>> docker-openwisp_openvpn_1      sh init_command.sh               Up     
>>  1194/tcp, 0.0.0.0:1194->1194/udp,:::1194->1194/udp                         
>>        
>> docker-openwisp_postfix_1      sh init_command.sh               Up     
>>  25/tcp                                                                     
>>        
>> docker-openwisp_postgres_1     docker-entrypoint.sh postgres    Up     
>>  5432/tcp                                                                   
>>        
>> docker-openwisp_radius_1       bash init_command.sh             Up     
>>  8002/tcp                                                                   
>>        
>> docker-openwisp_redis_1        docker-entrypoint.sh redis ...   Up     
>>  6379/tcp                                                                   
>>        
>> docker-openwisp_websocket_1    supervisord --nodaemon --c ...   Up     
>>  8003/tcp
>>
>> There are only two kind of messeges from 'docker-compose logs -f' that 
>> repeats every 3 seconds:
>>
>> nginx:
>> nnginx_1       | 2022/04/01 13:16:35 [error] 41#41: *96288 connect() 
>> failed (111: Connection refused) while connecting to upstream, client: 
>> 172.18.0.6, server: dashboard.internal, request: "GET /admin/login/ 
>> HTTP/1.1", upstream: "uwsgi://172.18.0.7:8000", host: 
>> "dashboard.internal"
>> nginx_1       | [64d7688a6f15] - - [01/Apr/2022:13:16:35 +0530] "GET 
>> /admin/login/ HTTP/1.1" status: 502 157 "-" "Wget" http_x_forwarded_for: - 
>> - remote_addr: 172.18.0.6 - realip_remote_addr: 172.18.0.6 - real_ip: 
>> 172.18.0.6
>>
>>
>> postgres:
>> postgres_1    | 2022-04-01 09:46:40.309 CEST [206445] DETAIL:  Role 
>> "PIUDXmR^-nrTZCI+pZ[^ZnCvVD[J#lYhQYhf&BYhxt/0eZVNIZ" does not exist.
>> postgres_1    |         Connection matched pg_hba.conf line 95: "host all 
>> all all md5"
>> postgres_1    | 2022-04-01 09:46:40.309 CEST [206446] FATAL:  password 
>> authentication failed for user 
>> "PIUDXmR^-nrTZCI+pZ[^ZnCvVD[J#lYhQYhf&BYhxt/0eZVNIZ"
>>
>> Thank you again.
>> Hagen
>> ajay...@gmail.com schrieb am Sonntag, 20. März 2022 um 12:44:39 UTC+1:
>>
>>> Hi Hagen,
>>>
>>> From the logs I can see that there was no problem starting the 
>>> containers.
>>>
>>> Can you please share the output of:
>>> 1. `docker-compose ps`
>>> 2. `docker-compose logs -f`
>>>
>>> (Please remember to remove any sensitive data like IP address, this is a 
>>> public channel!)
>>>
>>>
>>> Best,
>>> A.
>>> On Friday, March 18, 2022 at 10:12:14 PM UTC+5:30 hagen.mu...@gmail.com 
>>> wrote:
>>>
>>>> Hi Ajay,
>>>>
>>>> many thanks for your quick response.
>>>>
>>>> I followed your instructions. Unfortunately, now I am getting a 502 
>>>> from nginx. I have checked the logs of the nginx container, but there was 
>>>> exactly nothing inside. I have repeated the procedure several times with 
>>>> and without prepared .env file, always the same result.
>>>>
>>>> Below the autoinstall.log. If you need any other log, let me now which. 
>>>> Thank again.
>>>>
>>>> Take care,
>>>> Hagen
>>>>
>>>>
>>>>
>>>> /opt/openwisp$ cat autoinstall.log 
>>>>
>>>> Checking your system capabilities...
>>>>
>>>> WARNING: apt does not have a stable CLI interface. Use with caution in 
>>>> scripts.
>>>>
>>>> Hit:1 http://deb.debian.org/debian bullseye InRelease
>>>> Hit:2 http://security.debian.org/debian-security bullseye-security 
>>>> InRelease
>>>> Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
>>>> Get:4 https://download.docker.com/linux/debian bullseye InRelease 
>>>> [43.3 kB]
>>>> Hit:5 http://ppa.launchpad.net/ansible/ansible/ubuntu focal InRelease
>>>> Hit:6 http://deb.debian.org/debian sid InRelease
>>>> Hit:7 https://packages.microsoft.com/repos/ms-teams stable InRelease
>>>> Hit:8 https://packages.microsoft.com/repos/vscode stable InRelease
>>>> Fetched 43.3 kB in 1s (56.0 kB/s)
>>>> Reading package lists...
>>>> Building dependency tree...
>>>> Reading state information...
>>>> 1021 packages can be upgraded. Run 'apt list --upgradable' to see them.
>>>>
>>>> WARNING: apt does not have a stable CLI interface. Use with caution in 
>>>> scripts.
>>>>
>>>> lsb-release is already the newest version (11.1.0).
>>>> The following packages were automatically installed and are no longer 
>>>> required:
>>>>   g++-10 libstdc++-10-dev
>>>> Use 'sudo apt autoremove' to remove them.
>>>> 0 upgraded, 0 newly installed, 0 to remove and 1021 not upgraded.
>>>> Setting up dependencies...
>>>>
>>>> WARNING: apt does not have a stable CLI interface. Use with caution in 
>>>> scripts.
>>>>
>>>> Reading package lists...
>>>> Building dependency tree...
>>>> Reading state information...
>>>> gawk is already the newest version (1:5.1.0-1).
>>>> make is already the newest version (4.3-4.1).
>>>> gcc is already the newest version (4:11.2.0-2).
>>>> git is already the newest version (1:2.35.1-1).
>>>> libffi-dev is already the newest version (3.4.2-4).
>>>> libssl-dev is already the newest version (1.1.1n-1).
>>>> python3-pip is already the newest version (22.0.2+dfsg-1).
>>>> python3 is already the newest version (3.9.8-1).
>>>> python3-dev is already the newest version (3.9.8-1).
>>>> The following packages were automatically installed and are no longer 
>>>> required:
>>>>   g++-10 libstdc++-10-dev
>>>> Use 'sudo apt autoremove' to remove them.
>>>> 0 upgraded, 0 newly installed, 0 to remove and 1021 not upgraded.
>>>> Requirement already satisfied: pip in 
>>>> /usr/local/lib/python3.9/dist-packages (22.0.4)
>>>> WARNING: Running pip as the 'root' user can result in broken 
>>>> permissions and conflicting behaviour with the system package manager. It 
>>>> is recommended to use a virtual environment instead: 
>>>> https://pip.pypa.io/warnings/venv
>>>> Setting up docker...
>>>> Setting up docker-compose...
>>>> Requirement already satisfied: docker-compose in 
>>>> /usr/lib/python3/dist-packages (1.29.2)
>>>> WARNING: Running pip as the 'root' user can result in broken 
>>>> permissions and conflicting behaviour with the system package manager. It 
>>>> is recommended to use a virtual environment instead: 
>>>> https://pip.pypa.io/warnings/venv
>>>> Downloading docker-openwisp...
>>>> Cloning into '/opt/openwisp/docker-openwisp'...
>>>> Configuring docker-openwisp...
>>>> Starting images docker-openwisp (this will take a while)...
>>>> make: Entering directory '/opt/openwisp/docker-openwisp'
>>>>
>>>> Downloading OpenWISP images...
>>>> Starting Services...
>>>> 11-alpine: Pulling from mdillon/postgis
>>>> Digest: 
>>>> sha256:c9eca7d32159529fd191239d74f2d11cb5dac1342eab426b79493bf47f933c9b
>>>> Status: Downloaded newer image for mdillon/postgis:11-alpine
>>>> 1.8-alpine: Pulling from library/influxdb
>>>> Digest: 
>>>> sha256:4516e1ecf804f7272f3edf5bb5b924d3d3f746fb6c90613bc1857bb18f734a61
>>>> Status: Downloaded newer image for influxdb:1.8-alpine
>>>> alpine: Pulling from library/redis
>>>> Digest: 
>>>> sha256:3566a01c4686e32d1e6bbf798075224c2a624cf019b00b305866c82263234ef8
>>>> Status: Downloaded newer image for redis:alpine
>>>> Creating docker-openwisp_postgres_1 ... 
>>>> Creating docker-openwisp_redis_1    ... 
>>>> Creating docker-openwisp_postfix_1  ... 
>>>> Creating docker-openwisp_influxdb_1 ... 
>>>> Creating docker-openwisp_redis_1    ... done
>>>> Creating docker-openwisp_influxdb_1 ... done
>>>> Creating docker-openwisp_postgres_1 ... done
>>>> Creating docker-openwisp_postfix_1  ... done
>>>> Creating docker-openwisp_openvpn_1  ... 
>>>> Creating docker-openwisp_dashboard_1 ... 
>>>> Creating docker-openwisp_openvpn_1   ... done
>>>> Creating docker-openwisp_dashboard_1 ... done
>>>> Creating docker-openwisp_radius_1    ... 
>>>> Creating docker-openwisp_websocket_1 ... 
>>>> Creating docker-openwisp_celerybeat_1 ... 
>>>> Creating docker-openwisp_api_1        ... 
>>>> Creating docker-openwisp_celery_1     ... 
>>>> Creating docker-openwisp_websocket_1  ... done
>>>> Creating docker-openwisp_celery_1     ... done
>>>> Creating docker-openwisp_api_1        ... done
>>>> Creating docker-openwisp_radius_1     ... done
>>>> Creating docker-openwisp_celerybeat_1 ... done
>>>> Creating docker-openwisp_freeradius_1 ... 
>>>> Creating docker-openwisp_nginx_1      ... 
>>>> Creating docker-openwisp_nginx_1      ... done
>>>> Creating docker-openwisp_freeradius_1 ... done
>>>> Success: OpenWISP should be available at your dashboard domain in 2 
>>>> minutes.
>>>> make: Leaving directory '/opt/openwisp/docker-openwisp' 
>>>>
>>>> ajay...@gmail.com schrieb am Freitag, 18. März 2022 um 12:46:31 UTC+1:
>>>>
>>>>> Oops, small correction:
>>>>>
>>>>> ```
>>>>> # go to your cloned repo
>>>>> $ cd docker-openwisp
>>>>> $ make stop
>>>>>
>>>>> # Outside the cloned repo
>>>>> $ curl -L https://bit.do/auto-install -o setup.sh
>>>>> $ sudo bash setup.sh
>>>>> ```
>>>>>
>>>>>
>>>>> Best,
>>>>> Ajay
>>>>>
>>>>> On Friday, March 18, 2022 at 5:14:08 PM UTC+5:30 Ajay Tripathi wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> The latest images are a little old and I have not tested them in a 
>>>>>> while, it's a weird issue though.
>>>>>> Can you please try to use the edge images using autoinstall script 
>>>>>> (because that was tested by someone just last week)?
>>>>>>
>>>>>> ```
>>>>>> $ cd docker-openwisp # go to your cloned repo
>>>>>> $ make stop
>>>>>> $ curl -L https://bit.do/auto-install -o setup.
>>>>>> $ sh sudo bash setup.sh
>>>>>> ```
>>>>>>
>>>>>> When it asks for version (default is latest), type edge instead.
>>>>>> If that doesn't work, please share your logs with me and I'll help 
>>>>>> with it! 
>>>>>>
>>>>>> Best,
>>>>>> Ajay Tripathi
>>>>>> On Thursday, March 17, 2022 at 11:58:14 PM UTC+5:30 
>>>>>> hagen.mu...@gmail.com wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am evaluating the docker open-wisp and followed the instructions 
>>>>>>> on quick setup for docker-compose 
>>>>>>> <https://github.com/openwisp/docker-openwisp/blob/master/docs/QUICK_SETUP.md>
>>>>>>>  
>>>>>>> on my local machine. I have modified the .env file and replaced the 
>>>>>>> default 
>>>>>>> domains with my own that are not yet in any DNS
>>>>>>> ---snip---
>>>>>>> DASHBOARD_DOMAIN=dashboard.wifiction.de
>>>>>>> API_DOMAIN=api.wifiction.de
>>>>>>> RADIUS_DOMAIN=radius.wifiction.de
>>>>>>> VPN_DOMAIN=openvpn.wifiction.de
>>>>>>> ---snap---
>>>>>>> and added the hosts to my /etc/hosts file:
>>>>>>>
>>>>>>> $ cat /etc/hosts
>>>>>>> 127.0.0.1       localhost
>>>>>>> 127.0.1.1       debhm01 dashboard.wifiction.de api.wifiction.de 
>>>>>>> radius.wifiction.de openvpn.wifiction.de
>>>>>>>
>>>>>>> The make start passed well:
>>>>>>> $ sudo make start
>>>>>>> Downloading OpenWISP images...
>>>>>>> Starting Services...
>>>>>>> Creating docker-openwisp_postgres_1 ... done
>>>>>>> Creating docker-openwisp_redis_1    ... done
>>>>>>> Creating docker-openwisp_postfix_1  ... done
>>>>>>> Creating docker-openwisp_influxdb_1 ... done
>>>>>>> Creating docker-openwisp_dashboard_1 ... done
>>>>>>> Creating docker-openwisp_openvpn_1    ... done
>>>>>>> Creating docker-openwisp_websocket_1  ... done
>>>>>>> Creating docker-openwisp_api_1        ... done
>>>>>>> Creating docker-openwisp_celery_1     ... done
>>>>>>> Creating docker-openwisp_celerybeat_1 ... done
>>>>>>> Creating docker-openwisp_radius_1     ... done
>>>>>>> Creating docker-openwisp_nginx_1      ... done
>>>>>>> Creating docker-openwisp_freeradius_1 ... done
>>>>>>> *Success: OpenWISP should be available at your dashboard domain in 2 
>>>>>>> minutes.*
>>>>>>>
>>>>>>> When I want to open the dashbord the page is loading and I even can 
>>>>>>> login. But not any css or java script can be found (all get a 404), e.g.
>>>>>>> https://dashboard.wifiction.de/static/admin/css/base.css  --> 404
>>>>>>>
>>>>>>> https://dashboard.wifiction.de/static/openwisp-notifications/js/notifications.js
>>>>>>>  
>>>>>>> --> 404
>>>>>>>
>>>>>>> The html looks like this:
>>>>>>> <!DOCTYPE html>
>>>>>>> <html lang="en-gb" >
>>>>>>> <head>
>>>>>>> <title>Network administration | OpenWISP Admin</title>
>>>>>>> <link rel="stylesheet" type="text/css" 
>>>>>>> href="/static/admin/css/base.css">
>>>>>>> <link rel="stylesheet" type="text/css" 
>>>>>>> href="/static/admin/css/openwisp.css" />
>>>>>>>  <link rel="icon" type="image/x-icon" 
>>>>>>> href="/static/ui/openwisp/images/favicon.png" />
>>>>>>> ... 
>>>>>>> <script type="text/javascript" 
>>>>>>> src="/static/admin/js/vendor/jquery/jquery.min.js"></script>
>>>>>>> <script type="text/javascript" 
>>>>>>> src="/static/admin/js/jquery.init.js"></script>
>>>>>>> ...
>>>>>>>
>>>>>>> When I start a bash in the dashboard container I can see, that all 
>>>>>>> the files exist:
>>>>>>> $ sudo docker exec -it docker-openwisp_dashboard_1 bash
>>>>>>> root@96b77f53366f:/opt/openwisp# ls ./static/admin/css/
>>>>>>> autocomplete.css  changelists.css  firmware-upgrader.css  forms.css 
>>>>>>>  nav_sidebar.css  responsive.css      rtl.css  widgets.css
>>>>>>> base.css          dashboard.css    fonts.css              login.css 
>>>>>>>  openwisp.css     responsive_rtl.css  vendor
>>>>>>> root@96b77f53366f:/opt/openwisp# ls ./static/admin/js/
>>>>>>> SelectBox.js      actions.min.js   calendar.js     collapse.js     
>>>>>>>  inlines.js      menu.js            prepopulate.js       urlify.js
>>>>>>> SelectFilter2.js  admin            cancel.js       collapse.min.js 
>>>>>>>  inlines.min.js  nav_sidebar.js     prepopulate.min.js   vendor
>>>>>>> actions.js        autocomplete.js  change_form.js  core.js         
>>>>>>>  jquery.init.js  popup_response.js  prepopulate_init.js
>>>>>>> root@96b77f53366f:/opt/openwisp#
>>>>>>>
>>>>>>> Did anybody met the same problem? Any idea why the files are not 
>>>>>>> found? Thank you!
>>>>>>>
>>>>>>> Best regards.
>>>>>>>
>>>>>>>

-- 
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 openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/14f6f6d4-78b4-42d9-9076-3df525ede310n%40googlegroups.com.

Reply via email to