Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure log #330

Closed
6 tasks done
cfpinto opened this issue Mar 7, 2017 · 18 comments
Closed
6 tasks done

Failure log #330

cfpinto opened this issue Mar 7, 2017 · 18 comments

Comments

@cfpinto
Copy link

cfpinto commented Mar 7, 2017

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

  • You're running the latest release version of Deployer.
  • Ensure that you're running at least PHP 5.6.4, you can check this by running php -v
  • You've ran composer install --no-dev from the root of your installation.
  • You've ran npm install --production from the root of your installation.
  • You've ran rm -rf bootstrap/cache/* from the root of your installation.
  • You have restarted the queue listener and node socket server.

To help us better understand your issue, please answer the following.

Expected behaviour

Log errors on failure

Actual behaviour

Nothing present on logs as to reason of failure

Steps to reproduce

When a new deployment is started it always fails on create new release step. There is no information about the error both on the logs and output. The only info is present in the process output and says "Process Output (Create New Release)"

Environment info

Visit /admin/sysinfo on your install and click the "Get System Report" button. Paste the report here, if you can't
please provide the following instead.

Operating System: Ubuntu Server 16.04.2 LTS
PHP Version: 7.0
Node Version: 6.9
Database System: MySql
Database Version: 5.7.17

Logs (see storage/logs/) or other output that would be helpful

nothing on the logs

The way a deployment is setup is a bit unclear I must be doing something wrong but I can't find any logs that could help me.

Please help

Cheers
Claudio

@REBELinBLUE
Copy link
Owner

REBELinBLUE commented Mar 7, 2017

Which version are you on? These was a bug in one of the releases between 0.0.40 and 0.0.44 which caused this... also, if you are on master there was a bug in that also causing this for a separate reason which I fixed last night.

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

I'm using version 0.0.43 as recommended in installation. I've also activated logging on my .env file

@REBELinBLUE
Copy link
Owner

Oh, I forgot to update the instructions, sorry about that yeah this was fixed in 0.0.44

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

OK, will update and check

@REBELinBLUE
Copy link
Owner

Thanks, sorry about that. I've changed the install instructions so it doesn't happen again.

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

OK, now it works. I had to do the same as #327 but now it works

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

Don't want to open another ticket but I have another question.

How do I setup a application status url? What is the expected output of the endpoint?

Cheers

@REBELinBLUE
Copy link
Owner

REBELinBLUE commented Mar 7, 2017

Great.

I have fixed that issue in master and will be releasing a new version this week. Basically to do with the size of the log becoming bigger than beanstalkd's default limit of 65kb, so I have changed it so it only broadcasts a notice that the log has changed not the content then the client does an AJAX request to get the log if it actually cares

@REBELinBLUE
Copy link
Owner

REBELinBLUE commented Mar 7, 2017

Simply a URL it calls which doesn't return an error, so anything which returns a 200 status code for instance (200 OK, 201 Created etc). Basically a 40x or 50x code will cause a failure (i.e. 400 Bad Request, 404 File Not Found, 500 Internal Server Error)

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

ok, is it possible to see the logs of the tests somewhere? I know for a fact the URL is active but I'm still getting an offline warning

@REBELinBLUE
Copy link
Owner

Hmm no actually, but that is a very good idea! I'll add it right now, give me 30 minutes or so

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

thanks

@REBELinBLUE
Copy link
Owner

Actually going to take me a bit longer...

However, if you edit app/Jobs/RequestProjectCheckUrl.php and after the line $link->offline();

Add

\Illuminate\Support\Facades\Log::error($error->getMessage());

then restart the queue listener with php artisan queue:restart it will log the message in the log in storage/logs/

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

Thanks for the hint. It now works

Cheers

@REBELinBLUE
Copy link
Owner

Out of interest what was the problem?

@cfpinto
Copy link
Author

cfpinto commented Mar 7, 2017

Just a bad firewall setup. Nothing special. But I couldn't reach the server and without errors it was hard to debug.

@REBELinBLUE
Copy link
Owner

ah

@cfpinto
Copy link
Author

cfpinto commented Mar 8, 2017

Yeah I know, I'm embarrassed, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants