Problem with upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • predragskundric
    Junior Member
    • Mar 2022
    • 1

    Problem with upgrade

    Hello,

    I am new in EspoCRM and I have installed version 5.2.5 and managed to upgrade up to version of the 5.9.4.
    After this system has requested upgrade from CLI what I have tried to do without any success. It says that upgrade.php is missing.
    -------
    predrag@espocrm:~$ ls
    EspoCRM-upgrade-5.9.4-to-6.0.10.zip
    predrag@espocrm:~$ sudo php upgrade.php -y /home/predrag/EspoCRM-upgrade-5.9.4-to-6.0.10.zip
    Could not open input file: upgrade.php
    --------

    Please for assistance...
  • lazovic
    Super Moderator
    • Jan 2022
    • 814

    #2
    Hi predragskundric,

    You have used the deprecated update method for EspoCRM versions lower than 5.6.0. It is not recommended for versions greater than 5.6.0.

    Please try execute the following command from the EspoCRM root directory:

    sudo php command.php upgrade -y --file="/home/predrag/EspoCRM-upgrade-5.9.4-to-6.0.10.zip"

    Comment

    • sapyantuk
      Senior Member
      • Oct 2020
      • 265

      #3
      Hello after upgrading to 7.0.9
      getting error

      in log file

      [2022-03-09 16:56:16] ERROR: (0) Field 'category' has no type.; POST /MassAction; line: 74, file: /home/companyn/public_html/best/application/Espo/ORM/Defs/FieldDefs.php [] []
      [2022-03-09 16:56:19] ERROR: (0) Field 'category' has no type.; POST /MassAction; line: 74, file: /home/companyn/public_html/best/application/Espo/ORM/Defs/FieldDefs.php [] []

      Comment

      • sapyantuk
        Senior Member
        • Oct 2020
        • 265

        #4
        [2022-03-09 17:37:13] DEBUG: API (0) Field 'category' has no type.; PUT /Lead/622826d5af40986be; Input data: {"citizenshipNumber":"aa"}; Route pattern: /{controller}/{id}; Route params: Array ( [controller] => Lead [action] => update [id] => 622826d5af40986be ) [] []
        [2022-03-09 17:37:13] ERROR: (0) Field 'category' has no type.; PUT /Lead/622826d5af40986be; line: 74, file: /home/companyn/public_html/best/application/Espo/ORM/Defs/FieldDefs.php :: #0 /home/companyn/public_html/best/application/Espo/Core/FieldProcessing/NextNumber/BeforeSaveProcessor.php(143): Espo\ORM\Defs\FieldDefs->getType() #1 /home/companyn/public_html/best/application/Espo/Core/FieldProcessing/NextNumber/BeforeSaveProcessor.php(58): Espo\Core\FieldProcessing\NextNumber\BeforeSavePro cessor->getFieldList('Note') #2 /home/companyn/public_html/best/application/Espo/Hooks/Common/NextNumber.php(49): Espo\Core\FieldProcessing\NextNumber\BeforeSavePro cessor->process(Object(Espo\Entities\Note), Array) #3 /home/companyn/public_html/best/application/Espo/Core/HookManager.php(129): Espo\Hooks\Common\NextNumber->beforeSave(Object(Espo\Entities\Note), Array, Array) #4 /home/companyn/public_html/best/application/Espo/Core/Repositories/Database.php(272): Espo\Core\HookManager->process('Note', 'beforeSave', Object(Espo\Entities\Note), Array) #5 /home/companyn/public_html/best/application/Espo/ORM/Repository/RDBRepository.php(165): Espo\Core\Repositories\Database->beforeSave(Object(Espo\Entities\Note), Array) #6 /home/companyn/public_html/best/application/Espo/Core/Repositories/Database.php(139): Espo\ORM\Repository\RDBRepository->save(Object(Espo\Entities\Note), Array) #7 /home/companyn/public_html/best/application/Espo/ORM/EntityManager.php(303): Espo\Core\Repositories\Database->save(Object(Espo\Entities\Note), Array) #8 /home/companyn/public_html/best/application/Espo/Services/Stream.php(1737): Espo\ORM\EntityManager->saveEntity(Object(Espo\Entities\Note), Array) #9 /home/companyn/public_html/best/application/Espo/Tools/Stream/HookProcessor.php(420): Espo\Services\Stream->handleAudited(Object(Espo\Modules\Crm\Entities\ Le ad), Array) #10 /home/companyn/public_html/best/application/Espo/Tools/Stream/HookProcessor.php(406): Espo\Tools\Stream\HookProcessor->afterSaveStreamNotNew1(Object(Espo\Modules\Crm\ En tities\Lead), Array) #11 /home/companyn/public_html/best/application/Espo/Tools/Stream/HookProcessor.php(337): Espo\Tools\Stream\HookProcessor->afterSaveStreamNotNew(Object(Espo\Modules\Crm\E nt ities\Lead), Array) #12 /home/companyn/public_html/best/application/Espo/Tools/Stream/HookProcessor.php(93): Espo\Tools\Stream\HookProcessor->afterSaveStream(Object(Espo\Modules\Crm\Entitie s\ Lead), Array) #13 /home/companyn/public_html/best/application/Espo/Hooks/Common/Stream.php(48): Espo\Tools\Stream\HookProcessor->afterSave(Object(Espo\Modules\Crm\Entities\Lead ), Array) #14 /home/companyn/public_html/best/application/Espo/Core/HookManager.php(129): Espo\Hooks\Common\Stream->afterSave(Object(Espo\Modules\Crm\Entities\Lead ), Array, Array) #15 /home/companyn/public_html/best/application/Espo/Core/Repositories/Database.php(290): Espo\Core\HookManager->process('Lead', 'afterSave', Object(Espo\Modules\Crm\Entities\Lead), Array) #16 /home/companyn/public_html/best/application/Espo/Modules/Crm/Repositories/Lead.php(48): Espo\Core\Repositories\Database->afterSave(Object(Espo\Modules\Crm\Entities\Lead ), Array) #17 /home/companyn/public_html/best/application/Espo/ORM/Repository/RDBRepository.php(186): Espo\Modules\Crm\Repositories\Lead->afterSave(Object(Espo\Modules\Crm\Entities\Lead ), Array) #18 /home/companyn/public_html/best/application/Espo/Core/Repositories/Database.php(139): Espo\ORM\Repository\RDBRepository->save(Object(Espo\Modules\Crm\Entities\Lead), Array) #19 /home/companyn/public_html/best/application/Espo/ORM/EntityManager.php(303): Espo\Core\Repositories\Database->save(Object(Espo\Modules\Crm\Entities\Lead), Array) #20 /home/companyn/public_html/best/application/Espo/Core/Record/Service.php(714): Espo\ORM\EntityManager->saveEntity(Object(Espo\Modules\Crm\Entities\Lea d) ) #21 /home/companyn/public_html/best/application/Espo/Core/Controllers/RecordBase.php(224): Espo\Core\Record\Service->update('622826d5af40986...', Object(stdClass), Object(Espo\Core\Record\UpdateParams)) #22 /home/companyn/public_html/best/application/Espo/Core/Api/ActionProcessor.php(97): Espo\Core\Controllers\RecordBase->putActionUpdate(Object(Espo\Core\Api\RequestWra pp er), Object(Espo\Core\Api\ResponseWrapper)) #23 /home/companyn/public_html/best/application/Espo/Core/Api/RequestProcessor.php(136): Espo\Core\Api\ActionProcessor->process('Lead', 'update', Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #24 /home/companyn/public_html/best/application/Espo/Core/Api/RequestProcessor.php(111): Espo\Core\Api\RequestProcessor->proceed(Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #25 /home/companyn/public_html/best/application/Espo/Core/Api/RequestProcessor.php(82): Espo\Core\Api\RequestProcessor->processInternal(Object(Espo\Core\Api\Route), Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #26 /home/companyn/public_html/best/application/Espo/Core/Api/Starter.php(103): Espo\Core\Api\RequestProcessor->pr... [] []

        Comment

        • rabii
          Active Community Member
          • Jun 2016
          • 1258

          #5
          Originally posted by predragskundric
          Hello,

          I am new in EspoCRM and I have installed version 5.2.5 and managed to upgrade up to version of the 5.9.4.
          After this system has requested upgrade from CLI what I have tried to do without any success. It says that upgrade.php is missing.
          -------
          predrag@espocrm:~$ ls
          EspoCRM-upgrade-5.9.4-to-6.0.10.zip
          predrag@espocrm:~$ sudo php upgrade.php -y /home/predrag/EspoCRM-upgrade-5.9.4-to-6.0.10.zip
          Could not open input file: upgrade.php
          --------

          Please for assistance...
          this is how the correct upgrade command after version 5.6.0 check out this link https://docs.espocrm.com/administrat...grade-from-cli
          Rabii
          Web Dev

          Comment

          Working...