Hi all
Still trying hard to let it work.
I copied the sogo.init to /etc/init.d/sogo because after make install
there where no configuration file and also no /etc/init.d/sogo.
Then I got the tip of the systemctl. I have to figure out what it means
but then the command /etc/init.d/sogo. So that was a mayor improvement.
But I don't know if I have to run the etc/init.d/sogo.
But now when I go to the web interface (configured in Apache2) I get
"Service Unavailable" while Apache is working fine.
So I tried to start from scratch
- make uninstall (and removed all copied config files)
- removed services from systemctl.
- make clean
- git pull
- ./configure --enable-debug --disable-strip
- make
- make install (failed on permissions)
- sudo make install (/etc/init.d/sogo was there)
- systemctl daemon-reload
- systemctl start sogo
- ./sogo start
- journalctl -xn
- failed to load see (1) below
- nano /etc/init.d/sogo
add to path /usr/*local*/sbin:/usr/local/lib/sogo/
changed sogod DAEMON=/usr/*local*/sbin/sogod
- systemctl daemon-reload
- systemctl start sogo
- systemctl -l status sogo.service
- failed to load see (2)
- su - sogo
- systemctl daemon-reload
- systemctl start sogo
- systemctl -l status sogo.service
- under sogo seems ok, other user give error see (3).
- When I go the the web interface in firefox: "Service unavailable"
Config files does not exist e.g. /etc/sogo so I did
- sudo install -D -m 644 Scripts/sogo-default /etc/default/sogo
- sudo install -D -m 644 debian/sogo.overrides
/usr/share/lintian/overrides/sogo
- sudo install -D -m 644 Apache/SOGo.conf
/etc/apache2/conf-available/SOGo.conf
- sudo install -D -m 644 Scripts/sogo.cron /etc/cron.d/sogo
- sudo install -D -m 644 Scripts/logrotate /etc/logrotate.d/sogo
- sudo install -d -m 750 /etc/sogo/
- sudo install -D -m 640 Scripts/sogo.conf /etc/sogo/sogo.conf
Still
In the web interface in firefox: "Service unavailable"
/*And no logs in /var/log/sogo*/
Where do I have to search for the problem (there are no log files in
/var/log/sogo)?
It seems that the sogod is not in the right place (is in /usr/local/sbin
instead of /usr/sbin) after make install and the configuration files are
not there.
Is there something wrong with the installation?
What is officially the password for the sogo user at the system?
Now I have see (4)
(1)
root@cubietruck:/etc/init.d# systemctl daemon-reload
root@cubietruck:/etc/init.d# systemctl start sogo
Job for sogo.service failed. See 'systemctl status sogo.service' and
'journalctl -xn' for details.
root@cubietruck:/etc/init.d# systemctl status sogo.service
● sogo.service - LSB: SOGo server
Loaded: loaded (/etc/init.d/sogo)
Active: failed (Result: exit-code) since Sat 2016-01-09 11:23:21
CET; 42s ago
Process: 11832 ExecStart=/etc/init.d/sogo start (code=exited,
status=1/FAILURE)
Jan 09 11:23:21 cubietruck sogo[11832]: /usr/sbin/sogod is not
executable. ... failed!
Jan 09 11:23:21 cubietruck systemd[1]: sogo.service: control process
exited, code=exited status=1
Jan 09 11:23:21 cubietruck systemd[1]: Failed to start LSB: SOGo server.
Jan 09 11:23:21 cubietruck systemd[1]: Unit sogo.service entered failed
state.
root@cubietruck:/etc/init.d#
root@cubietruck:/etc/init.d# journalctl -xn
-- Logs begin at Thu 1970-01-01 01:00:14 CET, end at Sat 2016-01-09
11:23:21 CET. --
Jan 09 11:17:01 cubietruck CRON[5591]: pam_unix(cron:session): session
closed for user root
Jan 09 11:19:55 cubietruck sudo[9316]: jan: TTY=pts/1 ;
PWD=/home/jan/sogosource/sogo ; USER=root ; COMMAND=/usr/bin/make install
Jan 09 11:19:55 cubietruck sudo[9316]: pam_unix(sudo:session): session
opened for user root by jan(uid=0)
Jan 09 11:20:30 cubietruck sudo[9316]: pam_unix(sudo:session): session
closed for user root
Jan 09 11:23:12 cubietruck systemd[1]: Reloading.
Jan 09 11:23:21 cubietruck systemd[1]: Starting LSB: SOGo server...
-- Subject: Unit sogo.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sogo.service has begun starting up.
Jan 09 11:23:21 cubietruck sogo[11832]: /usr/sbin/sogod is not
executable. ... failed!
Jan 09 11:23:21 cubietruck systemd[1]: sogo.service: control process
exited, code=exited status=1
Jan 09 11:23:21 cubietruck systemd[1]: Failed to start LSB: SOGo server.
-- Subject: Unit sogo.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sogo.service has failed.
--
-- The result is failed.
Jan 09 11:23:21 cubietruck systemd[1]: Unit sogo.service entered failed
state.
(2)
root@cubietruck:/etc/init.d# systemctl -l status sogo.service
● sogo.service - LSB: SOGo server
Loaded: loaded (/etc/init.d/sogo)
Active: active (exited) since Sat 2016-01-09 11:30:15 CET; 1min 59s ago
Process: 11941 ExecStart=/etc/init.d/sogo start (code=exited,
status=0/SUCCESS)
Jan 09 11:30:15 cubietruck sogo[11941]: Starting SOGo:
sogo/usr/local/sbin/sogod: error while loading shared libraries:
libSOGo.so.3: cannot open shared object file: No such file or directory
Jan 09 11:30:15 cubietruck sogo[11941]: already running.
Jan 09 11:30:15 cubietruck systemd[1]: Started LSB: SOGo server.
(3)
Then under user sogo
$ systemctl -l status sogo
● sogo.service - LSB: SOGo server
Loaded: loaded (/etc/init.d/sogo)
Active: active (exited) since Sat 2016-01-09 12:12:06 CET; 27s ago
Process: 12661 ExecStop=/etc/init.d/sogo stop (code=exited,
status=0/SUCCESS)
Process: 12727 ExecStart=/etc/init.d/sogo start (code=exited,
status=0/SUCCESS)
$
Under user Jan:
jan@cubietruck:~/sogosource/sogo$ sudo systemctl -l status sogo
● sogo.service - LSB: SOGo server
Loaded: loaded (/etc/init.d/sogo)
Active: active (exited) since Sat 2016-01-09 12:12:06 CET; 2min 57s ago
Process: 12661 ExecStop=/etc/init.d/sogo stop (code=exited,
status=0/SUCCESS)
Process: 12727 ExecStart=/etc/init.d/sogo start (code=exited,
status=0/SUCCESS)
Jan 09 12:12:06 cubietruck sogo[12727]: Starting SOGo:
sogo/usr/local/sbin/sogod: error while loading shared libraries:
libSOGo.so.3: cannot open shared object file: No such file or directory
Jan 09 12:12:06 cubietruck sogo[12727]: already running.
Jan 09 12:12:06 cubietruck systemd[1]: Started LSB: SOGo server.
(4)
Under user sogo!
--- $journalctl -xn ---
-- Logs begin at Thu 1970-01-01 01:00:14 CET, end at Sat 2016-01-09
12:45:28 CET. --
Jan 09 12:31:05 cubietruck sudo[12940]: pam_unix(sudo:session): session
closed for user root
Jan 09 12:31:15 cubietruck dbus[488]: [system] Rejected send message, 2
matched rules; type="method_call", sender=":1.8" (uid=1003 pid=12958
comm="systemctl start sogo "
Jan 09 12:31:19 cubietruck sudo[12960]: sogo : TTY=pts/0 ;
PWD=/var/lib/sogo ; USER=root ; COMMAND=/bin/systemctl start sogo
Jan 09 12:31:19 cubietruck sudo[12960]: pam_unix(sudo:session): session
opened for user root by root(uid=0)
Jan 09 12:31:19 cubietruck systemd[1]: Started LSB: SOGo server.
-- Subject: Unit sogo.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sogo.service has finished starting up.
--
-- The start-up result is done.
Jan 09 12:31:19 cubietruck sudo[12960]: pam_unix(sudo:session): session
closed for user root
Jan 09 12:37:05 cubietruck sshd[12966]: Accepted publickey for root from
......
Jan 09 12:37:05 cubietruck sshd[12966]: pam_unix(sshd:session): session
opened for user root by (uid=0)
Jan 09 12:45:28 cubietruck sudo[12974]: sogo : TTY=pts/0 ;
PWD=/var/lib/sogo ; USER=root ; COMMAND=/bin/journalctl -xn
Jan 09 12:45:28 cubietruck sudo[12974]: pam_unix(sudo:session): session
opened for user root by root(uid=0)
--- /var/log/apache2 ---
[Sat Jan 09 12:32:35.308470 2016] [proxy:error] [pid 12879:tid
2974807088] (111)Connection refused: AH00957: HTTP: attempt to connect
to 127.0.0.1:20000 (127.0.0.1) failed
[Sat Jan 09 12:32:35.308724 2016] [proxy:error] [pid 12879:tid
2974807088] AH00959: ap_proxy_connect_backend disabling worker for
(127.0.0.1) for 0s
[Sat Jan 09 12:32:35.308806 2016] [proxy_http:error] [pid 12879:tid
2974807088] [client 83.117.26.244:52062] AH01114: HTTP: failed to make
connection to backend: 127.0.0.1
[Sat Jan 09 12:32:35.653325 2016] [proxy:error] [pid 12880:tid
3041915952] (111)Connection refused: AH00957: HTTP: attempt to connect
to 127.0.0.1:20000 (127.0.0.1) failed
[Sat Jan 09 12:32:35.653573 2016] [proxy:error] [pid 12880:tid
3041915952] AH00959: ap_proxy_connect_backend disabling worker for
(127.0.0.1) for 0s
[Sat Jan 09 12:32:35.653656 2016] [proxy_http:error] [pid 12880:tid
3041915952] [client 83.117.26.244:52063] AH01114: HTTP: failed to make
connection to backend: 127.0.0.1
--- systemctl -l status sogo.service ---
systemctl -l status sogo.service
● sogo.service - LSB: SOGo server
Loaded: loaded (/etc/init.d/sogo)
Active: active (exited) since Sat 2016-01-09 12:12:06 CET; 39min ago
$
--
[email protected]
https://inverse.ca/sogo/lists