Page MenuHomeFeedback Tracker

serverCommand not functioning as expected after 1.66 update
Closed, ResolvedPublic


The following code snippet (from a server.pbo in our environment) worked before the 1.66 update, and no longer does:

if (isServer) then { "password" serverCommand "#restart"; }

This is how we manage the restarts on our server in favor of using:

[[_endType],"BIS_fnc_endMission", true, false] spawn BIS_fnc_MP;

The RPT reports the following error when a script with that initial command above is called:

Failed attempt to execute serverCommand '#restart' by server.

This worked for as long as I can remember, and the only change yesterday was to upgrade to 1.66. Further, attempts to run other serverCommand items from inside the debug console (server exec of course) produce a similar error (corresponding to what serverCommand is called) in the RPT.

A password is specified in the .cfg file (not a blank password), and the passwords match between the .SQF calling the command and the .cfg.


No Bug
Operating System
Windows 10 x64
Operating System Version
Windows 2012 R2 server actually
Steps To Reproduce
  1. Setup a password in server.cfg for passwordAdmin.
  2. Write a script that sits inside a server.pbo file with the command: if (isServer) then { "password" serverCommand "#restart"; }
  3. Run the mission, and server exec the command in question.
  4. Check the RPT file and find the following error: Failed attempt to execute serverCommand '#restart' by server.

Event Timeline

Bamf created this task.Dec 2 2016, 5:06 PM
Dwarden added a subscriber: Dwarden.Dec 2 2016, 5:48 PM
Bamf added a comment.Dec 2 2016, 6:02 PM

Apparently a bug was fixed in which adminPassword worked with serverCommand until 1.66. Specifying serverCommandPassword in the .cfg makes this work as intended.

richardbiely claimed this task.EditedDec 2 2016, 6:27 PM
richardbiely added a subscriber: richardbiely.

Last year we introduced a new server config parameter "serverCommandPassword". It is independent of passwordAdmin and is the only password that can be used with serverCommand. Configure this parameter to make your setup work, please.

You can find more about server config parameters here:

Dwarden closed this task as Resolved.Dec 3 2016, 9:45 AM
Dwarden changed Resolution from Open to No Bug.