CADViewer / NextCloud

CAD viewing, markup and collaboration on NextCloud for AutoCAD, MicroStation and advanced raster graphics.
GNU Affero General Public License v3.0
23 stars 3 forks source link

Can not open any dwg files #19

Closed bluestar800 closed 1 year ago

bluestar800 commented 1 year ago

nextcloud 25.0.3(In host ,not docker) CADViewer v8.38.1 in ./nextcloud/apps

My nextcloud config.php has these settings 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/nextcloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/nextcloud/custom_apps', 'url' => '/custom_apps', 'writable' => true, ), ),

For install cadviewer , I git clone it in ./nextcloud/apps. And follow the step in [README.md] to set up.

There are no errors in the results of Cadviewer Doctor check . By the way there is no any logs to show me anythings image

But I cannot open any dwg files, it told me like this image

nextcloud logs have many errors of cadviewer , But they are the same one. `OCP\AppFramework\QueryException: Could not resolve OCA\Cadviewer\AppInfo\ViewerListener! Class OCA\Cadviewer\AppInfo\ViewerListener does not exist

/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 133: OC\AppFramework\Utility\SimpleContainer->resolve()

/var/www/nextcloud/lib/private/ServerContainer.php - line 161: OC\AppFramework\Utility\SimpleContainer->query()

/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php - line 71: OC\ServerContainer->query()

/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 251: OC\EventDispatcher\ServiceEventListener->__invoke()

/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 73: Symfony\Component\EventDispatcher\EventDispatcher->callListeners()

/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php - line 88: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()

/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php - line 100: OC\EventDispatcher\EventDispatcher->dispatch()

/var/www/nextcloud/apps/files/lib/Controller/ViewController.php - line 304: OC\EventDispatcher\EventDispatcher->dispatchTyped()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 225: OCA\Files\Controller\ViewController->index()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 133: OC\AppFramework\Http\Dispatcher->executeController()

/var/www/nextcloud/lib/private/AppFramework/App.php - line 172: OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/nextcloud/lib/private/Route/Router.php - line 298: OC\AppFramework\App::main()

/var/www/nextcloud/lib/base.php - line 1047: OC\Route\Router->match()

/var/www/nextcloud/index.php - line 36: OC::handleRequest()`

Feel free to let me know what more info you need. Thanks for help again

bluestar800 commented 1 year ago

OK, I think I solved that problem. thanks kroko for reminding me at https://github.com/CADViewer/NextCloud/issues/3#issuecomment-1428660465

I add the code about /apps/cadviewer/converter/php/ placed before location ~ .php(?:$|/) in my nginx config location /apps/cadviewer/converter/php/ { location ~ \.php$ { fastcgi_split_path_info ^(.+?\.php)(/.*)$; set $path_info $fastcgi_path_info; try_files $fastcgi_script_name =404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $path_info; fastcgi_param HTTPS on; fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_pass unix:/run/php/php7.4-fpm_retractedinfo-nginx-socket_clouduser_nginx_socket.sock; fastcgi_intercept_errors on; fastcgi_request_buffering off; fastcgi_max_temp_file_size 0; } try_files $uri $uri/ =403; }

Note!!!This code must be changed to match your PHP Settings fastcgi_pass unix:/run/php/php7.4-fpm_retractedinfo-nginx-socket_clouduser_nginx_socket.sock;

CADViewer commented 1 year ago

@bluestar800 , great that you solved it! We will move this into the general documentation sheet.

nightdread commented 10 months ago

image I also added such a configuration, but still have error 126