[Catalyst] Change of server

Rajesh Kumar Mallah mallah at redgrape.tech
Fri Mar 3 12:30:04 GMT 2017


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
>
> <VirtualHost
> *:80>
>         ServerAdmin andres at chandia.net
>         ServerName local.iac
>         ServerAlias local.iac
>         DocumentRoot /var/www/web/root
>         <Perl>
>
>         use lib qw( /var/www/web/lib );
>
>         </Perl>
>         <Location />
>                
> SetHandler          modperl
>                
> PerlResponseHandler IAC
>         </Location>
>
>         <Location "/static">
>                
> SetHandler none
>         </Location>
>
>         Alias /iac/stats_tasks/
> "/srv/iac_data/stats-tasks"
>        
> <Location "/iac/stats_tasks/">
>                
> SetHandler none
>                
> Order allow,deny
>                
> Allow from all
>     </Location>
>
>         Alias /iac/txt_output/
> "/srv/iac_data/txt_output"
>        
> <Location "/iac/txt_output/">
>                
> SetHandler none
>                
> Order allow,deny
>                
> Allow from all
>     </Location>
>
>         CustomLog /var/log/apache2/local.iac.access.log
> combined
>         ErrorLog
> /var/log/apache2/local.iac.error.log
> </VirtualHost>
>
>
> 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" andres at 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 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/
>









More information about the Catalyst mailing list