Sync is not working
Permalink Browser Info Environment
This logs i got from destination
exception 'Concrete\Flysystem\FileNotFoundException' with message 'File not found at path: 4514/5669/1488/large_basel_cell_carcinoma.png' in /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/vendor/concrete5/flysystem/src/Filesystem.php:695
Stack trace:
#0 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/vendor/concrete5/flysystem/src/Filesystem.php(639): Concrete\Flysystem\Filesystem->assertPresent('4514/5669/1488/...')
#1 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/vendor/concrete5/flysystem/src/Filesystem.php(664): Concrete\Flysystem\Filesystem->getMetadata('4514/5669/1488/...')
#2 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/File/Version.php(341): Concrete\Flysystem\Filesystem->get('/4514/5669/1488...')
#3 /container/application/public/packages/mainio_sync/src/Manager/HashManager.php(40): Concrete\Core\File\Version->getFileResource()
#4 /container/application/public/packages/mainio_sync/src/Manager/HashManager.php(28): Concrete\Package\MainioSync\Src\Manager\HashManager->makeVersionHash('40', 1, Object(Concrete\Core\File\Version))
#5 /container/application/public/packages/mainio_sync/src/Manager/HashManager.php(94): Concrete\Package\MainioSync\Src\Manager\HashManager->getVersionHash('40', 1)
#6 /container/application/public/packages/mainio_sync/controllers/backend/api/import.php(101): Concrete\Package\MainioSync\Src\Manager\HashManager->createHashes()
#7 [internal function]: Concrete\Package\MainioSync\Controller\Backend\Api\Import->fill_hash_table()
#8 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Controller/AbstractController.php(161): call_user_func_array(Array, Array)
#9 /container/application/public/packages/mainio_sync/src/Sync/ApiController.php(27): Concrete\Core\Controller\AbstractController->runAction('fill_hash_table', Array)
#10 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Routing/ControllerRouteCallback.php(27): Concrete\Package\MainioSync\Src\Sync\ApiController->runAction('fill_hash_table', Array)
#11 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Routing/Router.php(142): Concrete\Core\Routing\ControllerRouteCallback->execute(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Routing\Route), Array)
#12 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Support/Facade/Facade.php(119): Concrete\Core\Routing\Router->execute(Object(Concrete\Core\Routing\Route), Array)
#13 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Application/Application.php(446): Concrete\Core\Support\Facade\Facade::__callStatic('execute', Array)
#14 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Application/Application.php(446): Concrete\Core\Support\Facade\Route::execute(Object(Concrete\Core\Routing\Route), Array)
#15 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/bootstrap/start.php(305): Concrete\Core\Application\Application->dispatch(Object(Concrete\Core\Http\Request))
#16 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/dispatcher.php(36): require('/container/appl...')
#17 /container/application/public/concrete/bootstrap/configure.php(52): require('/container/appl...')
#18 /container/application/public/concrete/dispatcher.php(18): require('/container/appl...')
#19 /container/application/public/index.php(2): require('/container/appl...')
#20 {main}
This error got from sender
Mainio Sync encountered an exception in 'fill_hash_table'. Refer to the remote server logs for more information.
exception 'Concrete\Flysystem\FileNotFoundException' with message 'File not found at path: 4514/5669/1488/large_basel_cell_carcinoma.png' in /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/vendor/concrete5/flysystem/src/Filesystem.php:695
Stack trace:
#0 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/vendor/concrete5/flysystem/src/Filesystem.php(639): Concrete\Flysystem\Filesystem->assertPresent('4514/5669/1488/...')
#1 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/vendor/concrete5/flysystem/src/Filesystem.php(664): Concrete\Flysystem\Filesystem->getMetadata('4514/5669/1488/...')
#2 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/File/Version.php(341): Concrete\Flysystem\Filesystem->get('/4514/5669/1488...')
#3 /container/application/public/packages/mainio_sync/src/Manager/HashManager.php(40): Concrete\Core\File\Version->getFileResource()
#4 /container/application/public/packages/mainio_sync/src/Manager/HashManager.php(28): Concrete\Package\MainioSync\Src\Manager\HashManager->makeVersionHash('40', 1, Object(Concrete\Core\File\Version))
#5 /container/application/public/packages/mainio_sync/src/Manager/HashManager.php(94): Concrete\Package\MainioSync\Src\Manager\HashManager->getVersionHash('40', 1)
#6 /container/application/public/packages/mainio_sync/controllers/backend/api/import.php(101): Concrete\Package\MainioSync\Src\Manager\HashManager->createHashes()
#7 [internal function]: Concrete\Package\MainioSync\Controller\Backend\Api\Import->fill_hash_table()
#8 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Controller/AbstractController.php(161): call_user_func_array(Array, Array)
#9 /container/application/public/packages/mainio_sync/src/Sync/ApiController.php(27): Concrete\Core\Controller\AbstractController->runAction('fill_hash_table', Array)
#10 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Routing/ControllerRouteCallback.php(27): Concrete\Package\MainioSync\Src\Sync\ApiController->runAction('fill_hash_table', Array)
#11 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Routing/Router.php(142): Concrete\Core\Routing\ControllerRouteCallback->execute(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Routing\Route), Array)
#12 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Support/Facade/Facade.php(119): Concrete\Core\Routing\Router->execute(Object(Concrete\Core\Routing\Route), Array)
#13 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Application/Application.php(446): Concrete\Core\Support\Facade\Facade::__callStatic('execute', Array)
#14 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/src/Application/Application.php(446): Concrete\Core\Support\Facade\Route::execute(Object(Concrete\Core\Routing\Route), Array)
#15 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/bootstrap/start.php(305): Concrete\Core\Application\Application->dispatch(Object(Concrete\Core\Http\Request))
#16 /container/application/public/updates/concrete5.7.5.13_remote_updater/concrete/dispatcher.php(36): require('/container/appl...')
#17 /container/application/public/concrete/bootstrap/configure.php(52): require('/container/appl...')
#18 /container/application/public/concrete/dispatcher.php(18): require('/container/appl...')
#19 /container/application/public/index.php(2): require('/container/appl...')
#20 {main}
This error got from sender
Mainio Sync encountered an exception in 'fill_hash_table'. Refer to the remote server logs for more information.
Type: | Ticket |
---|---|
Status: | Archived |
By the way, if you have that file available somewhere (large_basel_cell_carcinoma.png), you can try to go to the remote machine and try to upload the file yourself through the file manager. You will most likely see an exeption.
If this is the case, you have some options:
- Modify that file from the sender to be smaller
- Remove that file completely from both instances
- Increase the PHP's memory limit setting on your remote instance
- Install ImageMagick and its PHP extension on the remote machine + configure it for concrete5. Modifying images typically is much less memory consuming through ImageMagick. PHP itself loads the whole image to memory bit-by-bit for it to be edited.
If this is the case, you have some options:
- Modify that file from the sender to be smaller
- Remove that file completely from both instances
- Increase the PHP's memory limit setting on your remote instance
- Install ImageMagick and its PHP extension on the remote machine + configure it for concrete5. Modifying images typically is much less memory consuming through ImageMagick. PHP itself loads the whole image to memory bit-by-bit for it to be edited.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
This exception basically means that there is some physical file missing from the receiving instance but a reference to that file still exists to the database. This may be because of Mainio Sync or it also may be because of some other reason, if you have previously encountered problems with uploading files (e.g. the file did not properly upload).
Typically with concrete5 instances the reason for this is that the uploaded image file is too big to be processed for the thumbnail images. It seems this is an image file and it has "large" in its name, so I'm suspecting this to be the reason.
The fix for this would be to remove the database reference to the unexisting file from the destination instance. You can do so as follows:
1. Login to the destination
2. Go to the file manager
3. Search with the following search term: "large_basel_cell_carcinoma" (picked the file name from the reported exception)
4. You probably will see a file reference with broken/unexisting thumbnail image in it
5. Remove that file
After that, try syncing again.