Solved Installation Error
-
Hi all,
Trying to install UVDesk on Ubuntu 20.04 hosted on GCP. Followed instructions from this guide. When I get to the install portion of setup, I get the following exemption:
Class 'UVDeskCoreFrameworkBundle:SupportRole' does not exist
Logs:
14:16:53.079 critical Uncaught PHP Exception Doctrine\Persistence\Mapping\MappingException: "Class 'UVDeskCoreFrameworkBundle:SupportRole' does not exist" at /var/www/uvdesk/helpdesk-project/vendor/doctrine/persistence/src/Persistence/Mapping/MappingException.php line 90 request Hide context Hide trace {▼ /var/www/uvdesk/helpdesk-project/vendor/doctrine/persistence/src/Persistence/Mapping/MappingException.php:90 {▶} /var/www/uvdesk/helpdesk-project/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:191 {▶} /var/www/uvdesk/helpdesk-project/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:318 {▶} /var/www/uvdesk/helpdesk-project/vendor/doctrine/doctrine-bundle/Repository/ContainerRepositoryFactory.php:40 {▶} /var/www/uvdesk/helpdesk-project/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:821 {▶} /var/www/uvdesk/helpdesk-project/var/cache/dev/ContainerX5MVCD5/EntityManager_9a5be93.php:227 {▶} /var/www/uvdesk/helpdesk-project/src/Controller/ConfigureHelpdesk.php:291 {▶} /var/www/uvdesk/helpdesk-project/vendor/symfony/http-kernel/HttpKernel.php:152 {▶} /var/www/uvdesk/helpdesk-project/vendor/symfony/http-kernel/HttpKernel.php:74 {▶} /var/www/uvdesk/helpdesk-project/vendor/symfony/http-kernel/Kernel.php:202 {▶} /var/www/uvdesk/helpdesk-project/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {▶} /var/www/uvdesk/helpdesk-project/vendor/autoload_runtime.php:35 {▶} /var/www/uvdesk/helpdesk-project/public/index.php:5 {▶} } [▼ "exception" => Doctrine\Persistence\Mapping\MappingException {#657 ▶} ]
Any help is appreciated.
Best,
-
The latest version of "doctrine/doctrine-fixtures-bundle" is not compatible with uvdesk.
You can fix this issue by changing the version in composer.json in uvdesk:
"doctrine/doctrine-fixtures-bundle": "^3.4", **TO** "doctrine/doctrine-fixtures-bundle": "3.4.1",
After Updating the changes in composer.json. Simply, run the composer update command in your project root directory.
I Hope, This will resolve your issue.
If you have still faced the error let us know.
-
@ty_kel Hi, welcome in the UVdesk forum!
What method are you using for installing UVdesk?
SSH?
Docker?
Composer?
FTP?Please see: https://forums.uvdesk.com/topic/1925/installing-and-setup-uvdesk-for-the-first-time
-
@peopleinside Using composer. The link did not go through in the first post, but this is the guide I followed. https://geekrewind.com/how-to-install-uvdesk-on-ubuntu/
-
@ty_kel said in Installation Error:
The link did not go through in the first post, but this is the guide I followed. https://geekrewind.com/how-to-install-uvdesk-on-ubuntu/
This is not a UVdesk official guide.
You can look at the link I gived or also here: https://www.uvdesk.com/en/blog/installation-open-source-helpdesk-uvdesk/ -
@peopleinside It looks like I have found the solution; however, when I try to do this, I get the following error. Any thoughts?
In JsonFile.php line 181: file_put_contents(./composer.lock): failed to open stream: Permission denied
-
@ty_kel sorry, I have no idea. I'm not a developer just a passionate user that try to help on the forum
for a UVdesk staff reply you need maybe wait more time.
-
@peopleinside No worries! I appreciate your help and passion for UVdesk. I will await a dev.
-
@ty_kel I think you get errors because you are not maybe installing from FTP or SSH
-
The latest version of "doctrine/doctrine-fixtures-bundle" is not compatible with uvdesk.
You can fix this issue by changing the version in composer.json in uvdesk:
"doctrine/doctrine-fixtures-bundle": "^3.4", **TO** "doctrine/doctrine-fixtures-bundle": "3.4.1",
After Updating the changes in composer.json. Simply, run the composer update command in your project root directory.
I Hope, This will resolve your issue.
If you have still faced the error let us know.
-
@komal-sharma Thank you for the reply! I was able to locate the composer.json file and update to version 3.4.1, however, when I run the composer update command in the project root directory, I get the following error:
file_put_contents(./composer.lock): failed to open stream: Permission denied
Please advise.
Best,
-
@ty_kel I was able to resolve the issue by changing permissions. You can close this ticket!
-
-
peopleinside
-
peopleinside