recognize icon indicating copy to clipboard operation
recognize copied to clipboard

Error: Undefined Array Key Tar.php#2030 and Tar.php#2040

Open srappan opened this issue 3 years ago • 1 comments

Describe the bug

Unable to download the models and start classifying images.

 Error    PHP                Error: Undefined array key 147 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2030 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2030
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 146 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2040 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2040
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 146 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2030 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2030
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 145 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2040 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2040
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 145 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2030 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2030
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 144 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2040 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2040
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 144 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2030 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2030
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 143 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2040 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2040
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 143 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2030 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2030
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

  Error    PHP                Error: Undefined array key 142 at /var/www/nextcloud/3rdparty/pear/archive_tar/Archive/Tar.php#2040 at                     2022-10-03T23:22:12+01:00
                              lib/private/Log/ErrorHandler.php line 92

                               0. 3rdparty/pear/archive_tar/Archive/Tar.php line 2040
                                  OC\Log\ErrorHandler::onError(

                                  )
                               1. 3rdparty/pear/archive_tar/Archive/Tar.php line 644
                                  Archive_Tar->_extractList(

                                  )
                               2. apps/recognize/lib/Helper/TAR.php line 296
                                  Archive_Tar->extractList(

                                  )
                               3. apps/recognize/lib/Service/DownloadModelsService.php line 48
                                  OCA\Recognize\Helper\TAR->extractList(

                                  )
                               4. apps/recognize/lib/Command/DownloadModels.php line 39
                                  OCA\Recognize\Service\DownloadModelsService->download(

                                  )
                               5. 3rdparty/symfony/console/Command/Command.php line 255
                                  OCA\Recognize\Command\DownloadModels->execute(

                                  )
                               6. 3rdparty/symfony/console/Application.php line 1009
                                  Symfony\Component\Console\Command\Command->run(

                                  )
                               7. 3rdparty/symfony/console/Application.php line 273
                                  Symfony\Component\Console\Application->doRunCommand(

                                  )
                               8. 3rdparty/symfony/console/Application.php line 149
                                  Symfony\Component\Console\Application->doRun(

                                  )
                               9. lib/private/Console/Application.php line 213
                                  Symfony\Component\Console\Application->run(

                                  )
                              10. console.php line 100
                                  OC\Console\Application->run(

                                  )
                              11. occ line 11
                                  require_once("\/var\/www\/nextcloud\/console.php")

To Reproduce

sudo -u www-data php /var/www/nextcloud/occ recognize:download-models

Also going to the Adminstration panel and it Just says : " An error occurred during image processing, please check the Nextcloud logs "

Server Recognize 3.0.0-beta.3 NC 25.0.0 RC2

srappan avatar Oct 03 '22 22:10 srappan

Thanks for reporting this! A fix is on the way :)

marcelklehr avatar Oct 06 '22 07:10 marcelklehr