Hi all,
Not really a bug report because I did not manage to figure out the cause.
However, after upgrading from FC31 to FC32 I could not login any more, due
to SELinux problems. Auto-relabeling did not work, nothing really...
... until I did dnf uninstall MonetDB-selinux.
I came to this point because trying to give systemd services the correct
labels with restorecon failed with an error referencing a monetdb specific
file.
I do not have the details unfortunately, but if you get problems, beware
that MonetDB SELinux package and systemd may interfere in some way beyond
my knowledge of these services.
Best regards,
Arjen
PS: Some output from logs:
sudo ausearch -c monetdb -m AVC,SELINUX_ERR
[..]
----
time->Sat May 2 20:57:01 2020
type=AVC msg=audit(1588445821.693:203): avc: denied { open } for
pid=1232 comm="monetdbd" path="/etc/resolv.conf" dev="dm-0" ino=3409775
scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:default_t:s0 tclass=file permissive=1
----
time->Sat May 2 21:12:56 2020
type=AVC msg=audit(1588446776.043:1194): avc: denied { execute } for
pid=2861 comm="(monetdbd)" name="monetdbd" dev="dm-0" ino=2147256
scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
trawcon="unconfined_u:object_r:monetdbd_exec_t:s0"
----
time->Sat May 2 21:12:56 2020
type=AVC msg=audit(1588446776.043:1195): avc: denied { execute_no_trans }
for pid=2861 comm="(monetdbd)" path="/usr/bin/monetdbd" dev="dm-0"
ino=2147256 scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
trawcon="unconfined_u:object_r:monetdbd_exec_t:s0"
----
time->Sat May 2 21:12:56 2020
type=AVC msg=audit(1588446776.044:1196): avc: denied { map } for
pid=2861 comm="monetdbd" path="/usr/bin/monetdbd" dev="dm-0" ino=2147256
scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
trawcon="unconfined_u:object_r:monetdbd_exec_t:s0"
----
time->Sat May 2 21:12:56 2020
type=AVC msg=audit(1588446776.714:1197): avc: denied { remove_name } for
pid=1232 comm="monetdbd" name="merovingian.pid" dev="tmpfs" ino=34369
scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir permissive=1
trawcon="system_u:object_r:monetdbd_var_run_t:s0"
----
time->Sat May 2 21:12:56 2020
type=AVC msg=audit(1588446776.714:1198): avc: denied { unlink } for
pid=1232 comm="monetdbd" name="merovingian.pid" dev="tmpfs" ino=34369
scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
----
time->Sat May 2 21:12:56 2020
type=AVC msg=audit(1588446776.714:1199): avc: denied { write } for
pid=1232 comm="monetdbd" name=".merovingian_lock" dev="dm-0" ino=5899443
scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1
trawcon="system_u:object_r:monetdbd_lock_t:s0"
----
time->Sat May 2 21:13:15 2020
type=AVC msg=audit(1588446795.214:1209): avc: denied { read } for
pid=2925 comm="(monetdbd)" name="passwd" dev="dm-0" ino=524514
scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:var_t:s0
tclass=file permissive=1
----
time->Sat May 2 21:13:15 2020
type=AVC msg=audit(1588446795.214:1210): avc: denied { open } for
pid=2925 comm="(monetdbd)" path="/var/lib/sss/mc/passwd" dev="dm-0"
ino=524514 scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:var_t:s0 tclass=file permissive=1
----
time->Sat May 2 21:13:15 2020
type=AVC msg=audit(1588446795.214:1211): avc: denied { map } for
pid=2925 comm="(monetdbd)" path="/var/lib/sss/mc/passwd" dev="dm-0"
ino=524514 scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:var_t:s0 tclass=file permissive=1
----
time->Sat May 2 21:14:24 2020
type=AVC msg=audit(1588446864.487:1281): avc: denied { read } for
pid=3072 comm="(monetdbd)" name="passwd" dev="dm-0" ino=524514
scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:var_t:s0
tclass=file permissive=1
----
time->Sat May 2 21:14:24 2020
type=AVC msg=audit(1588446864.487:1282): avc: denied { open } for
pid=3072 comm="(monetdbd)" path="/var/lib/sss/mc/passwd" dev="dm-0"
ino=524514 scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:var_t:s0 tclass=file permissive=1
----
time->Sat May 2 21:14:24 2020
type=AVC msg=audit(1588446864.487:1283): avc: denied { map } for
pid=3072 comm="(monetdbd)" path="/var/lib/sss/mc/passwd" dev="dm-0"
ino=524514 scontext=system_u:system_r:init_t:s0
tcontext=system_u:object_r:var_t:s0 tclass=file permissive=1
--
====================================================================
ICIS, office M1.00.05 Radboud University
Mercator 1 Faculty of Science
Toernooiveld 212 arjen(a)cs.ru.nl
NL-6525 EC Nijmegen, The Netherlands +31-(0)24-365 2354
===================== http://www.informagus.nl/ ====================
--
====================================================================
ICIS, office M1.00.05 Radboud University
Mercator 1 Faculty of Science
Toernooiveld 212 arjen(a)cs.ru.nl
NL-6525 EC Nijmegen, The Netherlands +31-(0)24-365 2354
===================== http://www.informagus.nl/ ====================
Thank you Ying and everyone involved.
Regards,
Kevork Vartanian
________________________________
From: users-list <users-list-bounces+kev=innotta.com.au(a)monetdb.org> on behalf of users-list-request(a)monetdb.org <users-list-request(a)monetdb.org>
Sent: Thursday, 10 December 2020 1:56 AM
To: users-list(a)monetdb.org <users-list(a)monetdb.org>
Subject: users-list Digest, Vol 100, Issue 5
Send users-list mailing list submissions to
users-list(a)monetdb.org
To subscribe or unsubscribe via the World Wide Web, visit
https://www.monetdb.org/mailman/listinfo/users-list
or, via email, send a message with subject or body 'help' to
users-list-request(a)monetdb.org
You can reach the person managing the list at
users-list-owner(a)monetdb.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of users-list digest..."
Today's Topics:
1. Re: MonetDB-PHP Error on parameterized query with timestamp
(Ying Zhang)
----------------------------------------------------------------------
Message: 1
Date: Wed, 9 Dec 2020 15:56:28 +0100
From: Ying Zhang <Y.Zhang(a)cwi.nl>
To: Communication channel for MonetDB users <users-list(a)monetdb.org>
Subject: Re: MonetDB-PHP Error on parameterized query with timestamp
Message-ID: <6F309253-9D88-4E52-B079-2F2CBDCF1B81(a)cwi.nl>
Content-Type: text/plain; charset="us-ascii"
FYI, this error has really been resolved.
Deployed a fix under version 1.1.3., for more info see Stack Overflow:
- https://stackoverflow.com/questions/65077831/monetdb-php-error-on-parameter… <https://stackoverflow.com/questions/65077831/monetdb-php-error-on-parameter…>
Updated the user doc:
- https://github.com/MonetDB/MonetDB-PHP#example-3-parameterized-query-with-p… <https://github.com/MonetDB/MonetDB-PHP#example-3-parameterized-query-with-p…>
And the protocol doc:
- https://github.com/MonetDB/MonetDB-PHP/blob/master/protocol_doc/README.md#7… <https://github.com/MonetDB/MonetDB-PHP/blob/master/protocol_doc/README.md#7…>
> On 8 Dec 2020, at 10:45, Ying Zhang <Y.Zhang(a)cwi.nl> wrote:
>
> Hai Kevork,
>
> Our MonetDB/PHP expert has answered this question in Stack Overflow:
>
> https://stackoverflow.com/questions/65077831/monetdb-php-error-on-parameter… <https://stackoverflow.com/questions/65077831/monetdb-php-error-on-parameter…>
>
> For users on this list, this is the Stack Overflow answer:
>
> the problem is that the "birth_date" field is not of a "date-time" type, but it's "date" only. So just remove "12:37:16" and it will work. The "char" type is converted to "date" by MonetDB itself, "date" doesn't have a specific literal in the SQL language. This works, I tested:
>
> $result = $connection->Query(<<<EOF
> select
> *
> from
> "cats"
> where
> "name" = ?
> and "weight_kg" > ?
> and "birth_date" < ?
> limit
> 10
> EOF
> , [ "D'artagnan", 5.3, "2020-02-28" ]);
>
> Regards,
> Jennie
>
>> On 7 Dec 2020, at 04:23, Kevork Vartanian <kev(a)innotta.com.au <mailto:kev@innotta.com.au>> wrote:
>>
>> Hi Sjoerd,
>>
>> Thank you for getting back to me.
>>
>> My colleague tested what you suggested and got the same error so it is still failing. He is certain he is passing the correct value as he is able to execute the same query in raw format, so he believed it has to do with the way params are implemented. I'm no expert but he said it looks like an error from C language.
>>
>> Please advise.
>>
>> Thank you.
>>
>> Regards,
>>
>> Kevork Vartanian
>>
>> From: users-list <users-list-bounces+kev=innotta.com.au(a)monetdb.org <mailto:users-list-bounces+kev=innotta.com.au@monetdb.org>> on behalf of users-list-request(a)monetdb.org <mailto:users-list-request@monetdb.org> <users-list-request(a)monetdb.org <mailto:users-list-request@monetdb.org>>
>> Sent: Friday, 4 December 2020 10:00 PM
>> To: users-list(a)monetdb.org <mailto:users-list@monetdb.org> <users-list(a)monetdb.org <mailto:users-list@monetdb.org>>
>> Subject: users-list Digest, Vol 100, Issue 2
>>
>> Send users-list mailing list submissions to
>> users-list(a)monetdb.org <mailto:users-list@monetdb.org>
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://www.monetdb.org/mailman/listinfo/users-list <https://www.monetdb.org/mailman/listinfo/users-list>
>> or, via email, send a message with subject or body 'help' to
>> users-list-request(a)monetdb.org <mailto:users-list-request@monetdb.org>
>>
>> You can reach the person managing the list at
>> users-list-owner(a)monetdb.org <mailto:users-list-owner@monetdb.org>
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of users-list digest..."
>>
>>
>> Today's Topics:
>>
>> 1. MonetDB-PHP Error on parameterized query with timestamp
>> (Kevork Vartanian)
>> 2. Re: MonetDB-PHP Error on parameterized query with timestamp
>> (Sjoerd Mullender)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 4 Dec 2020 00:11:59 +0000
>> From: "Kevork Vartanian" <kev(a)innotta.com.au <mailto:kev@innotta.com.au>>
>> To: "users-list(a)monetdb.org <mailto:users-list@monetdb.org>" <users-list(a)monetdb.org <mailto:users-list@monetdb.org>>
>> Subject: MonetDB-PHP Error on parameterized query with timestamp
>> Message-ID:
>> <SYBP282MB0346DC1924EC1C610E29428B81F10(a)SYBP282MB0346.AUSP282.PROD.OUTLOOK.COM <mailto:SYBP282MB0346DC1924EC1C610E29428B81F10@SYBP282MB0346.AUSP282.PROD.OUTLOOK.COM>>
>>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi,
>>
>> The below is from my colleague who is not a member on this list, so I'm sending on his behalf.
>>
>> I'm using MonetDB with MonetDB-PHP library.
>>
>>
>> I have followed the documentation from: https://github.com/MonetDB/MonetDB-PHP <https://github.com/MonetDB/MonetDB-PHP>
>>
>>
>> Everything is working fine, but if I set parameter for timestamp type column I get the following error:
>>
>> Error from MonetDB: 42000!Wrong type for argument 1 of function call: char, expected timestamp
>>
>> For example, this is working:
>>
>> $result = $connection->Query('
>> select
>> *
>> from
>> "cats"
>> where
>> "name" = ?
>> and "weight_kg" > ?
>> limit
>> 10', [ "D'artagnan", 5.3 ]);
>>
>> but this will not work:
>>
>> $result = $connection->Query('
>> select
>> *
>> from
>> "cats"
>> where
>> "name" = ?
>> and "weight_kg" > ?
>> and "birthdate" < ? // timestamp data type
>> limit
>> 10
>> ', [ "D'artagnan", 5.3, "2020-02-28 12:37:16" ]);
>>
>>
>> The error occurs for any column that is of timestamp type and only when passing value as parameter.
>>
>>
>> What am I doing wrong?
>>
>> Thank you.
>>
>>
>> Regards,
>>
>> Kevork Vartanian
>>
>> This email correspondence may contain privileged information and it is intended to be transmitted to the addressee abovementioned. If you are not the intended recipient of this email correspondence, you must not distribute, copy, forward or rely upon its contents. We ask that you notify the sender of this error and immediately delete this email correspondence.
>>
Hi Sjoerd,
Thank you for getting back to me.
My colleague tested what you suggested and got the same error so it is still failing. He is certain he is passing the correct value as he is able to execute the same query in raw format, so he believed it has to do with the way params are implemented. I'm no expert but he said it looks like an error from C language.
Please advise.
Thank you.
Regards,
Kevork Vartanian
________________________________
From: users-list <users-list-bounces+kev=innotta.com.au(a)monetdb.org> on behalf of users-list-request(a)monetdb.org <users-list-request(a)monetdb.org>
Sent: Friday, 4 December 2020 10:00 PM
To: users-list(a)monetdb.org <users-list(a)monetdb.org>
Subject: users-list Digest, Vol 100, Issue 2
Send users-list mailing list submissions to
users-list(a)monetdb.org
To subscribe or unsubscribe via the World Wide Web, visit
https://www.monetdb.org/mailman/listinfo/users-list
or, via email, send a message with subject or body 'help' to
users-list-request(a)monetdb.org
You can reach the person managing the list at
users-list-owner(a)monetdb.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of users-list digest..."
Today's Topics:
1. MonetDB-PHP Error on parameterized query with timestamp
(Kevork Vartanian)
2. Re: MonetDB-PHP Error on parameterized query with timestamp
(Sjoerd Mullender)
----------------------------------------------------------------------
Message: 1
Date: Fri, 4 Dec 2020 00:11:59 +0000
From: "Kevork Vartanian" <kev(a)innotta.com.au>
To: "users-list(a)monetdb.org" <users-list(a)monetdb.org>
Subject: MonetDB-PHP Error on parameterized query with timestamp
Message-ID:
<SYBP282MB0346DC1924EC1C610E29428B81F10(a)SYBP282MB0346.AUSP282.PROD.OUTLOOK.COM>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
The below is from my colleague who is not a member on this list, so I'm sending on his behalf.
I'm using MonetDB with MonetDB-PHP library.
I have followed the documentation from: https://github.com/MonetDB/MonetDB-PHP
Everything is working fine, but if I set parameter for timestamp type column I get the following error:
Error from MonetDB: 42000!Wrong type for argument 1 of function call: char, expected timestamp
For example, this is working:
$result = $connection->Query('
select
*
from
"cats"
where
"name" = ?
and "weight_kg" > ?
limit
10', [ "D'artagnan", 5.3 ]);
but this will not work:
$result = $connection->Query('
select
*
from
"cats"
where
"name" = ?
and "weight_kg" > ?
and "birthdate" < ? // timestamp data type
limit
10
', [ "D'artagnan", 5.3, "2020-02-28 12:37:16" ]);
The error occurs for any column that is of timestamp type and only when passing value as parameter.
What am I doing wrong?
Thank you.
Regards,
Kevork Vartanian
This email correspondence may contain privileged information and it is intended to be transmitted to the addressee abovementioned. If you are not the intended recipient of this email correspondence, you must not distribute, copy, forward or rely upon its contents. We ask that you notify the sender of this error and immediately delete this email correspondence.
Hi,
The below is from my colleague who is not a member on this list, so I'm sending on his behalf.
I'm using MonetDB with MonetDB-PHP library.
I have followed the documentation from: https://github.com/MonetDB/MonetDB-PHP
Everything is working fine, but if I set parameter for timestamp type column I get the following error:
Error from MonetDB: 42000!Wrong type for argument 1 of function call: char, expected timestamp
For example, this is working:
$result = $connection->Query('
select
*
from
"cats"
where
"name" = ?
and "weight_kg" > ?
limit
10', [ "D'artagnan", 5.3 ]);
but this will not work:
$result = $connection->Query('
select
*
from
"cats"
where
"name" = ?
and "weight_kg" > ?
and "birthdate" < ? // timestamp data type
limit
10
', [ "D'artagnan", 5.3, "2020-02-28 12:37:16" ]);
The error occurs for any column that is of timestamp type and only when passing value as parameter.
What am I doing wrong?
Thank you.
Regards,
Kevork Vartanian
This email correspondence may contain privileged information and it is intended to be transmitted to the addressee abovementioned. If you are not the intended recipient of this email correspondence, you must not distribute, copy, forward or rely upon its contents. We ask that you notify the sender of this error and immediately delete this email correspondence.
The MonetDB bug tracker has been moved from our self-hosted bugzilla
instance to github issues. All bug IDs have remained the same in the
transition, making referencing bugs easier.
The new bug tracker can be found at
https://github.com/MonetDB/MonetDB/issues
Don't forget to follow this tracker (if you're interested in doing that)
or follow individual bugs.
Due to the way we had to do the move, the old stars that you may have
given to the MonetDB github repo have been lost, so please, star it
again (or for the first time) if you feel so inclined.
The old bugzilla tracker will remain on-line for the time being but
entry of new bugs has been turned off. Shortcuts to bugs are forwarded
to github. (Shortcuts are URLs in the form of
https://www.monetdb.org/bugzilla/<bugid> and
https://bugs.monetdb.org/<bugid>.)
--
Sjoerd Mullender