Announcement

Collapse
No announcement yet.

Update to 8.2.0 failed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Update to 8.2.0 failed

    Hello,
    I have carried out the update as usual.
    Activated maintenance mode in the settings and deactivated cron jobs.
    Then carried out the update via SSH.

    Now I always get an error 500 and there is nothing in the logs.
    I only find the following error messages in the console.
    It is a bit similar to this post
    Hi, i don't know if it's important but this file is missing ing V8.0.x : client/lib/original/espo-main.js /Downloads/EspoCRM-8.0.1/client/lib/espo-main.js.map: 1: {"version":3,"file":"espo-main.js","sources":["original/espo-main.js"],... the result is in browser : Could not


    Because it also says something about espo-main.js

    Click image for larger version

Name:	Screenshot 2024-04-01 192329.png
Views:	280
Size:	85.4 KB
ID:	104227
    Attached Files

  • #2
    What does the log file says? In data/logs folder

    maybe you have an incompatible extension installed

    Comment


    • ChrisSka83
      ChrisSka83 commented
      Editing a comment
      I have sent you a private message regarding the logs.

  • #3
    Anything in the web server error log?

    Comment


    • #4
      Here is the last entry from March 27

      Comment


      • #5
        I have now got it up and running.
        An extension appeared in the logs at some point. I also uninstalled it via SSH.

        The only problem is that I can't get into a single entity.
        Not even in contact or e-mail. --> Error 500

        The following message always appears in the Espo logs:

        [2024-04-01 18:34:16] ERROR: Slim Application Error Type: Error Code: 0 Message: Class "Espo\Services\ScheduledJob" not found File: /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Modules/ManualScheduledJob/Services/ManualScheduledJob.php Line: 11 Trace: #0 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/composer/ClassLoader.php(576): include() #1 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}() #2 [internal function]: Composer\Autoload\ClassLoader->loadClass() #3 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Utils/File/ClassMap.php(170): ReflectionClass->__construct() #4 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Utils/File/ClassMap.php(130): Espo\Core\Utils\File\ClassMap->fillHashFromFileList() #5 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Utils/File/ClassMap.php(89): Espo\Core\Utils\File\ClassMap->getClassNameHash() #6 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Utils/ClassFinder.php(78): Espo\Core\Utils\File\ClassMap->getData() #7 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Utils/ClassFinder.php(68): Espo\Core\Utils\ClassFinder->load() #8 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Utils/ClassFinder.php(55): Espo\Core\Utils\ClassFinder->getMap() #9 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/ServiceFactory.php(56): Espo\Core\Utils\ClassFinder->find() #10 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/ServiceFactory.php(61): Espo\Core\ServiceFactory->getClassName() #11 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Record/ServiceFactory.php(134): Espo\Core\ServiceFactory->checkExists() #12 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Record/ServiceFactory.php(100): Espo\Core\Record\ServiceFactory->createInternal() #13 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Record/ServiceContainer.php(82): Espo\Core\Record\ServiceFactory->create() #14 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Record/ServiceContainer.php(74): Espo\Core\Record\ServiceContainer->load() #15 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Controllers/RecordBase.php(135): Espo\Core\Record\ServiceContainer->get() #16 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Controllers/RecordBase.php(247): Espo\Core\Controllers\RecordBase->getRecordService() #17 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/ControllerActionProcessor.php(87): Espo\Core\Controllers\RecordBase->getActionList() #18 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/ControllerActionHandler.php(69): Espo\Core\Api\ControllerActionProcessor->process() #19 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Espo\Core\Api\ControllerActionHandler->handle() #20 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/RouteProcessor.php(222): Slim\MiddlewareDispatcher->handle() #21 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/RouteProcessor.php(149): Espo\Core\Api\RouteProcessor->processControllerAction() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/RouteProcessor.php(127): Espo\Core\Api\RouteProcessor->processAfterAuth() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/RouteProcessor.php(79): Espo\Core\Api\RouteProcessor->processInternal() #24 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/Starter.php(109): Espo\Core\Api\RouteProcessor->process() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Espo\Core\Api\Starter->Espo\Core\Api\{closure}() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle() #28 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle() #29 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle() #30 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run() #31 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Slim\Routing\RouteRunner->handle() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process() Quotes /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() Quotes /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process() #35 /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/vendor/slim/slim/Slim/App.php(183): Slim\App->handle() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Api/Starter.php(76): Slim\App->run() #39 /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Application/RunnerRunner.php(84): Espo\Core\ApplicationRunners\Api->run() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run() how to upgrade ? /var/www/vhosts/domain.de/subdomains/portal.domain.de/public/api/v1/index.php(35): Espo\Core\Application->run() how to upgrade ? {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.


        Comment


        • #6
          We have this covered in Upgrade notes: https://forum.espocrm.com/forum/anno...sed#post104208

          Comment


          • yuri
            yuri commented
            Editing a comment
            Reminding for whomever reading. Consider not to extend anything when possible.

        • #7
          Then at least the standard entities should work, or am I wrong?
          #Contact, #Meeting, task etc.

          None of them work. In the backend I also can't get into
          #ScheduledJob or #Admin/extensions

          Comment


          • item
            item commented
            Editing a comment
            go to application/Espo/Modules/ManualScheduledJob/Services/ManualScheduledJob.php

            and read 8.2v annoncement in forum

            this passage :
            Service classes from this directory and some classes from Espo\Services namespace have been removed. If you extend any of these classes in your customizations, extend from Espo\Services\Record instead.

        • #8
          The error message you get tells everything. The class you extend from is no more. You need to extend from Espo\Services\Record.

          Comment


          • #9
            ok, somehow I've managed it now.
            Everything works. Top!

            But what I've just noticed is that an ingenious function has disappeared.
            If I want to enter a contact in the field of an entity, but it doesn't exist yet, I was always offered to create it directly until version 8.1.5.
            The window to create the contact always popped up.
            Unfortunately, this no longer happens.

            Have I removed it or do I have to reactivate it somewhere?​

            Comment


            • ChrisSka83
              ChrisSka83 commented
              Editing a comment
              may be possible. I had to deactivate this as it was not compatible with 8.2.0.

            • esforim
              esforim commented
              Editing a comment
              Kharg it shouldn't be Elba Link Pro, because I don't have it. From Elba all I have now is his Dark theme and DAV Integration.

            • ChrisSka83
              ChrisSka83 commented
              Editing a comment
              So this function was not from Ebla Link Pro.
              I have now installed the update and this ingenious function no longer exists.
              So it must have been directly from espoCRM.

          • #10
            Originally posted by ChrisSka83 View Post
            ok, somehow I've managed it now.
            Everything works. Top!

            But what I've just noticed is that an ingenious function has disappeared.
            If I want to enter a contact in the field of an entity, but it doesn't exist yet, I was always offered to create it directly until version 8.1.5.
            The window to create the contact always popped up.
            Unfortunately, this no longer happens.

            Have I removed it or do I have to reactivate it somewhere?​
            How did you fix it? I got a similar error

            Related thread: https://forum.espocrm.com/forum/inst...ause-error-500
            Last edited by esforim; 04-03-2024, 06:38 AM.

            Comment


            • #11
              Originally posted by espcrm View Post

              How did you fix it? I got a similar error

              Related thread: https://forum.espocrm.com/forum/inst...ause-error-500
              So here I "fix" mine (THIS IS NOT RECOMMENDED SINCE I DON"T KNOW THE CONSEQUENCES YET)... I rename the ManualScheduled.php file without extension so it can't run... I can list again but surely this is not how to fix it. I await more experience user to fix or perhaps v8.2.2 or extensions update to fix these error.

              For reference. Here is all the extension I'm currently using. One or more of these is extension is causing the error that used the "class" services that were removed in 8.2.0

              Click image for larger version

Name:	image.png
Views:	197
Size:	10.5 KB
ID:	104330
              Click image for larger version

Name:	image.png
Views:	173
Size:	114.2 KB
ID:	104331
              Click image for larger version

Name:	image.png
Views:	167
Size:	29.5 KB
ID:	104332

              Comment


            • #12
              Originally posted by espcrm View Post

              So here I "fix" mine (THIS IS NOT RECOMMENDED SINCE I DON"T KNOW THE CONSEQUENCES YET)... I rename the ManualScheduled.php file without extension so it can't
              And looking at the screenshot, I think I found the culprit!

              Click image for larger version  Name:	image.png Views:	7 Size:	4.8 KB ID:	104339
              So what I did afterward was to uninstall this extension.
              Last edited by esforim; 04-03-2024, 07:35 AM.

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                Will be updated soon
            Working...
            X