ÃÛ¶¹ÊÓƵ Experience Manager: Unable to delete the cache/html directory of Dispatcher Tools
This article explains how to uninstall the Dispatcher Tools on Linux by using root privileges or by non-root user.
Description description
Environments
- ÃÛ¶¹ÊÓƵ Experience Manager as a Cloud Service (AEMaaCS)
- Linux
Issue
When attempting to uninstall the Dispatcher Tools deployed on Linux, the cache directory can’t be deleted due to insufficient permissions.
# rm -fr dispatcher-sdk-2.0.235/
rm: cannot remove 'dispatcher-sdk-2.0.235/cache/html': Permission denied
Resolution resolution
In the Dispatcher Tools, Docker creates the cache/html
directory with Apache user’s ownership (displayed as 100:101).
$ ls -ltr dispatcher-publish:2.0.235/cache
total 4
drwxr-x---. 2 100 101 4096 Jan 1 00:00 html
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9fe753063799 adobe/aem-cs/dispatcher-publish:2.0.235 "/docker_entrypoint.…" 24 seconds ago Up 23 seconds 0.0.0.0:8080->80/tcp, :::8080->80/tcp admiring_cartwright
$ docker exec -it 9fe753063799 ls -ltr /mnt/var/www
total 4
drwxr-x--- 2 apache apache 4096 Feb 13 01:54 html
There are two available methods to uninstall the Dispatcher Tools:
Method 1 - Uninstall using root privileges
# rm -fr dispatcher-sdk-2.0.235
Method 2 - Uninstall by a non-root user
While the Dispatcher Tools are still running, delete the /mnt/var/www/html
directory from inside of the Docker container. Then stop the container and uninstall the Dispatcher Tools.
Example:
$ docker exec -it 9fe753063799 rm -rf /mnt/var/www/html
$ docker stop 9fe753063799
$ rm -fr dispatcher-sdk-2.0.235
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f