VersionX installation fails

Hi there,

I tried to update the VersionX Extra, and it just hung

 Iterating over Resources and creating initial deltas..

So I uninstalled the previous version, an tried to reinstall from scratch - but it’s the same issue.

In the docs it says it can take some time, but it takes so long that it timesout.

I’m not worried about any history form the previous version - is there a way I can do a proper fresh install even if it means deleting previous ‘versions’.

Modx 2.8.7
PHP 8.1

Thanks!
Andy

Maybe when you install the extra, don’t check the checkbox for “Resources” (under “Choose what to create snapshots for:”) when installing the extra.

This avoids, that initial deltas get created for all the resources during the installation.


Not sure why there is a timeout. Theoretically this line should avoid it:

Thanks Harry - that worked!

So does that mean it won’t create version of resources though?
That’s one of the main uses for the Extra (when clients mess things up! :rofl:)

When I say ‘timed out’ I used the wrong terminology - it didn’t technically time out, but my browser tab went to sleep and it cancelled the process. (I did have it open and waited over 30mins, which I assumed would be sufficient if it were working?)

I don’t think so.
The system setting versionx.enable.resources should define, if deltas get created for resources or not. Maybe check its value.


As far as I can tell, the initial snapshot now just gets created, whenever you save a resource for the first time (after installing VersionX).

You probably could create a snippet that generates the initial snapshots in batches (if you need them).


How many resources do you have, that it took so long?

Thanks again Harry,

versionx.enable.resources is 'YES'
in the settings so should be all good - obvs easy for me to test and check.`

There’s about 150 pages in the site.

Interesting. I was expecting at least a few thousands. :smile:
It must have been a different issue then during installation…

If you upgraded from the previous branch of VersionX, you can run the standalone updater to convert all your site’s version history to the new format, so that you don’t lose that. See this page:

and go to the bottom (“Migrating from 2.x”)

OK will take a look thanks!

Hi @tm2000,

I’d love to know why that timed out if you do happen to find any errors relating to it in the PHP/MODX logs. I had hoped I’d finished sorting out any issues with the package resolver in the last update :sweat_smile:

@halftrainedharry is correct, VersionX 3.x will indeed create an initial delta/snapshot the first time an object is saved, so running it on install isn’t strictly necessary.