Bug 2250354 - Timescale license can't be used
Summary: Timescale license can't be used
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: timescaledb
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ondřej Sloup
QA Contact: Fedora Extras Quality Assurance
URL: https://www.timescale.com/forum/t/fed...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-17 20:10 UTC by Ash Guy
Modified: 2024-11-14 13:38 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ash Guy 2023-11-17 20:10:08 UTC
Hey there team, 

I'm not sure if this one is deliberate or not (I can think of reasons you'd do it either way), but I can't see any documentation saying that this is the case so I'm raising as a bug. 

It looks like when packaging Timescale for Fedora we've got no mechanism to enable the Timescale license which unlocks about half of the features of the package, and is still 100% free (its essentially a non-compete with their hosting platform). 

To enable this license you need to flip a config switch in your postgresql.conf, which then loads some *waves hands* stuff from a lib that contains the non-apache features. This lib file does not exist in the Redhat rpm and so throws and error. I believe the problem also exists on other downstream distros and from my small about of clicking around has been in there since at least as far back as 29.

Reproducible: Always

Steps to Reproduce:
1.Install postgres + timescaledb on a fresh configuration using dnf
2.Open your postgres conf and add 'timescale' to your shared_preloaded_libraries config item
3.Add a new config item that looks like: timescaledb.license='timescale'
4.Restart your postgres: sudo service postgres restart
5.Run psql and connect to a db: sudo -p postgres psql
6.Enable the timescale extension: CREATE EXTENSION IF NOT EXISTS timescaledb;
Actual Results:  
It will throw the error:

"timed out waiting for connection: could not access file "$libdir/timescaledb-tsl-version-number": no such file or directory"

Expected Results:  
It should load the extension (exactly the same way it does if you don't have the license change config option enabled).

If we're being deliberate about not wanting to bundle this we should inform Timescale to update their docs, and include this note in our documentation so there can be a pathway for people who want to enable this feature.

Comment 1 Aoife Moloney 2024-11-13 10:06:09 UTC
This message is a reminder that Fedora Linux 39 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '39'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 39 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Jan "Yenya" Kasprzak 2024-11-14 13:38:40 UTC
Still present in Fedora 41:

postgresql-16.3-3.fc41.x86_64
timescaledb-2.16.0-1.fc41.x86_64

Minor correction: in step 2 of "Steps to reproduce" in the original report, the shared_preloaded_libraries item should read "timescaledb" instead of just "timescale".


Note You need to log in before you can comment on or make changes to this bug.