Software > WeeWX

weewx 3.9.2

<< < (3/4) > >>

miguelru:
Ahí pego lo que responde :

Last login: Sat Oct 26 09:11:02 2019 from 192.168.1.34
pi@raspberrypi:~ $ sudo cat /usr/lib/tmpfiles.d/var.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

q /var 0755 - - -

L /var/run - - - - ../run

d /var/log 0755 - - -
f /var/log/wtmp 0664 root utmp -
f /var/log/btmp 0660 root utmp -
f /var/log/lastlog 0664 root utmp -

d /var/cache 0755 - - -

d /var/lib 0755 - - -

d /var/spool 0755 - - -
pi@raspberrypi:~ $

miguelru:
Este el resultado de apache2 status:

pi@raspberrypi:~ $ sudo service apache2 status
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2019-10-26 11:01:19 UTC; 7min ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 377 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

oct 26 11:01:19 raspberrypi apachectl[377]: AH00557: apache2: apr_sockaddr_info_get() failed for ras
oct 26 11:01:19 raspberrypi apachectl[377]: AH00558: apache2: Could not reliably determine the serve
oct 26 11:01:19 raspberrypi apachectl[377]: (2)No such file or directory: AH02291: Cannot access dir
oct 26 11:01:19 raspberrypi apachectl[377]: (2)No such file or directory: AH02291: Cannot access dir
oct 26 11:01:19 raspberrypi apachectl[377]: AH00014: Configuration check failed
oct 26 11:01:19 raspberrypi apachectl[377]: Action 'start' failed.
oct 26 11:01:19 raspberrypi apachectl[377]: The Apache error log may have more information.
oct 26 11:01:19 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status
oct 26 11:01:19 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
oct 26 11:01:19 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
lines 1-16/16 (END)...skipping...
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2019-10-26 11:01:19 UTC; 7min ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 377 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

oct 26 11:01:19 raspberrypi apachectl[377]: AH00557: apache2: apr_sockaddr_info_get() failed for raspberrypi
oct 26 11:01:19 raspberrypi apachectl[377]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerNam
oct 26 11:01:19 raspberrypi apachectl[377]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
oct 26 11:01:19 raspberrypi apachectl[377]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/ap
oct 26 11:01:19 raspberrypi apachectl[377]: AH00014: Configuration check failed
oct 26 11:01:19 raspberrypi apachectl[377]: Action 'start' failed.
oct 26 11:01:19 raspberrypi apachectl[377]: The Apache error log may have more information.
oct 26 11:01:19 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
oct 26 11:01:19 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
oct 26 11:01:19 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
~

jmviper:
Ok prueba a editarlo con sudo nano /usr/lib/tmpfiles.d/var.conf añadiendo la línea en negrita que pongo a continuación y lo guardas y reinicias raspi a ver qué tal:

q /var 0755 - - -

L /var/run - - - - ../run

d /var/log 0755 - - -
f /var/log/wtmp 0664 root utmp -
f /var/log/btmp 0660 root utmp -
f /var/log/lastlog 0664 root utmp -
d /var/log/apache2 755 root adm -

d /var/cache 0755 - - -

d /var/lib 0755 - - -

d /var/spool 0755 - - -

miguelru:
Pues si, efectivamente se ha creado /var/log y apache2 arranca y esta funcionando aunque hay un par de lineas que indican algún tipo de fallo que no se si se pueden despreciar. Aparentemente funciona bien.  apla3
Gracias jmviper.

Last login: Sat Oct 26 11:53:53 2019
pi@raspberrypi:~ $ df -h
S.ficheros     Tamaño Usados  Disp Uso% Montado en
/dev/root         27G   6,3G   19G  26% /
devtmpfs         459M      0  459M   0% /dev
tmpfs            464M      0  464M   0% /dev/shm
tmpfs            464M    13M  451M   3% /run
tmpfs            5,0M   4,0K  5,0M   1% /run/lock
tmpfs            464M      0  464M   0% /sys/fs/cgroup
tmpfs             50M   208K   50M   1% /var/log
/dev/sda6        253M    52M  201M  21% /boot
tmpfs             93M      0   93M   0% /run/user/1000
pi@raspberrypi:~ $ sudo systemctl status apache2

● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2019-10-26 11:53:48 UTC; 20min ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 369 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 427 (apache2)
    Tasks: 55 (limit: 2200)
   Memory: 7.2M
   CGroup: /system.slice/apache2.service
           ├─427 /usr/sbin/apache2 -k start
           ├─428 /usr/sbin/apache2 -k start
           └─429 /usr/sbin/apache2 -k start

oct 26 11:53:46 raspberrypi systemd[1]: Starting The Apache HTTP Server...
oct 26 11:53:48 raspberrypi apachectl[369]: AH00557: apache2: apr_sockaddr_info_get() failed for raspberrypi
oct 26 11:53:48 raspberrypi apachectl[369]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerNam
oct 26 11:53:48 raspberrypi systemd[1]: Started The Apache HTTP Server.

jmviper:
Ok perfecto  :)

Más que un error es una advertencia ya que no evita su funcionamiento. Está diciendo que no hay directiva ServerName y que usa la dirección de localhost por defecto.

Si quieres quitar eso prueba a editar apache2.conf:

sudo nano /etc/apache2/apache2.conf

Localiza la línea donde pone

DefaultRuntimeDir ${APACHE_RUN_DIR}

y antes de ella pon (no tras una # o si no actúa de comentario)

ServerName localhost

Después reinicia apache2

sudo service apache2 restart

Deberían de haberse ido esas líneas.

Qué te pone ahora df -h ? Qué porcentaje de /var/log hay ocupado ?

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa