AgenDAV not loading UI

93 views
Skip to first unread message

Engine-Yesterday

unread,
May 5, 2022, 8:26:46 PM5/5/22
to AgenDAV general
Hey all. I thought I'd post here AND GitHub with a problem I'm having:

I've (seemingly) followed the instructions at agendav.readthedocs.io to install it, but it doesn't seem to be working. It DOES seem to be properly authenticating with my CalDAV username and password, but that's it. There's no UI after that, or, at least, not much of one:

agendav-20220504-webui-not-loading.png
After doing a little digging, the Apache logs were worse than useless, but the AgenDAV logs were more helpful:

[2022-05-05 18:02:14] agendav.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /dist/css/agendav.css" (from "https://agendav.example.com/") (uncaught exception) at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /dist/css/agendav.css\" (from \"https://agendav.example.com/\") at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/dist/css/agendav.css\". at /var/www/html/agendav/web/vendor/symfony/routing/Matcher/UrlMatcher.php:80)"} []
[2022-05-05 18:02:14] agendav.INFO: Matched route "settings.js". {"route_parameters":{"_controller":"\\AgenDAV\\Controller\\JavaScriptCode::settingsAction","_route":"settings.js"},"request_uri":"https://agendav.example.com/jssettings"} []
[2022-05-05 18:02:14] agendav.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /dist/js/agendav.min.js" (from "https://agendav.example.com/") (uncaught exception) at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /dist/js/agendav.min.js\" (from \"https://agendav.example.com/\") at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/dist/js/agendav.min.js\". at /var/www/html/agendav/web/vendor/symfony/routing/Matcher/UrlMatcher.php:80)"} []
[2022-05-05 18:02:14] agendav.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /dist/css/agendav.print.css" (from "https://agendav.example.com/") (uncaught exception) at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /dist/css/agendav.print.css\" (from \"https://agendav.example.com/\") at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/dist/css/agendav.print.css\". at /var/www/html/agendav/web/vendor/symfony/routing/Matcher/UrlMatcher.php:80)"} []
[2022-05-05 18:13:10] agendav.INFO: Matched route "calendar". {"route_parameters":{"_controller":"[object] (Closure: {})","_route":"calendar"},"request_uri":"https://agendav.example.com/"} []
[2022-05-05 18:13:10] agendav.INFO: Matched route "settings.js". {"route_parameters":{"_controller":"\\AgenDAV\\Controller\\JavaScriptCode::settingsAction","_route":"settings.js"},"request_uri":"https://agendav.example.com/jssettings"} []
[2022-05-05 18:13:10] agendav.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /dist/css/agendav.css" (from "https://agendav.example.com/") (uncaught exception) at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /dist/css/agendav.css\" (from \"https://agendav.example.com/\") at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/dist/css/agendav.css\". at /var/www/html/agendav/web/vendor/symfony/routing/Matcher/UrlMatcher.php:80)"} []
[2022-05-05 18:13:10] agendav.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /dist/js/agendav.min.js" (from "https://agendav.example.com/") (uncaught exception) at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /dist/js/agendav.min.js\" (from \"https://agendav.example.com/\") at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/dist/js/agendav.min.js\". at /var/www/html/agendav/web/vendor/symfony/routing/Matcher/UrlMatcher.php:80)"} []
[2022-05-05 18:13:10] agendav.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /dist/js/agendav.min.js" (from "https://agendav.example.com/") (uncaught exception) at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /dist/js/agendav.min.js\" (from \"https://agendav.example.com/\") at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/dist/js/agendav.min.js\". at /var/www/html/agendav/web/vendor/symfony/routing/Matcher/UrlMatcher.php:80)"} []
[2022-05-05 18:13:10] agendav.ERROR: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /dist/css/agendav.print.css" (from "https://agendav.example.com/") (uncaught exception) at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 176 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /dist/css/agendav.print.css\" (from \"https://agendav.example.com/\") at /var/www/html/agendav/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:176, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/dist/css/agendav.print.css\". at /var/www/html/agendav/web/vendor/symfony/routing/Matcher/UrlMatcher.php:80)"} []

Based on the error message "No routes found for \"/dist/css/agendav.print.css\", I couldn't help but check in the agendav/web/public/css/ directory, and sure as shoot - there is no file named agendav.print.css in there. :(

I came across this GitHub post highlighting the same error I was getting, and sure enough, there were the CSS files, in the agendav/assets/css/ and agendav/assets/print-css/ directories. But that's not where I need them!

Why aren't they installing in the requisite folder? What am I doing wrong?

I've cross-posted this to the GitHub Issues page for support.


Message has been deleted

Engine-Yesterday

unread,
May 6, 2022, 12:35:23 PM5/6/22
to AgenDAV general

I just realized I left out some crucial stuff in requesting help, total n00b mistake here mah bad:

Server Operating System: AlmaLinux 8.5
Web Server
: Apache HTTPD 2.4.37

CalDAV Server Software
: Baikal 0.9.2

Anyways, I FIGURED IT OUT (and there is DEFINITELY some stuff missing in the documentation that should be fixed).

  1. You need to install npm. For me, this was as simple as dnf install npm, for you (and people on Debian/Ubuntu-esque distros), it might be sudo apt install npm.
  2. You need to install composer - this is IN the documentation, but what it DOESN'T tell you is that you need to install composer GLOBALLY, NOT just in the agendav/web/ directory. You need to move the composer.phar file from there to somewhere in your system $PATH - I just ran a mv composer.phar /usr/local/bin/composer (which simply copied composer.phar to the /usr/local/bin/ directory as the file composer - no extension)
  3. You need to cd into the web/ directory.
  4. Run npm install
  5. Run npm build run
  6. ????
  7. Profit!

Your AgenDAV should "work" now. It's a little buggy. Also couldn't figure out how to add other CalDAV calendars under my user account, which would be a nice (nigh required) feature. You're welcome, internet.

Reply all
Reply to author
Forward
0 new messages