Re: [basex-talk] Access denied using client

2023-10-21 Thread Michael Seiferle
Hey Csaba,

good to hear that :-)

Have a nice weekend,

Michael


Von meinem iPhone gesendet

Am 21.10.2023 um 08:09 schrieb Csaba Fekete :


Hi Michael
I was about to send the Dockerfile to you when I realized what the problem was!
I did not attach a volume to the container. For this reason, whenever I 
restarted the container, data - along with the new password I guess - was lost.
Adding this to docker-compose.yml solved it:
volumes:
  - "./docker/basex/data:/opt/basex/data"
Thank you guys!
Cheers

On Fri, 20 Oct 2023 at 23:35, Michael Seiferle 
mailto:m...@basex.org>> wrote:
Hey Csaba,

Feel free to post your Dockerfile, I’ll have a look at it tomorrow :-)
Maybe I’ll spot something :-)

Best
Michael

Von meinem iPhone gesendet

Am 20.10.2023 um 22:15 schrieb Csaba Fekete 
mailto:feketecs...@gmail.com>>:


Sorry, please ignore, it still doesn't work.
It works on my local machine, but not in the Docker container.
It looks like my Dockerfile is not quite right yet.
I'll keep trying. Thanks anyway.


On Fri, 20 Oct 2023 at 22:04, Csaba Fekete 
mailto:feketecs...@gmail.com>> wrote:
Szia Christian :-)
Yeah, I've tried restarting the server.
And this time I tried running the server as root and now it works fine! So it 
looks like the problem was that I had created a non-root user (basex) to run 
the server (I thought it would be safer when this gets deployed to a real 
server later).
Many thanks for your help!
Csaba

On Fri, 20 Oct 2023 at 21:56, Christian Grün 
mailto:christian.gr...@gmail.com>> wrote:
Szia Csaba,

Thanks for your observation. You may need to set the password first, and start 
the server after that.

Does this help?
Christian



Csaba Fekete mailto:feketecs...@gmail.com>> schrieb am 
Fr., 20. Okt. 2023, 21:40:
Hello,

A total newbie here, I'm a first time user.
I have installed basex on Ubuntu and I'm running the server attached to 
127.0.0.1, on port 1984. It looks like this is working and the server is 
listening.
Now I create a password for admin:

basex@cac5ba21e248:/opt/basex/bin$ ./basex
BaseX 10.8 beta [Standalone]
Try 'help' to get more information.
> PASSWORD xxx
Password of user 'admin' changed.

Now I'm trying to connect using the client:

basex@cac5ba21e248:/opt/basex/bin$ ./basexclient -n127.0.0.1 -p1984 -Uadmin 
-Pxxx
Access denied: admin.

The server log confirms the same:

basex@cac5ba21e248:~/basex/.logs$ cat 2023-10-20.log
18:51:30.575 SERVER admin OK Server was started (port: 1984).
18:51:42.316 172.22.0.1:41314 admin ERROR Access 
denied: admin. 30.7 ms
18:53:04.079 172.22.0.1:59892 admin ERROR Access 
denied: admin. 23.59 ms

What am I missing?
Thanks and regards

PS. I'm doing this inside a docker container if that matters.




Re: [basex-talk] Access denied using client

2023-10-21 Thread Csaba Fekete
Hi Michael
I was about to send the Dockerfile to you when I realized what the problem
was!
I did not attach a volume to the container. For this reason, whenever I
restarted the container, data - along with the new password I guess - was
lost.
Adding this to docker-compose.yml solved it:
volumes:
  - "./docker/basex/data:/opt/basex/data"
Thank you guys!
Cheers

On Fri, 20 Oct 2023 at 23:35, Michael Seiferle  wrote:

> Hey Csaba,
>
> Feel free to post your Dockerfile, I’ll have a look at it tomorrow :-)
> Maybe I’ll spot something :-)
>
> Best
> Michael
>
> Von meinem iPhone gesendet
>
> Am 20.10.2023 um 22:15 schrieb Csaba Fekete :
>
> 
> Sorry, please ignore, it still doesn't work.
> It works on my local machine, but not in the Docker container.
> It looks like my Dockerfile is not quite right yet.
> I'll keep trying. Thanks anyway.
>
>
> On Fri, 20 Oct 2023 at 22:04, Csaba Fekete  wrote:
>
>> Szia Christian :-)
>> Yeah, I've tried restarting the server.
>> And this time I tried running the server as root and now it works fine!
>> So it looks like the problem was that I had created a non-root user (basex)
>> to run the server (I thought it would be safer when this gets deployed to a
>> real server later).
>> Many thanks for your help!
>> Csaba
>>
>> On Fri, 20 Oct 2023 at 21:56, Christian Grün 
>> wrote:
>>
>>> Szia Csaba,
>>>
>>> Thanks for your observation. You may need to set the password first, and
>>> start the server after that.
>>>
>>> Does this help?
>>> Christian
>>>
>>>
>>>
>>> Csaba Fekete  schrieb am Fr., 20. Okt. 2023,
>>> 21:40:
>>>
 Hello,

 A total newbie here, I'm a first time user.
 I have installed basex on Ubuntu and I'm running the server attached to
 127.0.0.1, on port 1984. It looks like this is working and the server is
 listening.
 Now I create a password for admin:

 basex@cac5ba21e248:/opt/basex/bin$ ./basex
 BaseX 10.8 beta [Standalone]
 Try 'help' to get more information.
 > PASSWORD xxx
 Password of user 'admin' changed.

 Now I'm trying to connect using the client:

 basex@cac5ba21e248:/opt/basex/bin$ ./basexclient -n127.0.0.1 -p1984
 -Uadmin -Pxxx
 Access denied: admin.

 The server log confirms the same:

 basex@cac5ba21e248:~/basex/.logs$ cat 2023-10-20.log
 18:51:30.575 SERVER admin OK Server was started (port: 1984).
 18:51:42.316 172.22.0.1:41314 admin ERROR Access denied: admin. 30.7 ms
 18:53:04.079 172.22.0.1:59892 admin ERROR Access denied: admin. 23.59
 ms

 What am I missing?
 Thanks and regards

 PS. I'm doing this inside a docker container if that matters.





Re: [basex-talk] Access denied using client

2023-10-20 Thread Michael Seiferle
Hey Csaba,

Feel free to post your Dockerfile, I’ll have a look at it tomorrow :-)
Maybe I’ll spot something :-)

Best
Michael

Von meinem iPhone gesendet

Am 20.10.2023 um 22:15 schrieb Csaba Fekete :


Sorry, please ignore, it still doesn't work.
It works on my local machine, but not in the Docker container.
It looks like my Dockerfile is not quite right yet.
I'll keep trying. Thanks anyway.


On Fri, 20 Oct 2023 at 22:04, Csaba Fekete 
mailto:feketecs...@gmail.com>> wrote:
Szia Christian :-)
Yeah, I've tried restarting the server.
And this time I tried running the server as root and now it works fine! So it 
looks like the problem was that I had created a non-root user (basex) to run 
the server (I thought it would be safer when this gets deployed to a real 
server later).
Many thanks for your help!
Csaba

On Fri, 20 Oct 2023 at 21:56, Christian Grün 
mailto:christian.gr...@gmail.com>> wrote:
Szia Csaba,

Thanks for your observation. You may need to set the password first, and start 
the server after that.

Does this help?
Christian



Csaba Fekete mailto:feketecs...@gmail.com>> schrieb am 
Fr., 20. Okt. 2023, 21:40:
Hello,

A total newbie here, I'm a first time user.
I have installed basex on Ubuntu and I'm running the server attached to 
127.0.0.1, on port 1984. It looks like this is working and the server is 
listening.
Now I create a password for admin:

basex@cac5ba21e248:/opt/basex/bin$ ./basex
BaseX 10.8 beta [Standalone]
Try 'help' to get more information.
> PASSWORD xxx
Password of user 'admin' changed.

Now I'm trying to connect using the client:

basex@cac5ba21e248:/opt/basex/bin$ ./basexclient -n127.0.0.1 -p1984 -Uadmin 
-Pxxx
Access denied: admin.

The server log confirms the same:

basex@cac5ba21e248:~/basex/.logs$ cat 2023-10-20.log
18:51:30.575 SERVER admin OK Server was started (port: 1984).
18:51:42.316 172.22.0.1:41314 admin ERROR Access 
denied: admin. 30.7 ms
18:53:04.079 172.22.0.1:59892 admin ERROR Access 
denied: admin. 23.59 ms

What am I missing?
Thanks and regards

PS. I'm doing this inside a docker container if that matters.




Re: [basex-talk] Access denied using client

2023-10-20 Thread Csaba Fekete
Sorry, please ignore, it still doesn't work.
It works on my local machine, but not in the Docker container.
It looks like my Dockerfile is not quite right yet.
I'll keep trying. Thanks anyway.


On Fri, 20 Oct 2023 at 22:04, Csaba Fekete  wrote:

> Szia Christian :-)
> Yeah, I've tried restarting the server.
> And this time I tried running the server as root and now it works fine! So
> it looks like the problem was that I had created a non-root user (basex) to
> run the server (I thought it would be safer when this gets deployed to a
> real server later).
> Many thanks for your help!
> Csaba
>
> On Fri, 20 Oct 2023 at 21:56, Christian Grün 
> wrote:
>
>> Szia Csaba,
>>
>> Thanks for your observation. You may need to set the password first, and
>> start the server after that.
>>
>> Does this help?
>> Christian
>>
>>
>>
>> Csaba Fekete  schrieb am Fr., 20. Okt. 2023,
>> 21:40:
>>
>>> Hello,
>>>
>>> A total newbie here, I'm a first time user.
>>> I have installed basex on Ubuntu and I'm running the server attached to
>>> 127.0.0.1, on port 1984. It looks like this is working and the server is
>>> listening.
>>> Now I create a password for admin:
>>>
>>> basex@cac5ba21e248:/opt/basex/bin$ ./basex
>>> BaseX 10.8 beta [Standalone]
>>> Try 'help' to get more information.
>>> > PASSWORD xxx
>>> Password of user 'admin' changed.
>>>
>>> Now I'm trying to connect using the client:
>>>
>>> basex@cac5ba21e248:/opt/basex/bin$ ./basexclient -n127.0.0.1 -p1984
>>> -Uadmin -Pxxx
>>> Access denied: admin.
>>>
>>> The server log confirms the same:
>>>
>>> basex@cac5ba21e248:~/basex/.logs$ cat 2023-10-20.log
>>> 18:51:30.575 SERVER admin OK Server was started (port: 1984).
>>> 18:51:42.316 172.22.0.1:41314 admin ERROR Access denied: admin. 30.7 ms
>>> 18:53:04.079 172.22.0.1:59892 admin ERROR Access denied: admin. 23.59 ms
>>>
>>> What am I missing?
>>> Thanks and regards
>>>
>>> PS. I'm doing this inside a docker container if that matters.
>>>
>>>
>>>


Re: [basex-talk] Access denied using client

2023-10-20 Thread Csaba Fekete
Szia Christian :-)
Yeah, I've tried restarting the server.
And this time I tried running the server as root and now it works fine! So
it looks like the problem was that I had created a non-root user (basex) to
run the server (I thought it would be safer when this gets deployed to a
real server later).
Many thanks for your help!
Csaba

On Fri, 20 Oct 2023 at 21:56, Christian Grün 
wrote:

> Szia Csaba,
>
> Thanks for your observation. You may need to set the password first, and
> start the server after that.
>
> Does this help?
> Christian
>
>
>
> Csaba Fekete  schrieb am Fr., 20. Okt. 2023, 21:40:
>
>> Hello,
>>
>> A total newbie here, I'm a first time user.
>> I have installed basex on Ubuntu and I'm running the server attached to
>> 127.0.0.1, on port 1984. It looks like this is working and the server is
>> listening.
>> Now I create a password for admin:
>>
>> basex@cac5ba21e248:/opt/basex/bin$ ./basex
>> BaseX 10.8 beta [Standalone]
>> Try 'help' to get more information.
>> > PASSWORD xxx
>> Password of user 'admin' changed.
>>
>> Now I'm trying to connect using the client:
>>
>> basex@cac5ba21e248:/opt/basex/bin$ ./basexclient -n127.0.0.1 -p1984
>> -Uadmin -Pxxx
>> Access denied: admin.
>>
>> The server log confirms the same:
>>
>> basex@cac5ba21e248:~/basex/.logs$ cat 2023-10-20.log
>> 18:51:30.575 SERVER admin OK Server was started (port: 1984).
>> 18:51:42.316 172.22.0.1:41314 admin ERROR Access denied: admin. 30.7 ms
>> 18:53:04.079 172.22.0.1:59892 admin ERROR Access denied: admin. 23.59 ms
>>
>> What am I missing?
>> Thanks and regards
>>
>> PS. I'm doing this inside a docker container if that matters.
>>
>>
>>


Re: [basex-talk] Access denied using client

2023-10-20 Thread Christian Grün
Szia Csaba,

Thanks for your observation. You may need to set the password first, and
start the server after that.

Does this help?
Christian



Csaba Fekete  schrieb am Fr., 20. Okt. 2023, 21:40:

> Hello,
>
> A total newbie here, I'm a first time user.
> I have installed basex on Ubuntu and I'm running the server attached to
> 127.0.0.1, on port 1984. It looks like this is working and the server is
> listening.
> Now I create a password for admin:
>
> basex@cac5ba21e248:/opt/basex/bin$ ./basex
> BaseX 10.8 beta [Standalone]
> Try 'help' to get more information.
> > PASSWORD xxx
> Password of user 'admin' changed.
>
> Now I'm trying to connect using the client:
>
> basex@cac5ba21e248:/opt/basex/bin$ ./basexclient -n127.0.0.1 -p1984
> -Uadmin -Pxxx
> Access denied: admin.
>
> The server log confirms the same:
>
> basex@cac5ba21e248:~/basex/.logs$ cat 2023-10-20.log
> 18:51:30.575 SERVER admin OK Server was started (port: 1984).
> 18:51:42.316 172.22.0.1:41314 admin ERROR Access denied: admin. 30.7 ms
> 18:53:04.079 172.22.0.1:59892 admin ERROR Access denied: admin. 23.59 ms
>
> What am I missing?
> Thanks and regards
>
> PS. I'm doing this inside a docker container if that matters.
>
>
>


[basex-talk] Access denied using client

2023-10-20 Thread Csaba Fekete
Hello,

A total newbie here, I'm a first time user.
I have installed basex on Ubuntu and I'm running the server attached to
127.0.0.1, on port 1984. It looks like this is working and the server is
listening.
Now I create a password for admin:

basex@cac5ba21e248:/opt/basex/bin$ ./basex
BaseX 10.8 beta [Standalone]
Try 'help' to get more information.
> PASSWORD xxx
Password of user 'admin' changed.

Now I'm trying to connect using the client:

basex@cac5ba21e248:/opt/basex/bin$ ./basexclient -n127.0.0.1 -p1984 -Uadmin
-Pxxx
Access denied: admin.

The server log confirms the same:

basex@cac5ba21e248:~/basex/.logs$ cat 2023-10-20.log
18:51:30.575 SERVER admin OK Server was started (port: 1984).
18:51:42.316 172.22.0.1:41314 admin ERROR Access denied: admin. 30.7 ms
18:53:04.079 172.22.0.1:59892 admin ERROR Access denied: admin. 23.59 ms

What am I missing?
Thanks and regards

PS. I'm doing this inside a docker container if that matters.