guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wwdev <ww...@outlook.com>
Subject guacd service on Ubuntu 17.10 (init.d vs systemd)
Date Sun, 11 Feb 2018 21:47:49 GMT
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
<https://github.com/MysticRyuujin/guac-install>  . 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/
Mime
View raw message