Re: [Catalyst] Change of server

2017-03-06 Thread Hartmaier Alexander

Don't use mod_perl!

Look at 
https://metacpan.org/pod/distribution/Catalyst-Manual/lib/Catalyst/Manual/Deployment/Apache/FastCGI.pod

Best regards, Alex

On 2017-03-03 06:02, "Andrés Chandía" wrote:
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 and...@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
[chandia.net][http://mail.chandia.net/images/ico_tw.png]
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@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/




*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be 
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
___
List: Catalyst@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía


root@iac:/home/andres# a2dissite local.iac.conf (the configuration with 
Catalyst)
Site
local.iac disabled.
To activate the new configuration, you need to run:
 
service apache2 reload
root@iac:/home/andres# /etc/init.d/apache2 restart
[ ok ]
Restarting apache2 (via systemctl): apache2.service.

and there you have it:

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      1148/mysqld     
tcp        0      0
0.0.0.0:22             
0.0.0.0:*              
LISTEN      1129/sshd       
tcp6       0      0
:::80                  
:::*                   
LISTEN      17149/apache2   
tcp6       0      0
:::22                  
:::*                   
LISTEN      1129/sshd   




El
Vie, 3 de Marzo de 2017, 16:53, Hector Azpurua escribió:
 
Did the basic Apache config with the 'Hello world' work? That is, without all
the perl configs?




2017-03-03 12:38 GMT-03:00 "Andrés
Chandía" and...@chandia.net>:

Unfortunately not, 
root@iac:/home/andres# netstat -lnp
Active
Internet connections (only servers)
Proto Recv-Q Send-Q Local
Address   Foreign Address State   PID/Program name
tcp0 
0 127.0.0.1:3306  0.0.0.0:*  
LISTEN  1148/mysqld 
tcp0  0 0.0.0.0:22  0.0.0.0:*   LISTEN  
1129/sshd 
 
tcp6   0  0 :::22   :::*LISTEN 
1129/sshd   
Active UNIX domain sockets (only servers)
Proto
RefCnt Flags   Type   State I-Node   PID/Program namePath
unix
 2  [ ACC ] STREAM LISTENING 176251464/systemd   
/run/user/1000/systemd/private
unix  2  [ ACC ] SEQPACKET  LISTENING 9915
1/init  /run/udev/control
unix  2  [ ACC ] STREAM LISTENING
132671/init  /var/lib/lxd/unix.socket
unix  2  [ ACC ] STREAM
LISTENING 132551/init  /run/uuidd/request
unix  2  [ ACC ]
STREAM LISTENING 132651/init 
/var/run/dbus/system_bus_socket
unix  2  [ ACC ] STREAM LISTENING 
   132661/init  /run/acpid.socket
unix  2  [ ACC ] STREAM
LISTENING 132811/init  /run/snapd.socket
unix  2  [ ACC ]
STREAM LISTENING 132821/init  /run/snapd-snap.socket
unix  2 
[ ACC ] STREAM LISTENING 9911 1/init  
/run/systemd/private
unix  2  [ ACC ] STREAM LISTENING 9922 1/init 
/run/systemd/journal/stdout
unix  2  [ ACC ] STREAM LISTENING 9925
1/init  /run/lvm/lvmpolld.socket
unix  2  [ ACC ] STREAM
LISTENING 168191148/mysqld /var/run/mysqld/mysqld.sock
unix  2  [ ACC
] STREAM LISTENING 9931 1/init  
/run/systemd/fsck.progress
unix  2  [ ACC ] STREAM LISTENING 9932 1/init 
/run/lvm/lvmetad.socket
unix  2  [ ACC ] STREAM LISTENING 15420   
1161/iscsid @ISCSIADM_ABSTRACT_NAMESPACE



root@iac:/home/andres#
ps aux|grep apache
root 16949  0.0  0.0  14228  1012 pts/0S+   16:37   0:00 grep
--color=auto apache





I assume the command
keeps running in that state and while it is doing so , can you check if apache2 
listening on
configured port (80) and if it is so does , is it serving the app in expected 
manner ?   regds
mallah.






___

            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@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!
___
List: Catalyst@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Hector Azpurua
Did the basic Apache config with the 'Hello world' work? That is, without
all the perl configs?




2017-03-03 12:38 GMT-03:00 "Andrés Chandía" :

> Unfortunately not,
> root@iac:/home/andres# netstat -lnp
> Active Internet
> connections (only servers)
> Proto Recv-Q Send-Q Local Address   Foreign Address
>  State   PID/Program name
> tcp0  0 127.0.0.1:3306  0.0.0.0:*
> LISTEN  1148/mysqld
> tcp0  0 0.0.0.0:22
> 0.0.0.0:*   LISTEN  1129/sshd
> tcp6   0  0 :::22
>:::*LISTEN  1129/sshd
> Active UNIX domain sockets
> (only servers)
> Proto RefCnt Flags   Type   State I-Node   PID/Program
> namePath
> unix  2  [ ACC ] STREAM LISTENING 176251464/systemd
>   /run/user/1000/systemd/private
> unix  2  [ ACC ] SEQPACKET  LISTENING 9915
>   1/init  /run/udev/control
> unix  2  [ ACC ] STREAM LISTENING
> 132671/init  /var/lib/lxd/unix.socket
> unix  2  [ ACC ] STREAM
> LISTENING 132551/init  /run/uuidd/request
> unix  2  [ ACC ]
> STREAM LISTENING 132651/init  
> /var/run/dbus/system_bus_socket
> unix  2  [ ACC ] STREAM LISTENING 132661/init
> /run/acpid.socket
> unix  2  [ ACC ] STREAM LISTENING 132811/init
>/run/snapd.socket
> unix  2  [ ACC ] STREAM LISTENING 13282
> 1/init  /run/snapd-snap.socket
> unix  2  [ ACC ] STREAM LISTENING
>9911 1/init  /run/systemd/private
> unix  2  [ ACC ] STREAM
> LISTENING 9922 1/init  /run/systemd/journal/stdout
> unix  2  [ ACC
> ] STREAM LISTENING 9925 1/init  
> /run/lvm/lvmpolld.socket
> unix
>  2  [ ACC ] STREAM LISTENING 168191148/mysqld
> /var/run/mysqld/mysqld.sock
> unix  2  [ ACC ] STREAM LISTENING 9931
> 1/init  /run/systemd/fsck.progress
> unix  2  [ ACC ] STREAM
> LISTENING 9932 1/init  /run/lvm/lvmetad.socket
> unix  2  [ ACC ]
>   STREAM LISTENING 154201161/iscsid 
> @ISCSIADM_ABSTRACT_NAMESPACE
>
>
>
> root@iac:/home/andres# ps aux|grep apache
> root 16949  0.0  0.0  14228
> 1012 pts/0S+   16:37   0:00 grep --color=auto apache
>
>
>
>
>
> I
> assume the command keeps running in that state and while it is doing so , can 
> you check if
> apache2 listening on configured port (80) and if it is so does , is it 
> serving the app in
> expected manner ?   regds mallah.
>
>
>
>
>
> ___
> andrés chandía
> [image: chandia.net] 
> 
> 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@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/
>
>
___
List: Catalyst@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía


Unfortunately not, 
root@iac:/home/andres# netstat -lnp
Active Internet
connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address   
 State   PID/Program name
tcp0  0 127.0.0.1:3306  0.0.0.0:*  
LISTEN  1148/mysqld 
tcp0  0 0.0.0.0:22 
0.0.0.0:*   LISTEN  1129/sshd   
tcp6   0  0 :::22   
   :::*LISTEN  1129/sshd   
Active UNIX domain sockets
(only servers)
Proto RefCnt Flags   Type   State I-Node   PID/Program
namePath
unix  2  [ ACC ] STREAM LISTENING 176251464/systemd 
  /run/user/1000/systemd/private
unix  2  [ ACC ] SEQPACKET  LISTENING 9915  
  1/init  /run/udev/control
unix  2  [ ACC ] STREAM LISTENING
132671/init  /var/lib/lxd/unix.socket
unix  2  [ ACC ] STREAM
LISTENING 132551/init  /run/uuidd/request
unix  2  [ ACC ]
STREAM LISTENING 132651/init  
/var/run/dbus/system_bus_socket
unix  2  [ ACC ] STREAM LISTENING 132661/init 
/run/acpid.socket
unix  2  [ ACC ] STREAM LISTENING 132811/init  
   /run/snapd.socket
unix  2  [ ACC ] STREAM LISTENING 13282   
1/init  /run/snapd-snap.socket
unix  2  [ ACC ] STREAM LISTENING 
   9911 1/init  /run/systemd/private
unix  2  [ ACC ] STREAM
LISTENING 9922 1/init  /run/systemd/journal/stdout
unix  2  [ ACC
] STREAM LISTENING 9925 1/init  
/run/lvm/lvmpolld.socket
unix
 2  [ ACC ] STREAM LISTENING 168191148/mysqld
/var/run/mysqld/mysqld.sock
unix  2  [ ACC ] STREAM LISTENING 9931
1/init  /run/systemd/fsck.progress
unix  2  [ ACC ] STREAM
LISTENING 9932 1/init  /run/lvm/lvmetad.socket
unix  2  [ ACC ]  
  STREAM LISTENING 154201161/iscsid 
@ISCSIADM_ABSTRACT_NAMESPACE



root@iac:/home/andres# ps aux|grep apache
root 16949  0.0  0.0  14228 
1012 pts/0S+   16:37   0:00 grep --color=auto apache





I
assume the command keeps running in that state and while it is doing so , can 
you check if
apache2 listening on configured port (80) and if it is so does , is it serving 
the app in
expected manner ?   regds mallah.




___

            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@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah


I assume the command keeps running in that state and
while it is doing so , can you check if apache2 listening
on configured port (80) and if it is so does , is it serving
the app in expected manner ?


regds
mallah.







___
List: Catalyst@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía


I modified a little bit your command, I put the semicolon at the end and now 
there is no
error message:

root@iac:/home/andres# ( .  /etc/apache2/envvars   && 
apache2  -f /etc/apache2/apache2.conf  -e Debug   -X ; )
[Fri Mar 03 15:02:48.333291
2017] [so:debug] [pid 16801] mod_so.c(266): AH01575: loaded module 
access_compat_module from
/usr/lib/apache2/modules/mod_access_compat.so
[Fri Mar 03 15:02:48.333795 2017]
[so:debug] [pid 16801] mod_so.c(266): AH01575: loaded module alias_module from
/usr/lib/apache2/modules/mod_alias.so
[Fri Mar 03 15:02:48.334077 2017] [so:debug] [pid
16801] mod_so.c(266): AH01575: loaded module auth_basic_module from
/usr/lib/apache2/modules/mod_auth_basic.so
[Fri Mar 03 15:02:48.334355 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module authn_core_module from
/usr/lib/apache2/modules/mod_authn_core.so
[Fri Mar 03 15:02:48.334632 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module authn_file_module from
/usr/lib/apache2/modules/mod_authn_file.so
[Fri Mar 03 15:02:48.335286 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module authz_core_module from
/usr/lib/apache2/modules/mod_authz_core.so
[Fri Mar 03 15:02:48.335856 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module authz_host_module from
/usr/lib/apache2/modules/mod_authz_host.so
[Fri Mar 03 15:02:48.336289 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module authz_user_module from
/usr/lib/apache2/modules/mod_authz_user.so
[Fri Mar 03 15:02:48.336575 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module autoindex_module from
/usr/lib/apache2/modules/mod_autoindex.so
[Fri Mar 03 15:02:48.336930 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module deflate_module from
/usr/lib/apache2/modules/mod_deflate.so
[Fri Mar 03 15:02:48.337203 2017] [so:debug] [pid
16801] mod_so.c(266): AH01575: loaded module dir_module from
/usr/lib/apache2/modules/mod_dir.so
[Fri Mar 03 15:02:48.337488 2017] [so:debug] [pid
16801] mod_so.c(266): AH01575: loaded module env_module from
/usr/lib/apache2/modules/mod_env.so
[Fri Mar 03 15:02:48.337767 2017] [so:debug] [pid
16801] mod_so.c(266): AH01575: loaded module filter_module from
/usr/lib/apache2/modules/mod_filter.so
[Fri Mar 03 15:02:48.338042 2017] [so:debug] [pid
16801] mod_so.c(266): AH01575: loaded module mime_module from
/usr/lib/apache2/modules/mod_mime.so
[Fri Mar 03 15:02:48.338347 2017] [so:debug] [pid
16801] mod_so.c(266): AH01575: loaded module mpm_prefork_module from
/usr/lib/apache2/modules/mod_mpm_prefork.so
[Fri Mar 03 15:02:48.338639 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module negotiation_module from
/usr/lib/apache2/modules/mod_negotiation.so
[Fri Mar 03 15:02:48.339436 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module perl_module from
/usr/lib/apache2/modules/mod_perl.so
[Fri Mar 03 15:02:48.339782 2017] [so:debug] [pid
16801] mod_so.c(266): AH01575: loaded module setenvif_module from
/usr/lib/apache2/modules/mod_setenvif.so
[Fri Mar 03 15:02:48.340092 2017] [so:debug]
[pid 16801] mod_so.c(266): AH01575: loaded module status_module from
/usr/lib/apache2/modules/mod_status.so
[debug] Debug messages enabled
[debug]
Statistics enabled
[debug] Loaded Config "/var/www/web/iac.conf"
[debug]
Setting up auth realm default
[debug] Session Store file: /tmp/iac/session_data
[debug] Loaded plugins:
.-.
| Catalyst::Plugin::Authentication  0.10023 

 |
| Catalyst::Plugin::ConfigLoader  0.34
   |
| Catalyst::Plugin::Session  0.4
 |
| Catalyst::Plugin::Session::State::Cookie  0.17  
   |
|
Catalyst::Plugin::Session::Store::FastMmap  0.16
  
 |
'-'

[debug] Loaded PSGI Middleware:
.-.
| Catalyst::Middleware::Stash   

 |
| Plack::Middleware::HTTPExceptions   
   |
| Plack::Middleware::RemoveRedundantBody  0.04  
 |
| Plack::Middleware::FixMissingBodyInRedirect 
0.10   |
|
Plack::Middleware::ContentLength
  
 |
| Plack::Middleware::MethodOverride  0.15   
  
   |
| Plack::Middleware::Head   

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah


any idea why the error below ?

-e: command not found








___
List: Catalyst@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía


Already done, it made no difference thanks

Its not typo , the reason is that the env variable ${APACHE_LOCK_DIR} is not 
set  ,  . 
/etc/apache2/envvars  takes care of that part.



___

            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@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
Dear Andres ,

in my systemd based system it is possible to start apache2 from root
prompt like below:

# ( .  /etc/apache2/envvars   &&  apache2  -f /etc/apache2/apache2.conf 
-e Debug   -X )


and it does spits out the messages to terminal. After stopping the apache2
using systemctl try to start using the command above.

the above command executes in a subshell , first part populates
env variable , -f is path to main config -e sets level to debug
and -X prevents from detaching from terminal.


regds
mallah.















>
>
> 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 
>
> ps aux|grep apache
> root      1738  0.0  0.0  14228  1012
> pts/0    S+   09:30   0:00 grep --color=auto apache
>
> /dev/mapper/iac--vg-root  5.4G  2.2G  3.0G  43% /
>
> The
> directories you mention, were NFS mounted on the system at the old
server, new server
> everything is local...
>
> here's the new config:
>
>         PerlSwitches -I /var/www/web/lib
>         PerlModule IAC
>
>  *:80>
>         ServerAdmin and...@chandia.net
>         ServerName local.iac
>         ServerAlias local.iac
>         DocumentRoot /var/www/web/root
>         
>
>         use lib qw( /var/www/web/lib );
>
>         
>         
>                
> SetHandler          modperl
>                
> PerlResponseHandler IAC
>         
>
>         
>                
> SetHandler none
>         
>
>         Alias /iac/stats_tasks/
> "/srv/iac_data/stats-tasks"
>        
> 
>                
> SetHandler none
>                
> Order allow,deny
>                
> Allow from all
>     
>
>         Alias /iac/txt_output/
> "/srv/iac_data/txt_output"
>        
> 
>                
> SetHandler none
>                
> Order allow,deny
>                
> Allow from all
>     
>
>         CustomLog /var/log/apache2/local.iac.access.log
> combined
>         ErrorLog
> /var/log/apache2/local.iac.error.log
> 
>
>
> Thanks
> again
>
>
>
> El Vie, 3 de Marzo de 2017, 9:05, Juan Miguel Paredes
> escribió:
>
>
>
> On Fri, Mar 3, 2017 at 7:35 AM, "Andrés
> Chandía" and...@chandia.net> wrote:
> 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'.
>
>
>
>
>
> Are other stale processes from your application and/or web server still
running when you
> try to start Apache2? This kind of "generic" error messages are usually
reflecting
> things like ports already opened, not enough disk space, wrong
permissions and so
> on.  Try to check the basics and see if something else stands
out.  It
> appears 

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah

Its not typo , the reason is that the env variable
${APACHE_LOCK_DIR} is not set  ,

.  /etc/apache2/envvars  takes care of that part.


> 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 <and...@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 somewh

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah

Dear Andres ,

in my systemd based system it is possible to start apache2 from root
prompt like below:

# ( .  /etc/apache2/envvars   &&  apache2  -f /etc/apache2/apache2.conf 
-e Debug   -X )


and it does spits out the messages to terminal. After stopping the
apache2 using systemctl try to start using the command above.

the above command executes in a subshell , first part populates
env variable , -f is path to main config -e sets level to debug
and -X prevents from detaching from terminal.


regds
mallah.















>
>
> 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 
>
> ps aux|grep apache
> root      1738  0.0  0.0  14228  1012
> pts/0    S+   09:30   0:00 grep --color=auto apache
>
> /dev/mapper/iac--vg-root  5.4G  2.2G  3.0G  43% /
>
> The
> directories you mention, were NFS mounted on the system at the old server,
> new server
> everything is local...
>
> here's the new config:
>
>         PerlSwitches -I /var/www/web/lib
>         PerlModule IAC
>
>  *:80>
>         ServerAdmin and...@chandia.net
>         ServerName local.iac
>         ServerAlias local.iac
>         DocumentRoot /var/www/web/root
>         
>
>         use lib qw( /var/www/web/lib );
>
>         
>         
>                
> SetHandler          modperl
>                
> PerlResponseHandler IAC
>         
>
>         
>                
> SetHandler none
>         
>
>         Alias /iac/stats_tasks/
> "/srv/iac_data/stats-tasks"
>        
> 
>                
> SetHandler none
>                
> Order allow,deny
>                
> Allow from all
>     
>
>         Alias /iac/txt_output/
> "/srv/iac_data/txt_output"
>        
> 
>                
> SetHandler none
>                
> Order allow,deny
>                
> Allow from all
>     
>
>         CustomLog /var/log/apache2/local.iac.access.log
> combined
>         ErrorLog
> /var/log/apache2/local.iac.error.log
> 
>
>
> Thanks
> again
>
>
>
> El Vie, 3 de Marzo de 2017, 9:05, Juan Miguel Paredes
> escribió:
>
>
>
> On Fri, Mar 3, 2017 at 7:35 AM, "Andrés
> Chandía" and...@chandia.net> wrote:
> 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'.
>
>
>
>
>
> Are other stale processes from your application and/or web server still
> running when you
> try to start Apache2? This kind of "generic" error messages are usually
> reflecting
> things like ports already opened, not enough disk space, wrong permissions
> and so
> on.  Try to check the basics and see if something else 

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
age 
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@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
and...@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 imprim

Re: [Catalyst] Change of server

2017-03-03 Thread Hector Azpurua
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 <and...@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@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

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía


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@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

Re: [Catalyst] Change of server

2017-03-03 Thread mallah
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 <and...@chandia.net> 
Date: 3/3/17  12:05  (GMT+05:30) To: The elegant MVC web framework 
<catalyst@lists.scsys.co.uk> 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@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
and...@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 

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía


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  

ps aux|grep apache
root      1738  0.0  0.0  14228  1012
pts/0    S+   09:30   0:00 grep --color=auto apache

/dev/mapper/iac--vg-root  5.4G  2.2G  3.0G  43% /

The
directories you mention, were NFS mounted on the system at the old server, new 
server
everything is local...

here's the new config:

        PerlSwitches -I /var/www/web/lib
        PerlModule IAC


        ServerAdmin and...@chandia.net
        ServerName local.iac
        ServerAlias local.iac
        DocumentRoot /var/www/web/root
        

        use lib qw( /var/www/web/lib );

        
        
               
SetHandler          modperl
               
PerlResponseHandler IAC
        

        
               
SetHandler none
        

        Alias /iac/stats_tasks/
"/srv/iac_data/stats-tasks"
       

               
SetHandler none
               
Order allow,deny
               
Allow from all
    

        Alias /iac/txt_output/
"/srv/iac_data/txt_output"
       

               
SetHandler none
               
Order allow,deny
               
Allow from all
    

        CustomLog /var/log/apache2/local.iac.access.log
combined
        ErrorLog
/var/log/apache2/local.iac.error.log



Thanks
again



El Vie, 3 de Marzo de 2017, 9:05, Juan Miguel Paredes
escribió:
 


On Fri, Mar 3, 2017 at 7:35 AM, "Andrés
Chandía" and...@chandia.net> wrote:
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'.





Are other stale processes from your application and/or web server still running 
when you
try to start Apache2? This kind of "generic" error messages are usually 
reflecting
things like ports already opened, not enough disk space, wrong permissions and 
so
on.  Try to check the basics and see if something else stands out.  It
appears that you're mounting several (perhaps remote) directories for your 
environment, maybe
try to also check network connectivity / disk space / log files on those 
backends too.



 


___

            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@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/


Re: [Catalyst] Change of server

2017-03-03 Thread Juan Miguel Paredes
On Fri, Mar 3, 2017 at 7:35 AM, "Andrés Chandía"  wrote:

> 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'.
>
>
>
Are other stale processes from your application and/or web server still
running when you try to start Apache2? This kind of "generic" error
messages are usually reflecting things like ports already opened, not
enough disk space, wrong permissions and so on.  Try to check the basics
and see if something else stands out.  It appears that you're mounting
several (perhaps remote) directories for your environment, maybe try to
also check network connectivity / disk space / log files on those backends
too.
___
List: Catalyst@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/


Re: [Catalyst] Change of server

2017-03-02 Thread Andrés Chandía


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@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
and...@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 

Re: [Catalyst] Change of server

2017-03-02 Thread mallah


The real error message is somewhere try
systemctl status apache2
To find the error messages or tail the error Logs. 
RegdsMallah


Sent from my Samsung Galaxy smartphone.
 Original message From: Andrés Chandía  
Date: 3/3/17  10:32  (GMT+05:30) To: catalyst@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 and...@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!
___
List: Catalyst@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/