Allscan Not Working After ASL3 Update

I updated ASL3 for a node of mine today, which consisted of 18 updates. I noticed that after the update the UI (which looks nice!) has changed for ASL3. Though also after the update, Allscan isn't working and I'm receiving the following message:

404 Not Found
The requested URL was not found on this server.

Apache/2.4.69 (Debian) Server at 192.168.1.169 Port 443

I've tried reinstalling Allscan and that doesn't solve the issue. Also, Allmon3 is working correctly. Thanks.

I've opened a PR against AllScan to update the installer so it's configuration is compatible with Debian packaging and thus ASL3 Appliance. The PR is Add config snippet to support ASL3 Appliance correctly by jxmx · Pull Request #39 · davidgsd/AllScan · GitHub. If you want to see if this resolves your problem, you can try:

cd ~; rm AllScanInstallUpdate.php 2>/dev/null
wget 'https://raw.githubusercontent.com/jxmx/AllScan/refs/heads/asl3_app_support/AllScanInstallUpdate.php'
chmod 755 AllScanInstallUpdate.php
sudo ./AllScanInstallUpdate.php

Note: I don't have a system with Allscan to try. This should work, but let me know if you get any errors.

Also, you're somehow on the devel stream. If you want to go back to prod do asl-repo-switch -l main.

Thanks for the reply. I tried the above and the issue still exists.

What's the output of a2query -c and what's the contents of /etc/apache2/conf-available/allscan.conf?

Output:

localized-error-pages (enabled by maintainer script)
security (enabled by maintainer script)
asl-web-ui (enabled by maintainer script)
allscan (enabled by site administrator)
serve-cgi-bin (enabled by maintainer script)
other-vhosts-access-log (enabled by maintainer script)
charset (enabled by maintainer script)
javascript-common (enabled by maintainer script)
allmon3 (enabled by maintainer script)
nocache (enabled by maintainer script)

Contents of file:

Configuration for the AllScan application

Alias allscan /var/www/html/allscan
<Directory /var/www/html/allscan>
AllowOverride all

Hi Jason, The standard way that apache works (at least in the time I have been doing web development since 1997, but maybe apache recommends something different now) is that it will serve whatever files are in the default public /var/www/html/ directory. For example if I set up Linux on a server, and install apache, by default it will serve files in the html/ directory – without me needing to change anything.

If I then create a /var/www/html/xyz/ directory and index.html file there and go to http[s]://[ip address]/xyz/ my index.html contents will be shown. It appears that whatever was done with the new ASL Web UI breaks this.

The AllScan install/update script doesn't do anything with the apache config files, because historically that has never needed to be done, and to require now that the install/update script manually edit/add an Apache config file telling apache it's OK to serve files in the default web server folder makes no sense. Something seems broken or extremely convoluted in how the new ASL Web UI is set up if it breaks apache's ability to simply show standard files in the default apache web server directory, or requires all web apps to now manually add an apache config file.

Using configuration snippets for applications in /etc/apache2/conf-available is how this has always worked in Debian from time immemorial.

ASL3 Appliance is doing it properly and ASL3 Appliance has always managed the default site configuration by design.

Making an assumption that the URI path delivers / from /var/www/html is a default, unconfigured state but not a guarantee. If you look at the output of a2query -c you can see all the various ways that's used by packages to avoid stepping on each other. I opened a PR against Allscan but I did it blind because I don't have Allscan running anywhere. When I get a chance, I'll install Allscan one of my lab machines far enough to fix the PR so it works properly.

Is that snippet really missing the closing </Directory> or was that a copy/paste error?

Yes that was a copy paste error. The closing is </Directory, though for some reason that isn't being copied and pasted successfully.

Making an assumption that the URI path delivers / from /var/www/html is a default, unconfigured state but not a guarantee

Yes it's been the default for the past 29 years that I've done web development. Why do you propose that the ASL Web UI should now break that?

Thank you for your help with this. I'm certainly not an expert, though I can appreciate the complexities involved with Linux.

The new packages are not proposed, they're happening. The implementation in the new appliance packages is correct for Debian packaging guidelines and follows all convention that Debian has used forever. In fact, package software installing files into /var/www/html is actually a violation of the packaging guidelines that I've been doing for awhile now and needed to be fixed. ASL Web UI manages, among many things, the certificate configuration, rewrite rules, and websockets for the webserver. In order not to break other correctly-packaged applications, the ASL Appliance package is now creating its own configuration and disabling default so other applications can co-exist easier.

I'll look into a shim script of some sort to maybe try to support apps that lack proper configuration.

Yes I understand that Linux packages should not install directly to the public html folder, but AllScan, Supermon, and nearly all other AllStar dashboards / utilities are just simple web apps - not Debian packages. It would be a lot easier for users of all those dashboards and utilities if these things would continue to work without them all having to be changed. Please do add something to the ASL Web UI to allow files / subdirectories in the default web server public folder to continue to work as they have.

Ideally longer-term various webapps and utilities could go the package route which could simplify install and updates for users, but that adds a huge amount of complexity for a single developer of a simple web app.

The initial fixup is the longest part, after that is nothing more then building the updated packages with each release, supermon-ng already handled this today. Is a straight forward approach I am not sure why it is becoming such an issue.

change Alias allscan /var/www/html/allscan to Alias /allscan /var/www/html/allscan/

Can someone post a picture of this UI so I can see what it looks like prior to sudo dudo stuff... would be appreciated!

Try running my fixed version of the installer again.