Skip to main content

@Hello!

I've issue that maybe you would know how to solve, description:

 

I am using FME Server 2020 docker-compose version and I would like to automate its deployment to my purpose - by adding a script that is creating repository/publishing/running some .fmws on it by REST API. The script would be another docker in docker-compose file.

 

Unfortunately, you have to change FME Server admin password just after the installation to do operation there, and I don't see any other way than doing it manually in the UI. I've tried doing it by REST API but I get:

Authentication failed: Password needs to be changed and must be reset. Please login to the web interface to update your password

fmeserver_token

 

Is there another way to manage this manual step in my deployment process? Another ideas how to automate such operation are welcome!

 

Thank you for reading! 😎

See the documentation.

Changing a user's password

To change a user's password, you need to supply both the old password and new password as form parameters. To change lizard's password from oldpassword to newpassword, use the following:

PUT https://fmeserver.example.com/fmerest/v3/security/accounts/lizard/password
 
Accept: application/json
 
Content-Type: application/x-www-form-urlencoded
 
current=oldpassword&new=newpassword

 If this does'n work either, you can submit a case here.


See the documentation.

Changing a user's password

To change a user's password, you need to supply both the old password and new password as form parameters. To change lizard's password from oldpassword to newpassword, use the following:

PUT https://fmeserver.example.com/fmerest/v3/security/accounts/lizard/password
 
Accept: application/json
 
Content-Type: application/x-www-form-urlencoded
 
current=oldpassword&new=newpassword

 If this does'n work either, you can submit a case here.

Tried that, unfortunately, result is the same as in my question post. In Get Token windows I use default admin/admin.

fmeserver_token2


Hi @skime​ 

 

When you do a silent installation you can add the installation property FIRSTLOGINCHANGEPASSWORD=false. This should let you install without having to change your admin password. This property can also be set on the FMEServerCore container in docker compose.

https://docs.safe.com/fme/html/FME_Server_Documentation/AdminGuide/Silent-Install-Linux.htm


Hi @skime​ 

 

When you do a silent installation you can add the installation property FIRSTLOGINCHANGEPASSWORD=false. This should let you install without having to change your admin password. This property can also be set on the FMEServerCore container in docker compose.

https://docs.safe.com/fme/html/FME_Server_Documentation/AdminGuide/Silent-Install-Linux.htm

Since you are doing a Docker install, you'll need to set this property in the docker-compose.yaml under the fmeservercore environment variables list.


Hi @skime​ 

 

When you do a silent installation you can add the installation property FIRSTLOGINCHANGEPASSWORD=false. This should let you install without having to change your admin password. This property can also be set on the FMEServerCore container in docker compose.

https://docs.safe.com/fme/html/FME_Server_Documentation/AdminGuide/Silent-Install-Linux.htm

That's what I need. Now I can automate whole process. Thank you @richardatsafe​  and @hollyatsafe​ ! ✌️


Reply