You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by Ian Dunlop <ia...@gmail.com> on 2016/11/17 12:27:43 UTC
Tav Server admin
Hello,
I'm using the docker taverna/taverna-server image and want to add
users/change passwords etc.So.....
1) Is it possible to admin a Taverna Server instance through a web
interface? Is "Component: Taverna/Server/Users" in the admin guide
(http://dev.mygrid.org.uk/wiki/display/tav250/Administration+Guide)
referring to Java code or a web app?
2) How do you access the WEB-INF/user.properties file in a docker image
so that you can change it? How can you persist it between container
restarts?
Cheers,
Ian
Re: Tav Server admin
Posted by Stian Soiland-Reyes <st...@apache.org>.
"changeme" use to be a favourite, until someone read it literally -
and changed it to "changeit".. (That was in the default JDK keystore
in JDK 5 if I remember correctly)
On 17 November 2016 at 16:48, Ian Dunlop <ia...@gmail.com> wrote:
> Hello,
>
> That's better. Upper case. Really! Security by obscurity worked in this
> case :) I looked at that file but didn't realise that was the default
> password.
>
> Thanks Stian. And also Alan for the docker exec tip - you learn
> something new every day, in this case
>
> "docker exec -i -t taverna /bin/bash" to access the container shell.
>
> Cheers,
>
> Ian
>
> On 17/11/16 16:21, Stian Soiland-Reyes wrote:
>> The docker job adds this users.properties:
>>
>> https://github.com/taverna-extras/taverna-server-docker/blob/master/users.properties
>>
>> which claims to have admin/ADMIN - remember casing in the password!
>>
>>
>> (See that repo for the rest of the Docker stuff)
>>
>>
>> On 17 November 2016 at 16:07, Ian Dunlop <ia...@gmail.com> wrote:
>>> Hello,
>>>
>>> I have docker exec'd into the container and looked at tomcat/logs. The
>>> access is being logged and reported as 403 but not the reason (well, 403
>>> is the reason I guess!). It doesn't even give me a chance to enter
>>> username password now. I might delete the container and try again.
>>>
>>> Cheers,
>>>
>>> Ian
>>>
>>> On 17/11/16 15:01, Alan Williams wrote:
>>>> On 17-Nov-16 14:55, Ian Dunlop wrote:
>>>>> Hello,
>>>>>
>>>>> That's the page I would like to see :) but it's not letting me. docker
>>>>> logs doesn't reveal a whole lot beyond server startup. Nothing after:
>>>>>
>>>>> "Nov 17, 2016 2:04:03 PM org.apache.catalina.startup.Catalina start
>>>>> INFO: Server startup in 10757 ms"
>>>> Can you ssh into the docker using docker exec?
>>>>
>>>>> Cheers,
>>>>>
>>>>> Ian
>>>> Alan
>>>>
>>>
>>
>>
>
>
--
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718
Re: Tav Server admin
Posted by Ian Dunlop <ia...@gmail.com>.
Hello,
That's better. Upper case. Really! Security by obscurity worked in this
case :) I looked at that file but didn't realise that was the default
password.
Thanks Stian. And also Alan for the docker exec tip - you learn
something new every day, in this case
"docker exec -i -t taverna /bin/bash" to access the container shell.
Cheers,
Ian
On 17/11/16 16:21, Stian Soiland-Reyes wrote:
> The docker job adds this users.properties:
>
> https://github.com/taverna-extras/taverna-server-docker/blob/master/users.properties
>
> which claims to have admin/ADMIN - remember casing in the password!
>
>
> (See that repo for the rest of the Docker stuff)
>
>
> On 17 November 2016 at 16:07, Ian Dunlop <ia...@gmail.com> wrote:
>> Hello,
>>
>> I have docker exec'd into the container and looked at tomcat/logs. The
>> access is being logged and reported as 403 but not the reason (well, 403
>> is the reason I guess!). It doesn't even give me a chance to enter
>> username password now. I might delete the container and try again.
>>
>> Cheers,
>>
>> Ian
>>
>> On 17/11/16 15:01, Alan Williams wrote:
>>> On 17-Nov-16 14:55, Ian Dunlop wrote:
>>>> Hello,
>>>>
>>>> That's the page I would like to see :) but it's not letting me. docker
>>>> logs doesn't reveal a whole lot beyond server startup. Nothing after:
>>>>
>>>> "Nov 17, 2016 2:04:03 PM org.apache.catalina.startup.Catalina start
>>>> INFO: Server startup in 10757 ms"
>>> Can you ssh into the docker using docker exec?
>>>
>>>> Cheers,
>>>>
>>>> Ian
>>> Alan
>>>
>>
>
>
Re: Tav Server admin
Posted by Ian Dunlop <ia...@gmail.com>.
Hello,
I have added some notes about default users in pull request
https://github.com/taverna-extras/taverna-server-docker/pull/1
Cheers,
Ian
On 17/11/16 19:55, Alan Williams wrote:
> On 17-Nov-16 16:21, Stian Soiland-Reyes wrote:
>> The docker job adds this users.properties:
>>
>> https://github.com/taverna-extras/taverna-server-docker/blob/master/users.properties
>>
>>
>> which claims to have admin/ADMIN - remember casing in the password!
>
> Interesting! I checked the server code and that isn't the default
> there. I guess that's why it was changed :)
>
> Is it in the documentation of the docker image, because otherwise it
> will be very confusing (as it was for Ian).
>
>> (See that repo for the rest of the Docker stuff)
>
> Alan
>
Re: Tav Server admin
Posted by Alan Williams <al...@googlemail.com>.
On 17-Nov-16 16:21, Stian Soiland-Reyes wrote:
> The docker job adds this users.properties:
>
> https://github.com/taverna-extras/taverna-server-docker/blob/master/users.properties
>
> which claims to have admin/ADMIN - remember casing in the password!
Interesting! I checked the server code and that isn't the default there.
I guess that's why it was changed :)
Is it in the documentation of the docker image, because otherwise it
will be very confusing (as it was for Ian).
> (See that repo for the rest of the Docker stuff)
Alan
Re: Tav Server admin
Posted by Stian Soiland-Reyes <st...@apache.org>.
The docker job adds this users.properties:
https://github.com/taverna-extras/taverna-server-docker/blob/master/users.properties
which claims to have admin/ADMIN - remember casing in the password!
(See that repo for the rest of the Docker stuff)
On 17 November 2016 at 16:07, Ian Dunlop <ia...@gmail.com> wrote:
> Hello,
>
> I have docker exec'd into the container and looked at tomcat/logs. The
> access is being logged and reported as 403 but not the reason (well, 403
> is the reason I guess!). It doesn't even give me a chance to enter
> username password now. I might delete the container and try again.
>
> Cheers,
>
> Ian
>
> On 17/11/16 15:01, Alan Williams wrote:
>> On 17-Nov-16 14:55, Ian Dunlop wrote:
>>> Hello,
>>>
>>> That's the page I would like to see :) but it's not letting me. docker
>>> logs doesn't reveal a whole lot beyond server startup. Nothing after:
>>>
>>> "Nov 17, 2016 2:04:03 PM org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 10757 ms"
>>
>> Can you ssh into the docker using docker exec?
>>
>>> Cheers,
>>>
>>> Ian
>>
>> Alan
>>
>
>
--
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718
Re: Tav Server admin
Posted by Ian Dunlop <ia...@gmail.com>.
Hello,
I have docker exec'd into the container and looked at tomcat/logs. The
access is being logged and reported as 403 but not the reason (well, 403
is the reason I guess!). It doesn't even give me a chance to enter
username password now. I might delete the container and try again.
Cheers,
Ian
On 17/11/16 15:01, Alan Williams wrote:
> On 17-Nov-16 14:55, Ian Dunlop wrote:
>> Hello,
>>
>> That's the page I would like to see :) but it's not letting me. docker
>> logs doesn't reveal a whole lot beyond server startup. Nothing after:
>>
>> "Nov 17, 2016 2:04:03 PM org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 10757 ms"
>
> Can you ssh into the docker using docker exec?
>
>> Cheers,
>>
>> Ian
>
> Alan
>
Re: Tav Server admin
Posted by Alan Williams <al...@googlemail.com>.
On 17-Nov-16 14:55, Ian Dunlop wrote:
> Hello,
>
> That's the page I would like to see :) but it's not letting me. docker
> logs doesn't reveal a whole lot beyond server startup. Nothing after:
>
> "Nov 17, 2016 2:04:03 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 10757 ms"
Can you ssh into the docker using docker exec?
> Cheers,
>
> Ian
Alan
Re: Tav Server admin
Posted by Ian Dunlop <ia...@gmail.com>.
Hello,
That's the page I would like to see :) but it's not letting me. docker
logs doesn't reveal a whole lot beyond server startup. Nothing after:
"Nov 17, 2016 2:04:03 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10757 ms"
Cheers,
Ian
On 17/11/16 14:22, Alan Williams wrote:
> On 17-Nov-16 14:06, Ian Dunlop wrote:
>> Hello,
>>
>> I get a 403 Access Denied with what the admin guide says are the default
>> username/password. Debugging this docker stuff is way harder than it
>> should be. I'm tempted to go back to bare metal Tomcat.
>
> OK. Can you check in the docker what it receives and what it expects?
>
> I have checked on the Taverna Server behind the BioVeL portal, and
> there is an admin page. Not sure if an attachment will come through so
> look at https://www.dropbox.com/s/i8dc6wmyrwzipwy/server.PNG?dl=0
>
>> Cheers,
>>
>> Ian
>
> Alan
Re: Tav Server admin
Posted by Alan Williams <al...@googlemail.com>.
On 17-Nov-16 14:06, Ian Dunlop wrote:
> Hello,
>
> I get a 403 Access Denied with what the admin guide says are the default
> username/password. Debugging this docker stuff is way harder than it
> should be. I'm tempted to go back to bare metal Tomcat.
OK. Can you check in the docker what it receives and what it expects?
I have checked on the Taverna Server behind the BioVeL portal, and there
is an admin page. Not sure if an attachment will come through so look at
https://www.dropbox.com/s/i8dc6wmyrwzipwy/server.PNG?dl=0
> Cheers,
>
> Ian
Alan
Re: Tav Server admin
Posted by Ian Dunlop <ia...@gmail.com>.
Hello,
I get a 403 Access Denied with what the admin guide says are the default
username/password. Debugging this docker stuff is way harder than it
should be. I'm tempted to go back to bare metal Tomcat.
Cheers,
Ian
On 17/11/16 13:52, Alan Williams wrote:
> On 17-Nov-16 12:27, Ian Dunlop wrote:
>> Hello,
>>
>> I'm using the docker taverna/taverna-server image and want to add
>> users/change passwords etc.So.....
>>
>> 1) Is it possible to admin a Taverna Server instance through a web
>> interface? Is "Component: Taverna/Server/Users" in the admin guide
>> (http://dev.mygrid.org.uk/wiki/display/tav250/Administration+Guide)
>> referring to Java code or a web app?
>
> There is definitely an admin web page. It is normally at
> /tavernaserver/admin . I am not sure what can be administered from there.
>
>> 2) How do you access the WEB-INF/user.properties file in a docker image
>> so that you can change it? How can you persist it between container
>> restarts?
>
> I think (but am not completely certain) that the changes done in the
> admin pane are saved in the server's database. That is read in
> preference to the user.properties file. user.properties specifies the
> properties to be used initially (when there are no values in the
> database).
>
>> Cheers,
>>
>> Ian
>
> Alan
>
Re: Tav Server admin
Posted by Alan Williams <al...@googlemail.com>.
On 17-Nov-16 12:27, Ian Dunlop wrote:
> Hello,
>
> I'm using the docker taverna/taverna-server image and want to add
> users/change passwords etc.So.....
>
> 1) Is it possible to admin a Taverna Server instance through a web
> interface? Is "Component: Taverna/Server/Users" in the admin guide
> (http://dev.mygrid.org.uk/wiki/display/tav250/Administration+Guide)
> referring to Java code or a web app?
There is definitely an admin web page. It is normally at
/tavernaserver/admin . I am not sure what can be administered from there.
> 2) How do you access the WEB-INF/user.properties file in a docker image
> so that you can change it? How can you persist it between container
> restarts?
I think (but am not completely certain) that the changes done in the
admin pane are saved in the server's database. That is read in
preference to the user.properties file. user.properties specifies the
properties to be used initially (when there are no values in the database).
> Cheers,
>
> Ian
Alan