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

File not found. #235

Open
WiredTombstone opened this issue Nov 25, 2023 · 1 comment
Open

File not found. #235

WiredTombstone opened this issue Nov 25, 2023 · 1 comment

Comments

@WiredTombstone
Copy link

WiredTombstone commented Nov 25, 2023

Ran into an issue loading the web UI where it will report file not found and I've tried everything I can think of to fix the issue.

  • Did the standard install:
git checkout release/latest
phpize
./configure
make
make install

Install completes with:

Installing shared extensions:     /root/.phpbrew/php/php-7.4.27/lib/php/extensions/no-debug-non-zts-20190902/
Installing SPX web UI to: /root/.phpbrew/php/php-7.4.27/share/misc/php-spx/assets/web-ui

Put this (and a few other variants) in my php.ini for php-fpm.

extension=spx.so

spx.debug=1
spx.http_ui_assets_dir=/root/.phpbrew/php/php-7.4.27/share/misc/php-spx/assets/web-ui/
spx.http_enabled=1
spx.http_key="<redacted>"
spx.http_ip_whitelist="10.8.0.2" // VPN IP

Restarting the php-fpm instance on each change. Then hit up this URL in my browser:

http://10.8.0.1/?SPX_KEY=<redacted>&SPX_UI_URI=/

Get this error:

File not found.

Here's my phpinfo();

image

Checked the PHP log, the only entry for spx is this (when I fat fingered my password while doing this testing):

[25-Nov-2023 18:09:14 UTC] PHP Notice:  SPX: access not granted: server ("<redacted>") & client ("dev") key mismatch in Unknown on line 0
[25-Nov-2023 18:19:53 UTC] PHP Notice:  SPX: access not granted: server ("<redacted>") & client ("dev") key mismatch in Unknown on line 0

Things I've tried:

  • Changing permissions/ownership of the /root/.phpbrew/php/php-7.4.27/share/misc/php-spx/assets/web-ui/ directory and it's parents.
  • Enabling debug.
  • Reinstalling everything including PHP.

If you guys could walk me through debugging what's going on here and get a good working profiler going for testing I'd be happy to toss some cash in the coffee fund. Honestly I'm lost at this point.

@NoiseByNorthwest
Copy link
Owner

The logs clearly point to an invalid key in the URL. Are you sure that the key in the URL is the same as the one specified in config via spx.http_key ?

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

2 participants