MODX upgrade problem - failed: No such file or directory

:warning: IMPORTANT, please fill the questions

We assume you are using Bitnami to deploy your application.

  • Which version of the application are you using?:
    Currently using MODx 2.8.0-pl

  • Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, …) or VM (VMDK, VBOX):
    It’s a Bitnami image deployed on Bitnami Cloud Hosting via AWS.

  • Have you installed any plugin or modified any configuration file?:
    I have previously upgraded this instance.

  • Describe here your question/suggestion/issue (expected and actual results):
    I am trying to upgrade from version 2.8.0 to 2.8.1. While running the rsync commands, I get an error of “failed: No such file or directory.”

  • Steps to reproduce the issue (if relevant):
    I am following the instructions in this article:
    https://docs.bitnami.com/google/apps/modx/administration/upgrade/

While running the second command in the MERGE section, I get the following:


bitnami@ip-172-31-0-214:~$ rsync -avuh /opt/bitnami/apps/modx//opt/bitnami/appscore/ /opt/bitnami/apps/modx/core/
sending incremental file list
rsync: change_dir “/opt/bitnami/apps/modx//opt/bitnami/appscore” failed: No such file or directory (2)

sent 12 bytes received 12 bytes 48.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]


Hi @eao

Thanks for using Bitnami MODX!

We have missed some spaces in the docs, I will let the doc team know about that. You may use the following:

$ rsync -avuh /tmp/modx-2.x.y/ /opt/bitnami/apps/modx/htdocs/
$ rsync -avuh /opt/bitnami/apps/modx/ /opt/bitnami/appscore/ /opt/bitnami/apps/modx/core/
$ sudo find /opt/bitnami/apps/modx/core -type f -exec chmod 664 {} \;
$ sudo find /opt/bitnami/apps/modx/core -type d -exec chmod 775 {} \;
$ sudo find /opt/bitnami/apps/modx/ /opt/bitnami/apps -type d -exec chmod 775 {} \;
$ sudo find /opt/bitnami/apps/modx/ /opt/bitnami/apps -type f -exec chmod 664 {} \;

Could you please try that and report back?

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart:

1 Like

That seemed to do the trick, thank you!

The “chmod 664” lines took over an hour. I ended up closing the Putty sessions on both of them, but the update still went through just fine.

Thanks again.

Hi @eao

Glad to see you were able to solve your issue! We are marking the previous answer as “Solution” and this topic as “Closed”.
If you have any other questions, please do not hesitate to let us know. Feel free to create a new topic referencing to this one if necessary.

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart: