~lioploum/offpunk-users

3 2

Issue with cert_migration on first start

Details
Message ID
<e7e78601-7095-42a3-9576-04c34856b508@posteo.net>
DKIM signature
pass
Download raw message
Hi there,

After cloning the repository and trying to start offpunk for the first 
time on Ubuntu 22.04 (Python 3.10.12), I get the following trace:

Traceback (most recent call last):
   File "/home/tpt/offpunk/./offpunk.py", line 1939, in <module>
     main()
   File "/home/tpt/offpunk/./offpunk.py", line 1843, in main
     for f in [xdg("config"), xdg("data")]:
   File "/home/tpt/offpunk/offutils.py", line 118, in xdg
     upgrade_cert(_CONFIG_DIR, _DATA_DIR)
   File "/home/tpt/offpunk/offutils.py", line 73, in upgrade_cert
     upgrade_func(data_folder, config_folder)
   File "/home/tpt/offpunk/cert_migration.py", line 21, in upgrade_to_1
     db_conn = sqlite3.connect(db_path)
sqlite3.OperationalError: unable to open database file

Directory /home/tpt/.local/share/offpunk exists and it's empty.
Everything is owned and run by the same user.

Is there something that offpunk expects by default?

Thanks.

Regards,

-- 
Dejan Josifović | Дејан Јосифовић
Software engineer | Софтверски инжењер
[https|gemini]://theparanoidtimes.org
Details
Message ID
<171821746048.7.12508449835284562432.353619460@ploum.eu>
In-Reply-To
<e7e78601-7095-42a3-9576-04c34856b508@posteo.net> (view parent)
DKIM signature
pass
Download raw message
On 24 jun 12 04:32, Dejan Josifović wrote:
>Hi there,
>
>After cloning the repository and trying to start offpunk for the first
>time on Ubuntu 22.04 (Python 3.10.12), I get the following trace:
>
>Traceback (most recent call last):
>   File "/home/tpt/offpunk/./offpunk.py", line 1939, in <module>
>     main()
>   File "/home/tpt/offpunk/./offpunk.py", line 1843, in main
>     for f in [xdg("config"), xdg("data")]:
>   File "/home/tpt/offpunk/offutils.py", line 118, in xdg
>     upgrade_cert(_CONFIG_DIR, _DATA_DIR)
>   File "/home/tpt/offpunk/offutils.py", line 73, in upgrade_cert
>     upgrade_func(data_folder, config_folder)
>   File "/home/tpt/offpunk/cert_migration.py", line 21, in upgrade_to_1
>     db_conn = sqlite3.connect(db_path)
>sqlite3.OperationalError: unable to open database file
>
>Directory /home/tpt/.local/share/offpunk exists and it's empty.
>Everything is owned and run by the same user.
>
>Is there something that offpunk expects by default?

Thanks for reporting this. We have just recently merged code to migrate 
certificates from sqlite to a flat file structure.

It looks like we forgot one little case: when there’s no sqlite to 
migrate from.

Hem…

I’m really sorry I missed that. Will fix that tonight or tomorrow.



-- 
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html
Details
Message ID
<171822795479.7.4376998264168183999.353735825@ploum.eu>
In-Reply-To
<e7e78601-7095-42a3-9576-04c34856b508@posteo.net> (view parent)
DKIM signature
pass
Download raw message
Hi Dejan,

I’ve pushed a fix. Could you git pull and try if this solves your issue?

Thanks a lot for reporting it.

On 24 jun 12 04:32, Dejan Josifović wrote:
>Hi there,
>
>After cloning the repository and trying to start offpunk for the first
>time on Ubuntu 22.04 (Python 3.10.12), I get the following trace:
>
>Traceback (most recent call last):
>   File "/home/tpt/offpunk/./offpunk.py", line 1939, in <module>
>     main()
>   File "/home/tpt/offpunk/./offpunk.py", line 1843, in main
>     for f in [xdg("config"), xdg("data")]:
>   File "/home/tpt/offpunk/offutils.py", line 118, in xdg
>     upgrade_cert(_CONFIG_DIR, _DATA_DIR)
>   File "/home/tpt/offpunk/offutils.py", line 73, in upgrade_cert
>     upgrade_func(data_folder, config_folder)
>   File "/home/tpt/offpunk/cert_migration.py", line 21, in upgrade_to_1
>     db_conn = sqlite3.connect(db_path)
>sqlite3.OperationalError: unable to open database file
>
>Directory /home/tpt/.local/share/offpunk exists and it's empty.
>Everything is owned and run by the same user.
>
>Is there something that offpunk expects by default?
>
>Thanks.
>
>Regards,
>
>--
>Dejan Josifović | Дејан Јосифовић
>Software engineer | Софтверски инжењер
>[https|gemini]://theparanoidtimes.org
>

-- 
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html
Details
Message ID
<6627066a-5025-460d-a3b2-48c035a5969b@posteo.net>
In-Reply-To
<171822795479.7.4376998264168183999.353735825@ploum.eu> (view parent)
DKIM signature
pass
Download raw message
Works like a charm!

Thanks for the quick fix. And thanks for Offpunk, it's an awesome piece 
of software.
Reply to thread Export thread (mbox)