Closed 1stevengrant closed 1 week ago
If you add a new asset does it appear? Just wanting to check if it's an import issue or one with the split repositories.
I assume your database table (assets_meta
) is empty?
new assets, yeah.
The database table has over 5k rows with all of the assets
Oh thats interesting and unexpected. If you clear the artisan cache does anything change?
I might have the same problem. I see only folders from s3 (also seeing the .meta folder), but I can't see any files at all. Have this problem in the asset browser and when I open any page/collection page in Statamic, then all the selected assets are not resolved. when i switch to file
everything is working fine.
new assets don't appear. cleared all the caches and couldn't get the assets to show. had no problems with Statamic 4.x with this, only after updating to v5
Ok - just for clarity, the assets are there in your asset_meta table? If you use debugbar to see the query does it align with what youre seeing in the database?
I have nothing in my asset_meta
table. I tried running php artisan statamic:eloquent:import-assets
but that didn't add anything to the db as it was stuck at 0/650 assets. had horizon running too, if thats needed. Switched to file based now and will just use that
Ok thats strange. I really need to get access to a repository showing this issue so I can investigate. Is that possible?
I'll get you access to one @ryanmitchell
prod
branch
@1stevengrant thanks! I'd need access to S3 too - which I know is a bit of an ask. Any chance of setting me up some read only credentials?
@goellner Ive been working with Steven on this which has been really helpful to see the issue.
I think the problem is building the folder listing is painfully slow and eventually it times out in the CP, so you get nothing listed. I've proposed this PR https://github.com/statamic/eloquent-driver/pull/311 - to resolve it - can you test it out and see how that works?
Bug description
I wanted to keep the config for asset containers in flat files rather than them be eloquent models.
When I do this though, the container shows as having no assets.
How to reproduce
in
eloquent-driver.php
keep
asset_containers
as file.migrate the assets only
see the container is empty
Logs
No response
Environment