Skip to content

Trino Issues

Fix the TrinoDB service failing to start due to directory permission errors.

1 min read Updated SS RS

Below are the Trino issues:

  • TrinoDB Service Not Starting

For reference:

The following section contains basic Linux commands: Basic Commands

TrinoDB Service Not Starting#

Users may encounter an issue where the Trino DB service fails to start, with the following error message in the logs:

ERROR: [Errno 13] Permission denied:
'/var/trino/data/var/run/launcher.pid'

Recent Events Log:

  • Task restarting
  • Task termination with Exit Code: 4
  • Task starting and setup events

RCA: This issue is caused by a change in user-group permissions for the directories Appsone_Servi ce/tri nodb and Appsone_Servi ce/data/tri nodb .

Trino DB is configured to run with a user whose UID is 1000 and a group whose GID is 1000. However, the permissions were altered to a non-root user, leading to a permission denied error.

Solution:

  1. Change the user-group permissions of the affected directories (Appsone_Service/trinodb and Appsone_Service/data/trinodb) to the correct user and group. The user and group should both have the ID 1000, as Trino DB runs with these credentials.

    For Example:

    sudo chown 1000:1000 /path/to/affected/directories
    
  2. Restart the Trino DB service after updating the permissions.

    service trinodb restart
    
  3. Verify that the service has successfully started without any permission errors.