Software > WeeWX

Página web no disponible Weewx 3.4.0.

<< < (8/12) > >>

Amon-K:
Si, si funciona pero yo te decía despues de reiniciar la raspi.

Oscar-EA5IEL:
Tenias razón, cuando he reiniciado ya no estaba funcionando.

pi@raspberrypi:~ $ /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since mar 2016-01-26 19:01:56 CET; 2min 7s ago
  Process: 449 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Oscar-EA5IEL:
Te dice algo esto:

Jan 26 19:01:55 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="433" x-info="http://www.rsyslog.com"] start
Jan 26 19:01:55 raspberrypi rsyslogd-2307: warning: ~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ]
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Booting Linux on physical CPU 0xf00
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpuset
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpu
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpuacct
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Linux version 4.1.16-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #832 SMP Sun Jan 24 12:57:43 GMT 2016
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] cma: Reserved 8 MiB at 0x3a400000
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Memory policy: Data cache writealloc
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] On node 0 totalpages: 241664
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] free_area_init_node: node 0, pgdat 80860f00, node_mem_map b9bb4000
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]   Normal zone: 2124 pages used for memmap
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]   Normal zone: 0 pages reserved
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]   Normal zone: 241664 pages, LIFO batch:31
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] [bcm2709_smp_init_cpus] enter (9420->f3003010)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] [bcm2709_smp_init_cpus] ncores=4
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] PERCPU: Embedded 12 pages/cpu @bafb1000 s20416 r8192 d20544 u49152
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] pcpu-alloc: s20416 r8192 d20544 u49152 alloc=12*4096
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239540
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0xf4879fb2 smsc95xx.macaddr=B8:27:EB:87:9F:B2 bcm2708_fb$
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Memory: 939508K/966656K available (5944K kernel code, 534K rwdata, 1660K rodata, 440K init, 757K bss, 18956K reserved, 8192K cma-reserved)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Virtual kernel memory layout:
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     vmalloc : 0xbb800000 - 0xff000000   (1080 MB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]       .text : 0x80008000 - 0x807753c4   (7605 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]       .init : 0x80776000 - 0x807e4000   ( 440 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]       .data : 0x807e4000 - 0x80869a68   ( 535 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]        .bss : 0x8086c000 - 0x8092975c   ( 758 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Hierarchical RCU implementation.
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]      Additional per-CPU info printed with stalls.
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] NR_IRQS:608
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
Jan 26 19:01:55 raspberrypi kernel: [    0.000011] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
Jan 26 19:01:55 raspberrypi kernel: [    0.000032] Switching to timer-based delay loop, resolution 52ns
Jan 26 19:01:55 raspberrypi kernel: [    0.000310] Console: colour dummy device 80x30
Jan 26 19:01:55 raspberrypi kernel: [    0.001504] console [tty1] enabled
Jan 26 19:01:55 raspberrypi kernel: [    0.001560] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
Jan 26 19:01:55 raspberrypi kernel: [    0.001637] pid_max: default: 32768 minimum: 301
Jan 26 19:01:55 raspberrypi kernel: [    0.001998] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.002050] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.003324] Initializing cgroup subsys blkio
Jan 26 19:01:55 raspberrypi kernel: [    0.003396] Initializing cgroup subsys memory
Jan 26 19:01:55 raspberrypi kernel: [    0.003457] Initializing cgroup subsys devices
Jan 26 19:01:55 raspberrypi kernel: [    0.003508] Initializing cgroup subsys freezer
Jan 26 19:01:55 raspberrypi kernel: [    0.003572] Initializing cgroup subsys net_cls
Jan 26 19:01:55 raspberrypi kernel: [    0.003675] CPU: Testing write buffer coherency: ok

jantoni:
Te mando un privado

jantoni:
Bien.....por lo que veo en tu raspi, veo otro problema habitual, y es que no se crea el directorio para el log "/var/log/apache2"

Este problema ya lo he visto antes.....a mi me pasó también.....el caso es que no recuerdo como lo solucioné.....y en Google ya lo he visto varias veces.

Este es el extracto:

--- Citar ---pi@raspberrypi:/run $ sudo systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since mar 2016-01-26 20:01:24 CET; 2min 8s ago
  Process: 24805 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

ene 26 20:01:24 raspberrypi apache2[24805]: The apache2 configtest failed. ... (warning).
ene 26 20:01:24 raspberrypi apache2[24805]: Output of config test was:

--- Citar ---ene 26 20:01:24 raspberrypi apache2[24805]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for...ror log
ene 26 20:01:24 raspberrypi apache2[24805]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for....conf:1
--- Fin de la cita ---
ene 26 20:01:24 raspberrypi apache2[24805]: AH00014: Configuration check failed
ene 26 20:01:24 raspberrypi apache2[24805]: Action 'configtest' failed.
ene 26 20:01:24 raspberrypi apache2[24805]: The Apache error log may have more information.
ene 26 20:01:24 raspberrypi systemd[1]: apache2.service: control process exited, code=exited status=1
ene 26 20:01:24 raspberrypi systemd[1]: Failed to start LSB: Apache2 web server.
ene 26 20:01:24 raspberrypi systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
--- Fin de la cita ---

Una vez generado el directorio con sudo mkdir /var/log/apache2, al arrancar apache2 de forma manual:

--- Citar ---pi@raspberrypi:/var/log $ sudo mkdir apache2
pi@raspberrypi:/var/log $ ls -la
total 324
drwxr-xr-x  4 root root    340 ene 26 20:07 .
drwxr-xr-x 12 root root   4096 ene 24 21:20 ..
drwxr-xr-x  2 root root     40 ene 26 20:07 apache2
-rw-r-----  1 root adm   10148 ene 26 20:07 auth.log
-rw-------  1 root utmp   2688 ene 26 19:02 btmp
-rw-r-----  1 root adm   83160 ene 26 20:07 daemon.log
-rw-r-----  1 root adm    1158 ene 26 19:01 debug
-rw-r-----  1 root adm   25471 ene 26 19:01 kern.log
-rw-r--r--  1 root root 292292 ene 26 20:00 lastlog
drwx--x--x  2 root root     80 ene 26 19:01 lightdm
-rw-r-----  1 root adm   31921 ene 26 20:06 messages
-rw-r--r--  1 root root    136 ene 26 20:01 meteoclimatic.log
-rw-r-----  1 root adm  117168 ene 26 20:07 syslog
-rw-r-----  1 root adm      88 ene 26 19:02 user.log
-rw-r-----  1 root adm    4374 ene 26 19:02 weewx.log
-rw-rw-r--  1 root utmp   8832 ene 26 20:00 wtmp
-rw-r--r--  1 root root   7084 ene 26 19:01 Xorg.0.log
pi@raspberrypi:/var/log $ sudo /etc/init.d/apache2 start
[ ok ] Starting apache2 (via systemctl): apache2.service.
pi@raspberrypi:/var/log $
--- Fin de la cita ---

Bien....ahora vamos a buscar soluciones....aunque sean temporales

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa