Why is my deployment failing?! This is ridiculous!

I have no logs AT ALL being printed anywhere, or they aren't saving, or I can't find the right location(doubt it). Please help me, I've been doing this for 12 hours straight and customer service is ABSOLUTELY NOT HELPFUL

** DEPLOY FAILED
** Refer to storage/logs/capistrano.log for details. Here are the last 20 lines:


 DEBUG [d45d5912] Command: [ -L /home/deployer/apps/oarlin/current/releases/20240102000453/storage ]

 DEBUG [d45d5912] Finished in 0.095 seconds with exit status 1 (failed).

 DEBUG [8d602d4f] Running [ -d /home/deployer/apps/oarlin/current/releases/20240102000453/storage ] as deployer@172.233.214.105

 DEBUG [8d602d4f] Command: [ -d /home/deployer/apps/oarlin/current/releases/20240102000453/storage ]

 DEBUG [8d602d4f] Finished in 0.095 seconds with exit status 0 (successful).

  INFO [6ea6d3e1] Running /usr/bin/env rm -rf /home/deployer/apps/oarlin/current/releases/20240102000453/storage as deployer@172.233.214.105

 DEBUG [6ea6d3e1] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="3.3.0" ; /usr/bin/env rm -rf /home/deployer/apps/oarlin/current/releases/20240102000453/storage )

  INFO [6ea6d3e1] Finished in 0.097 seconds with exit status 0 (successful).

  INFO [da51cc62] Running /usr/bin/env ln -s /home/deployer/apps/oarlin/current/shared/storage /home/deployer/apps/oarlin/current/releases/20240102000453/storage as deployer@172.233.214.105

 DEBUG [da51cc62] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="3.3.0" ; /usr/bin/env ln -s /home/deployer/apps/oarlin/current/shared/storage /home/deployer/apps/oarlin/current/releases/20240102000453/storage )

  INFO [da51cc62] Finished in 0.100 seconds with exit status 0 (successful).

  INFO [cace3889] Running /usr/bin/env ln -s /home/deployer/apps/oarlin/current/releases/20240102000453 /home/deployer/apps/oarlin/current/releases/current as deployer@172.233.214.105

 DEBUG [cace3889] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="3.3.0" ; /usr/bin/env ln -s /home/deployer/apps/oarlin/current/releases/20240102000453 /home/deployer/apps/oarlin/current/releases/current )

  INFO [cace3889] Finished in 0.097 seconds with exit status 0 (successful).

  INFO [983e0fd9] Running /usr/bin/env mv /home/deployer/apps/oarlin/current/releases/current /home/deployer/apps/oarlin/current as deployer@172.233.214.105

 DEBUG [983e0fd9] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="3.3.0" ; /usr/bin/env mv /home/deployer/apps/oarlin/current/releases/current /home/deployer/apps/oarlin/current )

  INFO [983e0fd9] Finished in 0.107 seconds with exit status 0 (successful).

  INFO [9180286e] Running /etc/init.d/unicorn_Oarlin restart as deployer@172.233.214.105

 DEBUG [9180286e] Command: /etc/init.d/unicorn_Oarlin restart

 DEBUG [9180286e]     bash: line 1: /etc/init.d/unicorn_Oarlin: Permission denied

1 Reply

Based on the logs you shared showing a permissions error, you may need to use sudo when starting your app or change the permissions of the file to allow it to be executed by whatever user is being denied.

To see what the permissions are, you can run ls -la /etc/init.d/ and view the current permissions. This guide will help you figure out how to update the permissions.

I can understanding finding the full logs may be difficult because the output doesn't provide an absolute path to the file. Looking into where the files might be, I found some suggestions that it could be in a few places discussed in this StackOverflow post. Also, considering that storage is the last part of one line you shared and the first part of another, I'd try look in /home/deployer/apps/oarlin/current/releases/20240102000453/storage/logs/capistrano.log.

Otherwise, you can take steps to set up additional logging for capistrano deployments.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct