[Catalyst] Change of server
"Andrés Chandía"
andres at chandia.net
Fri Mar 3 11:09:56 GMT 2017
Well, I have not errors any more at the log file on this command:
apache2 -k start
-E /var/log/apache2/showerror
but server does not starts, nor even with
service apache2 restart
wich again says:
Mar 03 12:04:23 iac
apache2[2798]:Â * The apache2 instance did not start within 20 seconds. Please read the
log files to discover problems
Mar 03 12:04:23 iac systemd[1]: apache2.service: Control
process exited, code=exited status=1
Mar 03 12:04:23 iac systemd[1]: Failed to start LSB:
Apache2 web server.
Mar 03 12:04:23 iac systemd[1]: apache2.service: Unit entered failed
state.
Mar 03 12:04:23 iac systemd[1]: apache2.service: Failed with result
'exit-code'.
# netstat -lnp
Active Internet connections (only
servers)
Proto Recv-Q Send-Q Local
Address          Foreign
Address       Â
State      PID/Program name
tcp       0     0
127.0.0.1:3306Â Â Â Â Â Â Â Â Â
0.0.0.0:*Â Â Â Â Â Â Â Â Â Â Â Â Â Â
LISTEN     1134/mysqld   Â
tcp       0     0
0.0.0.0:22Â Â Â Â Â Â Â Â Â Â Â Â Â
0.0.0.0:*Â Â Â Â Â Â Â Â Â Â Â Â Â Â
LISTEN     1112/sshd     Â
tcp6Â Â Â Â Â Â 0Â Â Â Â Â 0
:::22Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
:::*Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
LISTEN     1112/sshd     Â
Active UNIX domain sockets (only servers)
Proto RefCnt
Flags      Type     Â
State        I-Node  PID/Program
name   Path
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
16795   1294/systemd      Â
/run/user/1000/systemd/private
unix 2     [ ACC
]Â Â Â Â SEQPACKETÂ LISTENINGÂ Â Â Â
9932Â Â Â Â
1/init            Â
/run/udev/control
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
13272Â Â Â
1/init            Â
/run/uuidd/request
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
13273Â Â Â
1/init            Â
/run/snapd.socket
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
13274Â Â Â
1/init            Â
/run/snapd-snap.socket
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
13269Â Â Â
1/init            Â
/var/lib/lxd/unix.socket
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
13275Â Â Â
1/init            Â
/run/acpid.socket
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
13276Â Â Â
1/init            Â
/var/run/dbus/system_bus_socket
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
16619   1134/mysqld       Â
/var/run/mysqld/mysqld.sock
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
9923Â Â Â Â
1/init            Â
/run/systemd/private
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
9931Â Â Â Â
1/init            Â
/run/systemd/fsck.progress
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
9933Â Â Â Â
1/init            Â
/run/lvm/lvmpolld.socket
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
9942Â Â Â Â
1/init            Â
/run/lvm/lvmetad.socket
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
9943Â Â Â Â
1/init            Â
/run/systemd/journal/stdout
unix 2     [ ACC
]Â Â Â Â STREAMÂ Â Â Â LISTENINGÂ Â Â Â
15299   1148/iscsid       Â
@ISCSIADM_ABSTRACT_NAMESPACE
El Vie, 3 de Marzo de 2017, 11:53,
Hector Azpurua escribió:
It seems that you have a typo in the
fileÃÂ /etc/apache2/apache2.conf near line 74. Fix that and probably the other
errors will vanish!
On Mar 3, 2017 7:39 AM, Andrés ChandÃÂa
andres at chandia.net> wrote:Thanks, finally I'm
getting some logs:
[Fri Mar 03 11:34:41.061210 2017] [core:warn] [pid 2111]
AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Fri Mar 03 11:34:41.061282
2017] [core:warn] [pid 2111] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Fri Mar 03 11:34:41.061298 2017] [core:warn] [pid 2111] AH00111: Config variable
${APACHE_RUN_USER} is not defined
[Fri Mar 03 11:34:41.061303 2017] [core:warn] [pid
2111] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Fri Mar 03
11:34:41.061313 2017] [core:warn] [pid 2111] AH00111: Config variable ${APACHE_LOG_DIR} is not
defined
[Fri Mar 03 11:34:41.070952 2017] [core:warn] [pid 2111] AH00111: Config variable
${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of
/etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
El Vie, 3 de Marzo de 2017, 11:15, mallah escribió:
Have you tried starting apache2 binary from cmdline by specifying the path of main
configuration file.
Check apache2 -h
Also check netstat -lnp output if there is something bound to the same port (possibly 80
)
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: AndrÃÆés ChandÃÆÃÂa
Date: 3/3/17 12:05 (GMT+05:30)
To: The elegant MVC web framework
Subject: Re: [Catalyst] Change of server
Thanks for your concern, I have tried that also:
systemctl status apache2
apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad;
vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
âââ¬Ã¢â¬Ã¢ââ¬Ã¢â¬apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2017-03-03 07:31:59 CET; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 1187 ExecStart=/etc/init.d/apache2 start
(code=exited, status=1/FAILURE)
Mar 03 07:27:02 iac apache2[1187]: |
/results/stats_query/... | /results/stats_query |
Mar 03
07:27:02 iac apache2[1187]: | /results/stats_results/... | /results/stats_results
|
Mar 03 07:27:02 iac apache2[1187]:
'-------------------------------------+--------------------------------------'
Mar 03 07:27:02 iac apache2[1187]: [info] IAC powered by Catalyst 5.90103
Mar 03
07:31:59 iac apache2[1187]: *
Mar 03 07:31:59 iac apache2[1187]: * The apache2 instance
did not start within 20 seconds. Please read the log file
Mar 03 07:31:59 iac systemd[1]:
apache2.service: Control process exited, code=exited status=1
Mar 03 07:31:59 iac
systemd[1]: Failed to start LSB: Apache2 web server.
Mar 03 07:31:59 iac systemd[1]:
apache2.service: Unit entered failed state.
Mar 03 07:31:59 iac systemd[1]:
apache2.service: Failed with result 'exit-code'.
tail -f /var/log/apache2/error.log
says nothing
tail -f /var/log/apache2/local.iac.error.log says
nothing
tail -f /var/log/syslog
Mar 3 07:33:43 iac apache2[1466]: |
/results/stats_query/... | /results/stats_query |
Mar 3
07:33:43 iac apache2[1466]: | /results/stats_results/... | /results/stats_results
|
Mar 3 07:33:43 iac apache2[1466]:
'-------------------------------------+--------------------------------------'
Mar 3 07:33:43 iac apache2[1466]: [info] IAC powered by Catalyst 5.90103
Mar 3
07:34:03 iac apache2[1466]: *
Mar 3 07:34:03 iac apache2[1466]: * The apache2 instance
did not start within 20 seconds. Please read the log files to discover problems
Mar 3
07:34:03 iac systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 3 07:34:03 iac systemd[1]: Failed to start LSB: Apache2 web server.
Mar 3
07:34:03 iac systemd[1]: apache2.service: Unit entered failed state.
Mar 3 07:34:03 iac
systemd[1]: apache2.service: Failed with result 'exit-code'.
El Vie, 3
de Marzo de 2017, 6:33, mallah escribiÃÆó:
The real error message is somewhere try
systemctl status apache2
To find the error messages or tail the error
Logs.
Regds
Mallah
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Andr̮̩̉̉s
ChandÃÆÃâÃâÃÂa
Date: 3/3/17 10:32 (GMT+05:30)
To: catalyst at lists.scsys.co.uk
Subject: [Catalyst] Change of server
Hi there, I had a Catalyst application working on a debian 7 perl 5.14 apache 2.4, but I had
to change it to a new server working with ubuntu 16.04 perl 5.22 apache 2.4.18.
I
did all the installation in the same way I did it for the old debian but the apache server is
not starting, and at the logs a get nothing but:
Mar 03 05:32:29 iac systemd[1]:
apache2.service: Control process exited, code=exited status=1
Mar 03 05:32:29 iac
systemd[1]: Failed to start LSB: Apache2 web server.
Mar 03 05:32:29 iac systemd[1]:
apache2.service: Unit entered failed state.
Mar 03 05:32:29 iac systemd[1]:
apache2.service: Failed with result 'exit-code'.
the apache config at the old
server, wich I change accordingly, was:
PerlSwitches -I /mnt/vmdata/iac/web/lib
PerlModule IAC
ServerAdmin
andres at chandia.net
ServerName iac.upf.edu
ServerAlias iac.upf.edu
DocumentRoot /mnt/vmdata/iac/web/root
use lib qw( /mnt/vmdata/iac/web/lib );
SetHandler modperl
PerlResponseHandler IAC
SetHandler
none
Alias /iac/stats_tasks/
"/mnt/vmdata/iac/iac_data/stats-tasks"
SetHandler none
Order allow,deny
Allow from all
Alias /iac/txt_output/
"/mnt/vmdata/iac/iac_data/txt_output"
SetHandler none
Order allow,deny
Allow from all
CustomLog /var/log/apache2/iac.access.log combined
ErrorLog /var/log/apache2/iac.error.log
Any suggestion on what to look for or
utimately how to solve this?
thanks a lot.
_______________________
andr̮̩̉̉s
chandÃÆÃâÃâÃÂa
NMT | Dungupeyem | Corlexim
administrador de:
Parles.upf | Amind terapia | Mapuche koyaktu | Nocando |
mail: ONG Mapuche
koyaktu | Psicoaching |
P No imprima innecesariamente.
ÃÆââ¬Å¡ÃâáCuide el medio
ambiente!
_______________________
andr̮̩s
chandÃÆÃÂa
NMT | Dungupeyem | Corlexim
administrador de:
Parles.upf | Amind terapia | Mapuche koyaktu | Nocando |
mail: ONG Mapuche
koyaktu | Psicoaching |
P No imprima innecesariamente.
ÃâáCuide el medio ambiente!
_______________________
ààààààààààààandrés
chandÃÂa
NMT | Dungupeyem | Corlexim
administrador de:
Parles.upf | Amind terapia | Mapuche koyaktu | Nocando |
mail: ONG Mapuche koyaktu | Psicoaching
|
P No imprima innecesariamente. áCuide el
medio ambiente!
_______________________________________________
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site:
http://dev.catalyst.perl.org/
_______________________
            andrés
chandÃa
NMT |
Dungupeyem | Corlexim
administrador de:
Parles.upf | Amind
terapia | Mapuche koyaktu | Nocando |
mail: ONG Mapuche koyaktu | Psicoaching |
P No imprima innecesariamente. ¡Cuide el medio ambiente!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20170303/5339bd78/attachment.htm>
More information about the Catalyst
mailing list