I was able to successfully create the flarum-queue.service file and had it started and enabled. This is the status of my flarum-queue.service:
● flarum-queue.service - flarum-queue
Loaded: loaded (/etc/systemd/system/flarum-queue.service; enabled; vendor>
Active: active (running) since Wed 2022-10-26 15:07:12 UTC; 10s ago
Main PID: 8910 (php8.1)
Tasks: 1 (limit: 1116)
Memory: 28.0M
CPU: 218ms
CGroup: /system.slice/flarum-queue.service
└─8910 /usr/bin/php8.1 flarum queue:work
However, when I tried to login to my site, I get this message:
Oops! Something went wrong. Please reload the page and try again.
I can't seem to log in to my own site now. I tried resetting my password, but it's saying that "An error occured. Please try again."
Solution: Clear the Flarum cache by typing: php flarum cache:clear
If you get a permission error like this:
Could not clear contents of storage/cache. Please adjust file permissions and try again. This can frequently be fixed by clearing cache via the Tools dropdown on the Administration Dashboard page.
Solution: Run the command as the web user by typing sudo -u www-data php flarum cache:clear
Edited after several readings and droplet restores. Personal issues have now been resolved. Thanks!