Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - JLLEWELYN

Pages: 1 [2]
16
Installation and Upgrades / [Problem] Zentyal 5.0 service fails.
« on: February 26, 2018, 04:21:36 pm »
Greetings to the team and Zentyal users.
Sometimes after several days in operation, the zentyal service fails and I have to restart the computer.
Code: [Select]
Last login: Sun Feb 25 12:20:43 2018 from 192.168.1.254
root@servidor:~# systemctl status zentyal.service
● zentyal.service - Zentyal start/stop task
   Loaded: loaded (/lib/systemd/system/zentyal.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since lun 2018-02-26 08:16:01 -04; 2h 54mi
  Process: 1369 ExecStart=/usr/bin/zs start (code=exited, status=111)
 Main PID: 1369 (code=exited, status=111)

feb 26 08:15:56 servidor systemd[1]: Starting Zentyal start/stop task...
feb 26 08:16:01 servidor zs[1369]: Could not connect to Redis server at 127.0.0.
feb 26 08:16:01 servidor systemd[1]: zentyal.service: Main process exited, code=
feb 26 08:16:01 servidor systemd[1]: Failed to start Zentyal start/stop task.
feb 26 08:16:01 servidor systemd[1]: zentyal.service: Unit entered failed state.
feb 26 08:16:01 servidor systemd[1]: zentyal.service: Failed with result 'exit-c
lines 1-12/12 (END)...skipping...
● zentyal.service - Zentyal start/stop task
   Loaded: loaded (/lib/systemd/system/zentyal.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since lun 2018-02-26 08:16:01 -04; 2h 54min ago
  Process: 1369 ExecStart=/usr/bin/zs start (code=exited, status=111)
 Main PID: 1369 (code=exited, status=111)

feb 26 08:15:56 servidor systemd[1]: Starting Zentyal start/stop task...
feb 26 08:16:01 servidor zs[1369]: Could not connect to Redis server at 127.0.0.1:6379: Connection refused at /usr/share/perl5/EBox/Config/Redis.pm line 511.
feb 26 08:16:01 servidor systemd[1]: zentyal.service: Main process exited, code=exited, status=111/n/a
feb 26 08:16:01 servidor systemd[1]: Failed to start Zentyal start/stop task.
feb 26 08:16:01 servidor systemd[1]: zentyal.service: Unit entered failed state.
feb 26 08:16:01 servidor systemd[1]: zentyal.service: Failed with result 'exit-code'.

Logs:
error.log
Code: [Select]
2018/01/04 18:31:12 [error] 3781#3781: *4449 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "GET /SysInfo/SoftwareUpdates HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/Dashboard/Index"
2018/01/11 13:45:27 [error] 4811#4811: *14376 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /SysInfo/Controller/Halt HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/SysInfo/View/Halt"
2018/01/11 14:26:55 [error] 4831#4831: *1198 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /SysInfo/Controller/Halt HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/SysInfo/View/Halt"
2018/01/25 17:37:46 [error] 4571#4571: *107 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "GET /SysInfo/RestartService?module=squid&start=Arrancar HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/Dashboard/Index"
2018/02/03 11:42:21 [error] 4753#4753: *916 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /SysInfo/Controller/Halt HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/SysInfo/View/Halt"
2018/02/03 12:32:19 [error] 4718#4718: *387 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /SysInfo/Controller/Halt HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/SysInfo/View/Halt"
2018/02/03 12:47:42 [error] 4582#4582: *127 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /SysInfo/Controller/Halt HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/SysInfo/View/Halt"
2018/02/03 13:00:11 [error] 4582#4582: *325 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /SysInfo/Controller/Halt HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/SysInfo/View/Halt"
2018/02/03 13:06:36 [error] 4589#4589: *75 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /SysInfo/Controller/Halt HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "192.168.1.1:8443", referrer: "https://192.168.1.1:8443/SysInfo/View/Halt"
2018/02/17 16:28:32 [error] 4514#4514: *41 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.254, server: , request: "POST /Software/Updates HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock", host: "192.168.1.2:8443", referrer: "https://192.168.1.2:8443/Software/Updates"

zentyal.log
Code: [Select]
   504  DNS Name Not Found
 Ign:135 http://ve.archive.ubuntu.com/ubuntu xenial-backports/restricted i386 Packages
 Ign:136 http://ve.archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
 Ign:137 http://ve.archive.ubuntu.com/ubuntu xenial-backports/restricted Translation-es_VE
 Ign:138 http://ve.archive.ubuntu.com/ubuntu xenial-backports/restricted Translation-es
 Ign:139 http://ve.archive.ubuntu.com/ubuntu xenial-backports/restricted Translation-es_VE.UTF-8
 Ign:140 http://ve.archive.ubuntu.com/ubuntu xenial-backports/restricted Translation-en
 Ign:186 http://ve.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
 Ign:187 http://ve.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages
 Ign:143 http://ve.archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
 Ign:144 http://ve.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-es_VE
 Err:155 http://ve.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
   504  DNS Name Not Found
 Ign:156 http://ve.archive.ubuntu.com/ubuntu xenial/main i386 Packages
 Ign:157 http://ve.archive.ubuntu.com/ubuntu xenial/main Translation-es
 Ign:158 http://ve.archive.ubuntu.com/ubuntu xenial/main Translation-en
 Ign:159 http://ve.archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
 Ign:160 http://ve.archive.ubuntu.com/ubuntu xenial/restricted i386 Packages
 Ign:161 http://ve.archive.ubuntu.com/ubuntu xenial/restricted Translation-es
 Ign:162 http://ve.archive.ubuntu.com/ubuntu xenial/restricted Translation-en
 Ign:163 http://ve.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
 Ign:164 http://ve.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
 Ign:165 http://ve.archive.ubuntu.com/ubuntu xenial/universe Translation-es
 Err:171 http://ve.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
   504  DNS Name Not Found
 Ign:172 http://ve.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
 Ign:173 http://ve.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en
 Ign:174 http://ve.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
 Ign:175 http://ve.archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages
 Ign:176 http://ve.archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en
 Ign:177 http://ve.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
 Ign:178 http://ve.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
 Ign:179 http://ve.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en
 Ign:180 http://ve.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
 Ign:181 http://ve.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages
 Leyendo lista de paquetes...
.
Exit value: 100 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/U0fBbU9I0j.cmd 2> /var/lib/zentyal/tmp/stderr', '/usr/bin/apt-get update -q', 25600, 'ARRAY(0x55feb38)', 'ARRAY(0x31d0b68)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/usr/bin/apt-get update -q') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/usr/bin/apt-get update -q') called at /usr/share/perl5/EBox/Software.pm line 233
eval {...} at /usr/share/perl5/EBox/Software.pm line 232
EBox::Software::updatePkgList('EBox::Software=HASH(0x550cf08)') called at /usr/share/zentyal-software/auto-updater line 39
eval {...} at /usr/share/zentyal-software/auto-updater line 37
2018/02/26 03:44:00 ERROR> Software.pm:236 EBox::Software::updatePkgList - Error updating package list

17
Installation and Upgrades / problem with the pam_cap.so file
« on: February 20, 2018, 08:06:35 pm »
Code: [Select]
● zentyal.service - Zentyal start/stop task
   Loaded: loaded (/lib/systemd/system/zentyal.service; enabled; vendor preset: enabled)
   Active: active (exited) since mar 2018-02-20 09:48:50 -04; 5h 14min ago
  Process: 27572 ExecStart=/usr/bin/zs start (code=exited, status=0/SUCCESS)
 Main PID: 27572 (code=exited, status=0/SUCCESS)
    Tasks: 0
   Memory: 0B
      CPU: 0
   CGroup: /system.slice/zentyal.service

feb 20 09:48:50 servidor sudo[30018]: pam_unix(sudo:session): session opened for user root by (uid=0)
feb 20 09:48:50 servidor sudo[30018]: pam_unix(sudo:session): session closed for user root
feb 20 09:48:50 servidor sudo[30024]: PAM unable to dlopen(pam_cap.so): /lib/security/pam_cap.so: no se puede abrir el archivo del objeto compartido: No exis
feb 20 09:48:50 servidor sudo[30024]: PAM adding faulty module: pam_cap.so
feb 20 09:48:50 servidor sudo[30024]:     ebox : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/sh -c . /lib/lsb/init-functions; log_begin_msg "Starting Zent
feb 20 09:48:50 servidor sudo[30024]: pam_unix(sudo:session): session opened for user root by (uid=0)
feb 20 09:48:50 servidor zs[27572]:  * Starting Zentyal module: webadmin
feb 20 09:48:50 servidor zs[27572]:    ...done.
feb 20 09:48:50 servidor sudo[30024]: pam_unix(sudo:session): session closed for user root
feb 20 09:48:50 servidor systemd[1]: Started Zentyal start/stop task.

the pam_cap.so file is not found, how can I solve this problem?

18
Installation and Upgrades / [HELP] update zentyal-network (5.0.10)
« on: February 03, 2018, 09:24:55 pm »
Update the zentyal-network (5.0.10) plugin and now I do not have an Internet connection.
It does not update the gateway automatically.
my Internet connection is with ip dynamic address.
I did not have this problem before.

19
I have a problem with my ISP, I have zentyal 5.0, with the functions of DNS, DC AD, HTTP Proxy, firewall.
My IP address is dynamic and every time the connection is lost. Every time this happens, the only way to solve this problem is to release, renew and restart the operating system.

I made a script that automates my work, that only releases and renews the adapter that has the Internet connection, changes the IP address but does not recover the Internet connection unless the operating system is restarted.


https://pastebin.com/wfSkpgKA
Code: [Select]
#!/bin/bash

# Autor: John Llewelyn
# FB: fb.com/johnwilliam.llewelyn
# Twitter: twitter.com/JWLLEWELYN
# TLF: +584-1491-011-15
# Its use is free.
# Description: Connection Monitor for ADSL modem.
# Requirements:
# Copy this code or save to /home/administrator/ConnectionMonitor.sh
# It requires the installed packages fping beep and cron
# Comment the blacklist pcspkr snd-pcsp in /etc/modprobe.d/blacklist.conf
# Give execute permissions: chmod +x /home/administrator/ConnectionMonitor.sh
# Add this line in crontab -e with root user
# @reboot sleep 120 && /home/administrator/MonitorDeConexion.sh

#################################################################################
# SETTINGS
TEST="8.8.8.8"       # TEST PING
ADAPTER1="enp4s0"    # EXTERNAL ETHERNET ADAPTER

# Report
LOGFILE=/home/administrator/Documentos/ReportInternet.log

# Messages
MESSAGE1="Restoring Connectivity..."
MESSAGE2="Wait a moment please..."
MESSAGE3="No Internet connectivity."
MESSAGE4="Yes, there is Internet connectivity."
#################################################################################

# Time and Date
TODAY=$(date "+%r %d-%m-%Y")

# Show IP Public Address
IPv4ExternalAddr1=$(ip addr list $ADAPTER1 |grep "inet " |cut -d' ' -f6|cut -d/ -f1)
IPv6ExternalAddr1=$(ip addr list $ADAPTER1 |grep "inet6 " |cut -d' ' -f6|cut -d/ -f1)

# Alarm
alarm() {
    beep -f 1500 -l 200;beep -f 1550 -l 200;beep -f 1500 -l 200;beep -f 1550 -l 200;beep -f 1500 -l 200;beep -f 1550 -l 200;beep -f 1500 -l 200;beep -f 1550$
}

# Restoring Connectivity
resolve() {
    clear
    echo "$MESSAGE1"
    sudo ifconfig $ADAPTER1 up
    sudo dhclient -r $ADAPTER1
    sleep 5
    sudo dhclient $ADAPTER1
    echo "$MESSAGE2"
    sleep 120
}

# Execution of work
while true; do
    if [[ "$(fping -I $ADAPTER1 $TEST | grep 'unreachable' )" != "" ]]; then
        alarm
        clear
        echo "================================================================================" >> ${LOGFILE}
        echo "$MESSAGE3 - $TODAY"                                                               >> ${LOGFILE}
        echo "$MESSAGE3 - $TODAY"
        echo "================================================================================" >> ${LOGFILE}
        sleep 10
        resolve
    else
        clear
        echo "================================================================================"   >> ${LOGFILE}
        echo "$MESSAGE4 - $TODAY - IPv4 Addr: $IPv4ExternalAddr1 - IPv6 Addr: $IPv6ExternalAddr1" >> ${LOGFILE}
        echo "$MESSAGE4 - $TODAY - IPv4 Addr: $IPv4ExternalAddr1 - IPv6 Addr: $IPv6ExternalAddr1"
        echo "================================================================================"   >> ${LOGFILE}
        sleep 120
    fi
done

Is there a service that has to be restarted to avoid restarting the operating system?

20
Spanish / [AYUDA] HTTP Redirect
« on: January 10, 2018, 01:53:09 am »
hola muy buenas noches.

tengo un problema con redirigir paginas web.
antiguamente usaba un servidor Firewall UTM que me permite redirigir un sitio web a otra.

pero me cambie a zentyal y no consigo dicha opción.

ejemplo:
si abren la pagina web www.cafegate.com automaticamente se redirige el navegador a www.google.com

alguien sabe donde se modifica esto?

Pages: 1 [2]