From user-return-3250-archive-asf-public=cust-asf.ponee.io@guacamole.apache.org Sun Feb 11 22:47:56 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id DAE6618064E for ; Sun, 11 Feb 2018 22:47:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CA294160C4E; Sun, 11 Feb 2018 21:47:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9C5CE160C2E for ; Sun, 11 Feb 2018 22:47:55 +0100 (CET) Received: (qmail 45425 invoked by uid 500); 11 Feb 2018 21:47:54 -0000 Mailing-List: contact user-help@guacamole.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.apache.org Delivered-To: mailing list user@guacamole.apache.org Received: (qmail 45415 invoked by uid 99); 11 Feb 2018 21:47:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Feb 2018 21:47:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 44D8518032A for ; Sun, 11 Feb 2018 21:47:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.534 X-Spam-Level: **** X-Spam-Status: No, score=4.534 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LOTSOFHASH=0.25, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id HuwFZSj1YcWI for ; Sun, 11 Feb 2018 21:47:50 +0000 (UTC) Received: from n4.nabble.com (n4.nabble.com [162.253.133.72]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CDEE75F178 for ; Sun, 11 Feb 2018 21:47:49 +0000 (UTC) Received: from mben.nabble.com (localhost [127.0.0.1]) by n4.nabble.com (Postfix) with ESMTP id 7F41F18A93090 for ; Sun, 11 Feb 2018 14:47:49 -0700 (MST) Date: Sun, 11 Feb 2018 14:47:49 -0700 (MST) From: wwdev To: user@guacamole.apache.org Message-ID: <1518385669518-0.post@n4.nabble.com> Subject: guacd service on Ubuntu 17.10 (init.d vs systemd) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_665863_312499681.1518385669518" ------=_Part_665863_312499681.1518385669518 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,It's my first time installing Guacamole and I am not an expert on Linux. I need help on how to run guacd as a service on Ubuntu 17.10 (Plasma KDE). I have been spending more than 10 hours trying to figure out the problem and it seems the problem is on init.d vs systemd. The service seems running but it does not attach to any port. /ps -ef|grep guacd/ does not return anything. Any help is appreciated. I downloaded the guacamole install script from github . I have the Guacamole site running on Tomcat8 with MySQL as the backend. I entered the workstations that I would like to connect to but I could not connect to any of them. Below are the error messages: *This is error on Catalina.out:* 10:53:13.467 [http-nio-8080-exec-3] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused) 10:53:13.561 [http-nio-8080-exec-4] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused) *+ Checking guacd status. The Active section says inactive (dead). I did not capture the message* *+ I ran a command to get rid the inactive (dead) status. I believe it removed guacd.service from /lib/systemd/system/ - I had to use systemctl start guacd to start the service. It won't do anything when I do service guacd start. Below is the status of the service* guacd.service - LSB: Guacamole proxy daemon Loaded: loaded (/etc/init.d/guacd; generated; vendor preset: enabled) Active: active (exited) since Sun 2018-02-11 10:46:43 EST; 8min ago Docs: man:systemd-sysv-generator(8) Process: 1436 ExecStart=/etc/init.d/guacd start (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 4915) Memory: 0B CPU: 0 CGroup: /system.slice/guacd.service Feb 11 10:46:43 tI5 systemd[1]: Starting LSB: Guacamole proxy daemon... Feb 11 10:46:43 tI5 systemd[1]: Started LSB: Guacamole proxy daemon. *+ It's still not working. I ran another command /update-rc.d guacd defaults/ and reboot the system. It created K and S files under /etc/rc# folders. * *+ I recreated guacd.service under /lib/systemd/system* guacd.service - LSB:Guacamole proxy daemon Loaded: loaded (/lib/systemd/system/guacd.service; enabled; vendor preset: enabled) Active: inactive (dead) since Sun 2018-02-11 14:41:10 EST; 7min ago Process: 1654 ExecStart=/etc/init.d/guacd (code=exited, status=0/SUCCESS) Main PID: 1654 (code=exited, status=0/SUCCESS) CPU: 2ms Feb 11 14:41:10 tI5 systemd[1]: Started LSB:Guacamole proxy daemon. + *I ran /journalctl/ command and it saw a line "Started LSB:Guacamole proxy daemon) but I still don't see anything when I ran /ps -ef|grep guacd/. One of the forum users had to reinstall her raspberry pi to get it work. * + *Below is /systemctl show guacd/* Type=simple Restart=no NotifyAccess=none RestartUSec=100ms TimeoutStartUSec=1min 30s TimeoutStopUSec=1min 30s RuntimeMaxUSec=infinity WatchdogUSec=0 WatchdogTimestampMonotonic=0 FailureAction=none PermissionsStartOnly=no RootDirectoryStartOnly=no RemainAfterExit=no GuessMainPID=yes MainPID=0 ControlPID=0 FileDescriptorStoreMax=0 NFileDescriptorStore=0 StatusErrno=0 Result=success UID=4294967295 GID=4294967295 ExecMainStartTimestamp=Sun 2018-02-11 14:41:10 EST ExecMainStartTimestampMonotonic=42017257 ExecMainExitTimestamp=Sun 2018-02-11 14:41:10 EST ExecMainExitTimestampMonotonic=42190286 ExecMainPID=1654 ExecMainCode=1 ExecMainStatus=0 ExecStart={ path=/etc/init.d/guacd ; argv[]=/etc/init.d/guacd ; ignore_errors=no ; start_time=[Sun 2018-02-11 14:41:10 EST] ; stop_time=[Sun 2018-02-11 14:41:10 EST] ; pid=1654 ; code=exited ; status=0 } Slice=system.slice MemoryCurrent=18446744073709551615 CPUUsageNSec=2846919 TasksCurrent=18446744073709551615 Delegate=no CPUAccounting=no CPUWeight=18446744073709551615 StartupCPUWeight=18446744073709551615 CPUShares=18446744073709551615 StartupCPUShares=18446744073709551615 CPUQuotaPerSecUSec=infinity IOAccounting=no IOWeight=18446744073709551615 StartupIOWeight=18446744073709551615 BlockIOAccounting=no BlockIOWeight=18446744073709551615 StartupBlockIOWeight=18446744073709551615 MemoryAccounting=no MemoryLow=0 MemoryHigh=18446744073709551615 MemoryMax=18446744073709551615 MemorySwapMax=18446744073709551615 MemoryLimit=18446744073709551615 DevicePolicy=auto TasksAccounting=yes TasksMax=4915 UMask=0022 LimitCPU=18446744073709551615 LimitCPUSoft=18446744073709551615 LimitFSIZE=18446744073709551615 LimitFSIZESoft=18446744073709551615 LimitDATA=18446744073709551615 LimitDATASoft=18446744073709551615 LimitSTACK=18446744073709551615 LimitSTACKSoft=8388608 LimitCORE=18446744073709551615 LimitCORESoft=0 LimitRSS=18446744073709551615 LimitRSSSoft=18446744073709551615 LimitNOFILE=4096 LimitNOFILESoft=1024 LimitAS=18446744073709551615 LimitASSoft=18446744073709551615 LimitNPROC=31199 LimitNPROCSoft=31199 LimitMEMLOCK=65536 LimitMEMLOCKSoft=65536 LimitLOCKS=18446744073709551615 LimitLOCKSSoft=18446744073709551615 LimitSIGPENDING=31199 LimitSIGPENDINGSoft=31199 LimitMSGQUEUE=819200 LimitMSGQUEUESoft=819200 LimitNICE=0 LimitNICESoft=0 LimitRTPRIO=0 LimitRTPRIOSoft=0 LimitRTTIME=18446744073709551615 LimitRTTIMESoft=18446744073709551615 OOMScoreAdjust=0 Nice=0 IOSchedulingClass=0 IOSchedulingPriority=0 CPUSchedulingPolicy=0 CPUSchedulingPriority=0 TimerSlackNSec=50000 CPUSchedulingResetOnFork=no NonBlocking=no StandardInput=null StandardOutput=journal StandardError=inherit TTYReset=no TTYVHangup=no TTYVTDisallocate=no SyslogPriority=30 SyslogLevelPrefix=yes SyslogLevel=6 SyslogFacility=3 SecureBits=0 CapabilityBoundingSet=18446744073709551615 AmbientCapabilities=0 DynamicUser=no RemoveIPC=no MountFlags=0 PrivateTmp=no PrivateDevices=no ProtectKernelTunables=no ProtectKernelModules=no ProtectControlGroups=no PrivateNetwork=no PrivateUsers=no ProtectHome=no ProtectSystem=no SameProcessGroup=no UtmpMode=init IgnoreSIGPIPE=yes NoNewPrivileges=no SystemCallErrorNumber=0 RuntimeDirectoryMode=0755 MemoryDenyWriteExecute=no RestrictRealtime=no RestrictNamespaces=no MountAPIVFS=no KillMode=control-group KillSignal=15 SendSIGKILL=yes SendSIGHUP=no Id=guacd.service Names=guacd.service Requires=system.slice sysinit.target WantedBy=multi-user.target Conflicts=shutdown.target Before=shutdown.target After=systemd-journald.socket basic.target multi-user.target sysinit.target system.slice Description=LSB:Guacamole proxy daemon LoadState=loaded ActiveState=inactive SubState=dead FragmentPath=/lib/systemd/system/guacd.service UnitFileState=enabled UnitFilePreset=enabled StateChangeTimestamp=Sun 2018-02-11 14:41:10 EST StateChangeTimestampMonotonic=42190357 InactiveExitTimestamp=Sun 2018-02-11 14:41:10 EST InactiveExitTimestampMonotonic=42017304 ActiveEnterTimestamp=Sun 2018-02-11 14:41:10 EST ActiveEnterTimestampMonotonic=42017304 ActiveExitTimestamp=Sun 2018-02-11 14:41:10 EST ActiveExitTimestampMonotonic=42190357 InactiveEnterTimestamp=Sun 2018-02-11 14:41:10 EST InactiveEnterTimestampMonotonic=42190357 CanStart=yes CanStop=yes CanReload=no CanIsolate=no StopWhenUnneeded=no RefuseManualStart=no RefuseManualStop=no AllowIsolate=no DefaultDependencies=yes OnFailureJobMode=replace IgnoreOnIsolate=no NeedDaemonReload=no JobTimeoutUSec=infinity JobRunningTimeoutUSec=infinity JobTimeoutAction=none ConditionResult=yes AssertResult=yes ConditionTimestamp=Sun 2018-02-11 14:41:10 EST ConditionTimestampMonotonic=42016247 AssertTimestamp=Sun 2018-02-11 14:41:10 EST AssertTimestampMonotonic=42016247 Transient=no Perpetual=no StartLimitIntervalSec=10000000 StartLimitBurst=5 StartLimitAction=none InvocationID=4ffdcd4a80d540edbb73a104a4c543a5 -- Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/ ------=_Part_665863_312499681.1518385669518 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, It's my first time installing Guacamole and I am not an expert on Linux. I need help on how to run guacd as a service on Ubuntu 17.10 (Plasma KDE). I have been spending more than 10 hours trying to figure out the problem and it seems the problem is on init.d vs systemd. The service seems running but it does not attach to any port. ps -ef|grep guacd does not return anything. Any help is appreciated.

I downloaded the guacamole install script from github. I have the Guacamole site running on Tomcat8 with MySQL as the backend. I entered the workstations that I would like to connect to but I could not connect to any of them.

Below are the error messages:

This is error on Catalina.out:
10:53:13.467 [http-nio-8080-exec-3] ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused (Connection refused)
10:53:13.561 [http-nio-8080-exec-4] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: java.net.ConnectException: Connection refused (Connection refused)

+ Checking guacd status. The Active section says inactive (dead). I did not capture the message

+ I ran a command to get rid the inactive (dead) status. I believe it removed guacd.service from /lib/systemd/system/ - I had to use systemctl start guacd to start the service. It won't do anything when I do service guacd start. Below is the status of the service

guacd.service - LSB: Guacamole proxy daemon
Loaded: loaded (/etc/init.d/guacd; generated; vendor preset: enabled)
Active: active (exited) since Sun 2018-02-11 10:46:43 EST; 8min ago
Docs: man:systemd-sysv-generator(8)
Process: 1436 ExecStart=/etc/init.d/guacd start (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
Memory: 0B
CPU: 0
CGroup: /system.slice/guacd.service
Feb 11 10:46:43 tI5 systemd[1]: Starting LSB: Guacamole proxy daemon...
Feb 11 10:46:43 tI5 systemd[1]: Started LSB: Guacamole proxy daemon.



+ It's still not working. I ran another command update-rc.d guacd defaults and reboot the system. It created K and S files under /etc/rc# folders.

+ I recreated guacd.service under /lib/systemd/system

guacd.service - LSB:Guacamole proxy daemon
Loaded: loaded (/lib/systemd/system/guacd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sun 2018-02-11 14:41:10 EST; 7min ago
Process: 1654 ExecStart=/etc/init.d/guacd (code=exited, status=0/SUCCESS)
Main PID: 1654 (code=exited, status=0/SUCCESS)
CPU: 2ms


Feb 11 14:41:10 tI5 systemd[1]: Started LSB:Guacamole proxy daemon.



+ I ran journalctl command and it saw a line "Started LSB:Guacamole proxy daemon) but I still don't see anything when I ran ps -ef|grep guacd. One of the forum users had to reinstall her raspberry pi to get it work.

+ Below is systemctl show guacd

Type=simple
Restart=no
NotifyAccess=none
RestartUSec=100ms
TimeoutStartUSec=1min 30s
TimeoutStopUSec=1min 30s
RuntimeMaxUSec=infinity
WatchdogUSec=0
WatchdogTimestampMonotonic=0
FailureAction=none
PermissionsStartOnly=no
RootDirectoryStartOnly=no
RemainAfterExit=no
GuessMainPID=yes
MainPID=0
ControlPID=0
FileDescriptorStoreMax=0
NFileDescriptorStore=0
StatusErrno=0
Result=success
UID=4294967295
GID=4294967295
ExecMainStartTimestamp=Sun 2018-02-11 14:41:10 EST
ExecMainStartTimestampMonotonic=42017257
ExecMainExitTimestamp=Sun 2018-02-11 14:41:10 EST
ExecMainExitTimestampMonotonic=42190286
ExecMainPID=1654
ExecMainCode=1
ExecMainStatus=0
ExecStart={ path=/etc/init.d/guacd ; argv[]=/etc/init.d/guacd ; ignore_errors=no ; start_time=[Sun 2018-02-11 14:41:10 EST] ; stop_time=[Sun 2018-02-11 14:41:10 EST] ; pid=1654 ; code=exited ; status=0 }
Slice=system.slice
MemoryCurrent=18446744073709551615
CPUUsageNSec=2846919
TasksCurrent=18446744073709551615
Delegate=no
CPUAccounting=no
CPUWeight=18446744073709551615
StartupCPUWeight=18446744073709551615
CPUShares=18446744073709551615
StartupCPUShares=18446744073709551615
CPUQuotaPerSecUSec=infinity
IOAccounting=no
IOWeight=18446744073709551615
StartupIOWeight=18446744073709551615
BlockIOAccounting=no
BlockIOWeight=18446744073709551615
StartupBlockIOWeight=18446744073709551615
MemoryAccounting=no
MemoryLow=0
MemoryHigh=18446744073709551615
MemoryMax=18446744073709551615
MemorySwapMax=18446744073709551615
MemoryLimit=18446744073709551615
DevicePolicy=auto
TasksAccounting=yes
TasksMax=4915
UMask=0022
LimitCPU=18446744073709551615
LimitCPUSoft=18446744073709551615
LimitFSIZE=18446744073709551615
LimitFSIZESoft=18446744073709551615
LimitDATA=18446744073709551615
LimitDATASoft=18446744073709551615
LimitSTACK=18446744073709551615
LimitSTACKSoft=8388608
LimitCORE=18446744073709551615
LimitCORESoft=0
LimitRSS=18446744073709551615
LimitRSSSoft=18446744073709551615
LimitNOFILE=4096
LimitNOFILESoft=1024
LimitAS=18446744073709551615
LimitASSoft=18446744073709551615
LimitNPROC=31199
LimitNPROCSoft=31199
LimitMEMLOCK=65536
LimitMEMLOCKSoft=65536
LimitLOCKS=18446744073709551615
LimitLOCKSSoft=18446744073709551615
LimitSIGPENDING=31199
LimitSIGPENDINGSoft=31199
LimitMSGQUEUE=819200
LimitMSGQUEUESoft=819200
LimitNICE=0
LimitNICESoft=0
LimitRTPRIO=0
LimitRTPRIOSoft=0
LimitRTTIME=18446744073709551615
LimitRTTIMESoft=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOSchedulingClass=0
IOSchedulingPriority=0
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=journal
StandardError=inherit
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
SyslogPriority=30
SyslogLevelPrefix=yes
SyslogLevel=6
SyslogFacility=3
SecureBits=0
CapabilityBoundingSet=18446744073709551615
AmbientCapabilities=0
DynamicUser=no
RemoveIPC=no
MountFlags=0
PrivateTmp=no
PrivateDevices=no
ProtectKernelTunables=no
ProtectKernelModules=no
ProtectControlGroups=no
PrivateNetwork=no
PrivateUsers=no
ProtectHome=no
ProtectSystem=no
SameProcessGroup=no
UtmpMode=init
IgnoreSIGPIPE=yes
NoNewPrivileges=no
SystemCallErrorNumber=0
RuntimeDirectoryMode=0755
MemoryDenyWriteExecute=no
RestrictRealtime=no
RestrictNamespaces=no
MountAPIVFS=no
KillMode=control-group
KillSignal=15
SendSIGKILL=yes
SendSIGHUP=no
Id=guacd.service
Names=guacd.service
Requires=system.slice sysinit.target
WantedBy=multi-user.target
Conflicts=shutdown.target
Before=shutdown.target
After=systemd-journald.socket basic.target multi-user.target sysinit.target system.slice
Description=LSB:Guacamole proxy daemon
LoadState=loaded
ActiveState=inactive
SubState=dead
FragmentPath=/lib/systemd/system/guacd.service
UnitFileState=enabled
UnitFilePreset=enabled
StateChangeTimestamp=Sun 2018-02-11 14:41:10 EST
StateChangeTimestampMonotonic=42190357
InactiveExitTimestamp=Sun 2018-02-11 14:41:10 EST
InactiveExitTimestampMonotonic=42017304
ActiveEnterTimestamp=Sun 2018-02-11 14:41:10 EST
ActiveEnterTimestampMonotonic=42017304
ActiveExitTimestamp=Sun 2018-02-11 14:41:10 EST
ActiveExitTimestampMonotonic=42190357
InactiveEnterTimestamp=Sun 2018-02-11 14:41:10 EST
InactiveEnterTimestampMonotonic=42190357
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureJobMode=replace
IgnoreOnIsolate=no
NeedDaemonReload=no
JobTimeoutUSec=infinity
JobRunningTimeoutUSec=infinity
JobTimeoutAction=none
ConditionResult=yes
AssertResult=yes
ConditionTimestamp=Sun 2018-02-11 14:41:10 EST
ConditionTimestampMonotonic=42016247
AssertTimestamp=Sun 2018-02-11 14:41:10 EST
AssertTimestampMonotonic=42016247
Transient=no
Perpetual=no
StartLimitIntervalSec=10000000
StartLimitBurst=5
StartLimitAction=none
InvocationID=4ffdcd4a80d540edbb73a104a4c543a5



Sent from the Apache Guacamole - General/User Mailing List mailing list archive at Nabble.com.
------=_Part_665863_312499681.1518385669518--