[vz-users] You have new mail in /var/mail/pi

René W. tylonhh at gmail.com
Wed Jun 12 14:16:00 CEST 2019


OK VZ läuft und daten werden auch auf NAS geschrieben.
Jetzt möchte ich gerne den Port auf 82 ändern, da noch ein weiteres Projekt (PiHole) parallel laufen soll. Macht es da vielleicht Sinn auf Apache2 umzusteigen?
Ich habe nun erstmal den nginx Server versucht auf Port 82 zu ändern.
In der /etc/nginx/sites-available/volkszaehler steht nun
# Volkszaehler

include /etc/nginx/proxy_params;

server {
  listen 82;
  listen [::]:82;

  location / {
    proxy_pass http://127.0.0.1:82;
    include /etc/nginx/proxy_params;
  }

  location /middleware {
    rewrite ^/middleware(.php)?(/.*)? $2;
    proxy_pass http://127.0.0.1:82/;
  }

  location /api {
    rewrite ^/api(/.*)? $1;
    proxy_pass http://127.0.0.1:82/;
  }

  location /frontend {
    rewrite ^/frontend/(.*) $1;
    proxy_pass http://127.0.0.1:82/;
  }
}

Dann habe ich sudo systemctl restart nginx gemacht
Und sudo netstat -tulpn spuckt das aus:
pi at raspberrypi:~ $ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:5582            0.0.0.0:*               LISTEN      491/php
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1841/php
tcp        0      0 0.0.0.0:82              0.0.0.0:*               LISTEN      1940/nginx: master
tcp        0      0 0.0.0.0:8082            0.0.0.0:*               LISTEN      491/php
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      409/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      991/exim4
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      608/mysqld
tcp6       0      0 :::82                   :::*                    LISTEN      1940/nginx: master
tcp6       0      0 :::22                   :::*                    LISTEN      409/sshd
tcp6       0      0 ::1:25                  :::*                    LISTEN      991/exim4
udp        0      0 0.0.0.0:37423           0.0.0.0:*                           303/avahi-daemon: r
udp        0      0 0.0.0.0:68              0.0.0.0:*                           488/dhcpcd
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           303/avahi-daemon: r
udp6       0      0 :::55792                :::*                                303/avahi-daemon: r
udp6       0      0 :::546                  :::*                                488/dhcpcd
udp6       0      0 :::5353                 :::*                                303/avahi-daemon: r

In der vzlogger.conf habe ich auch die channels angepasst in
"middleware": "http://192.168.178.22:82/middleware.php",

Hab ich noch was vergessen? Denn wenn ich http://192.168.178.22:82/frontend/ aufrufe erhalte ich eine Fehlermeldung „500 Internal Server Error nginx/1.14.2“



Von: Andreas Goetz
Gesendet: Dienstag, 11. Juni 2019 22:27
An: volkszaehler.org - users
Betreff: Re: [vz-users] You have new mail in /var/mail/pi

...oder :update, meist klappt das!

Am 11.06.2019 um 22:03 schrieb Frank Richter <frank.richter83 at gmail.com>:
Die vorhandenen Datensätze sind nicht besonders wertvoll, oder?

Dann am besten nochmal neu: die 2 Tabellen löschen und dann entweder einen Dump vom Image erstellen und importieren oder einfach:

php /home/pi/volkszaehler.org/bin/doctrine orm:schema-tool:create

René W. <tylonhh at gmail.com> schrieb am Di., 11. Juni 2019, 21:43:
Ok, ich habe Zugriff. Der angelegte Benutzer hatte nur Zugriff von localhost. Mit Änderung auf @% hat es geklappt.
Die DB scheint aber nicht alle Tabellen sauber zu haben. Wie kann ich die „nachpflegen“?

 
Von: Andreas Goetz
Gesendet: Dienstag, 11. Juni 2019 21:37
An: volkszaehler.org - users
Betreff: Re: [vz-users] You have new mail in /var/mail/pi
 
Dann hat- wie vermutet- Dein User keinen Zugriff auf die DB. Eindeutiger wirds nicht ;)

On 11. Jun 2019, at 21:09, René W. <tylonhh at gmail.com> wrote:
 
Ich teste gerade:
pi at raspberrypi:~ $ mysql -h192.168.178.58 -P3306 -uroot -pXXXXXX volkzaehler
ERROR 1045 (28000): Access denied for user 'root'@'PiHole.fritz.box' (using password: YES)
 
Von: Andreas Goetz
Gesendet: Dienstag, 11. Juni 2019 20:52
An: volkszaehler.org - users
Betreff: Re: [vz-users] You have new mail in /var/mail/pi
 
Mhhm. Und Du bist sicher, dass der gleiche User auf der Kommandozeile funktioniert, also:
 
                mysql -u root2 -ppassword volkszaehler
 
Viele Grüße, 
Andreas
 


On 11. Jun 2019, at 20:21, René W. <tylonhh at gmail.com> wrote:
 
Das habe ich, dachte ich zumindest. Hab extra nochmal einen root2 User mit allen Privilegien angelegt. Ich erhalte immer noch die Meldung. Auch ein Auskommentieren brachte kein Erfolg.
 
LG
 
Von: Frank Richter
Gesendet: Dienstag, 11. Juni 2019 19:02
An: volkszaehler.org - users
Betreff: Re: [vz-users] You have new mail in /var/mail/pi
 
In der config.yaml für den DB-Admin passende Zugangsdaten eingeben.
 
René W. <tylonhh at gmail.com> schrieb am Di., 11. Juni 2019, 18:51:
Moin,
 
ich erhalte regelmäßig im SSH „You have new mail in /var/mail/pi“
In der Log steht folgendes:
 
>From pi at raspberrypi Tue Jun 11 16:50:01 2019
Return-path: <pi at raspberrypi>
Envelope-to: pi at raspberrypi
Delivery-date: Tue, 11 Jun 2019 16:50:01 +0200
Received: from pi by raspberrypi.fritz.box with local (Exim 4.92)
                (envelope-from <pi at raspberrypi>)
                id 1hai65-0002MX-Lf
                for pi at raspberrypi; Tue, 11 Jun 2019 16:50:01 +0200
From: root at raspberrypi (Cron Daemon)
To: pi at raspberrypi
Subject: Cron <pi at raspberrypi> php /var/www/volkszaehler.org/bin/aggregate run -m delta -l minute >/dev/null
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/pi>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=pi>
Message-Id: <E1hai65-0002MX-Lf at raspberrypi.fritz.box>
Date: Tue, 11 Jun 2019 16:50:01 +0200
 
In AbstractMySQLDriver.php line 106:
                                                                              
  An exception occurred in driver: SQLSTATE[HY000] [1698] Access denied for u 
  ser 'root'@'localhost'                                                       
                                                                               
In PDOConnection.php line 31:
                                                                   
  SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' 
                                                                    
In PDOConnection.php line 27:
                                                                   
  SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' 
                                                                    
run [-l|--level LEVEL] [-m|--mode MODE] [-p|--periods PERIODS] [-v|--verbose] [--] [<uuid>...]
 
Was muss ich nun machen?
 
LG
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20190612/59cdc298/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 85D3F8AAA33E458986ACF29DD1B62125.png
Type: image/png
Size: 63524 bytes
Desc: not available
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20190612/59cdc298/attachment-0001.png>


More information about the volkszaehler-users mailing list