Unable to create the initial user
Hi,
I am using Portainer and docker-compose to manage our docker stacks.
I have created a docker-compose.yml file specially suited for our needs with a few changes from yours, notably a different port and the database (which we manage).
Everything seems to work, the logs look good, the database gets populated, and the login page opens correctly.
Now I want to create the administrator.
I have tried to execute the instructions you provide in the documentation from the Portainer console of the server container but nothing worked.
I have tried: sh /app/virtualpaper manage add-user, which should work according to the manual and the common syntax of docker-compose.
However I consistently get this error: /app/virtualpaper: line 1: syntax error: unexpected ";"
More generally, virtualpaper is not recognized as a legitimate command within the container.
My feeling is that it would be less frustrating to have a standard user (eg. admin/admin) upfront and be invited to create a new one at the first entry in the software.
Please help, Stephen
I also tried to create a new user from scratch in the database with an empty password. But there is no "Lost Password" recovery function in the login page so I was still unable to login.
It seems like the config file is invalid and contains invalid ";". You need to escape all string values with quotes in the config file. Also you could try explicitly setting the config file inside the container with the --config flag. Please let me know if any of these help! The first-time-use experience could definitely be improved. I need to think about adding the default user, or better yet, adding a form for initializing the installation.
For the second question, there is a manage command 'reset password', try that.