Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

taijuten's avatar

Issue with "Activate New Release" Deployment Hook

I'm having issues with the Activation of New Release.

The fail is logging the following output:

Linux Detected...
Release Activated (20161211152555)!
PHP-FPM Detected: Reloading
[sudo] password for forge: Sorry, try again.
[sudo] password for forge: 
sudo: 1 incorrect password attempt

Either my Google-Fu is failing me today, or I'm not able to find any others with the same issue.

It looks like sudo password is being required, and the commands following the activation are being inserted as the password.

Any ideas on how to get around this?

0 likes
12 replies
ejdelmonico's avatar

Are you referring to an Envoy script or the product Envoyer?

pointzero's avatar

I had the same issue. I selected PHP version 7.1 when I set up my server, but the server was actually on 7.0. Changing it to the correct version fixed the problem.

3 likes
jbajou's avatar

I'm actually experiencing the same issue. Tried the php version trick pointed out by @pointzero, with no luck.

I added the give user to my sudo group and double checked if a sudo whoami would success. Everything is fine.

Any idea ?

taijuten's avatar

@jbajou I spoke to Taylor about this, and he recommended just removing the "Reload FPM on deploy" from the server options in Envoyer, and it worked for me

1 like
jbajou's avatar

Alright, turns out the server is not using PHP-FPM, so I unticked the box "reload FPM" in the settings. Working fine now!

1 like
nateritter's avatar

Unfortunately unticking the "reload FPM" in the settings creates a problem for me. I wonder if it does for any of you as well. The problem is the site doesn't update with new changes.

I banged my head against a wall for a while looking at caching, view caching, etc. Nope. It was the FPM reload that was required and voila, it all worked again.

That said, because of the error mentioned in the OP, if I untick the "reload FPM", I am unable to see the new changes when I modify the app and deploy.

There has to be a work around somehow. Thoughts?

laurentvd's avatar

Not sure if it's new or not. But Envoyer gives me a hint on what is wrong and how to fix it. In my case I had to run echo "forge ALL=NOPASSWD: /usr/sbin/service php7.0-fpm reload" | sudo tee -a /etc/sudoers.d/php-fpm > /dev/null which is basically what fideloper says.

2 likes
fonzizi08's avatar

I got the same error by downgrading a forge server from 7.3 to 7.2. You have to go into your server config in Envoyer and correct the php version there. This fixed the issue for me.

laramark's avatar

@FONZIZI08 - Do you happen to know how this is done via Laravel Forge? I am experiencing a similar issue, where I downgraded from 7.2 to 7.1. Thanks!

Please or to participate in this conversation.