Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPM does not start - Symphony error #953

Open
dspreitz opened this issue Apr 17, 2024 · 1 comment
Open

PPM does not start - Symphony error #953

dspreitz opened this issue Apr 17, 2024 · 1 comment

Comments

@dspreitz
Copy link

dspreitz commented Apr 17, 2024

Hi,
I did a fresh install of bookworm on a raspberry pi and then followed the volkszähler installation instructions:
https://wiki.volkszaehler.org/software/middleware/installation

1st bug that I found is, that /home/pi/volkszaehler directory need o+x permissions. Otherwise apache2 will not work (redirect from /var/www/ will fail due to permissions).
drwxr-xr-x 13 pi pi 4.0K Apr 17 13:01 volkszaehler.org fixes this problem.

2nd problem is, that the ppm will not start correctly:

pi@raspberrypi:~/volkszaehler.org $ /usr/bin/php /var/www/volkszaehler.org/vendor/bin/ppm start -c /var/www/volkszaehler.org/etc/middleware.json --cgi-path=/usr/bin/php

Read configuration /home/pi/volkszaehler.org/etc/middleware.json, modified by command arguments.
/home/pi/volkszaehler.org
+---------------------------+--------------------------+
| bridge                    | HttpKernel               |
| host                      | 127.0.0.1                |
| port                      | 8080                     |
| workers                   | 8                        |
| app-env                   | dev                      |
| debug                     | 0                        |
| logging                   | 1                        |
| static-directory          |                          |
| bootstrap                 | PHPPM\Bootstraps\Symfony |
| max-requests              | 1000                     |
| max-execution-time        | 30                       |
| memory-limit              | -1                       |
| limit-concurrent-requests |                          |
| request-body-buffer       |                          |
| ttl                       | 0                        |
| populate-server-var       | 1                        |
| socket-path               | .ppm/run/                |
| pidfile                   | .ppm/ppm.pid             |
| reload-timeout            | 30                       |
| cgi-path                  | /usr/bin/php             |
+---------------------------+--------------------------+
Starting PHP-PM with 8 workers, using StreamSelectLoop ...

--- Worker 5505 stderr ---
**Uncaught Exception: Symfony Kernel class was not found in the configured locations. Given: '\AppKernel'**
Application bootstrap failed. Restarting worker #5505 ...

Any ideas how to fix this?

@dspreitz
Copy link
Author

My raspbian version is following:

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant