YunoHost-Apps / invidious_ynh

Invidious package for YunoHost
https://invidio.us/
GNU General Public License v3.0
20 stars 8 forks source link

Installation fails because of Shard version #81

Open GruppoCO opened 2 years ago

GruppoCO commented 2 years ago

Describe the bug

A clear and concise description of what the bug is.

Context

Steps to reproduce

Logs

The problem seems to be this line:

2022-03-03 11:49:49,135: DEBUG - Unsupported shard.lock. It was likely generated from a newer version of Shards.
ericgaspar commented 2 years ago

What is the output of shards version? shards --version

GruppoCO commented 2 years ago

What is the output of shards version? shards --version

Shards 0.8.1 (2020-03-02)

ericgaspar commented 2 years ago

The raspbian install shard version seems behind the amd64 one... I have shards version 0.16.0

Alternatively we can try to remove shard.lock before installing.

sudo yunohost app install https://github.com/YunoHost-Apps/invidious_ynh/tree/remove-lock

I haven't tested it

albumed commented 2 years ago

Hi, still me, I used a wrong account :)

The raspbian install shard version seems behind the amd64 one... I have shards version 0.16.0

Alternatively we can try to remove shard.lock before installing.

sudo yunohost app install https://github.com/YunoHost-Apps/invidious_ynh/tree/remove-lock

I haven't tested it

I tried and it gives a different error (the problem is still about shards):

https://paste.yunohost.org/raw/ogoyatazik

2022-03-04 10:18:41,164: DEBUG - Installing pg (0.24.0)
2022-03-04 10:18:41,252: DEBUG - Installing db (0.10.1)
2022-03-04 10:18:41,339: DEBUG - Installing sqlite3 (0.18.0)
2022-03-04 10:18:41,420: DEBUG - Installing kemal (1.1.2)
2022-03-04 10:18:41,511: DEBUG - Installing radix (0.4.1)
2022-03-04 10:18:41,592: DEBUG - Installing exception_page (0.2.2)
2022-03-04 10:18:41,681: DEBUG - Installing backtracer (1.2.1)
2022-03-04 10:18:41,764: DEBUG - Installing protodec (0.1.4)
2022-03-04 10:18:41,841: DEBUG - Installing lsquic (2.18.1)
2022-03-04 10:18:42,202: DEBUG - Installing athena-negotiation (0.1.1)
2022-03-04 10:18:42,242: DEBUG - + ynh_exec_warn_less crystal build /var/www/invidious/src/invidious.cr --release
2022-03-04 10:18:42,243: DEBUG - + [[ 4 -eq 1 ]]
2022-03-04 10:18:42,244: DEBUG - + crystal build /var/www/invidious/src/invidious.cr --release
2022-03-04 10:18:43,203: DEBUG - Showing last frame. Use --error-trace for full trace.
2022-03-04 10:18:43,204: DEBUG - 
2022-03-04 10:18:43,205: DEBUG - In lib/db/src/db.cr:2:1
2022-03-04 10:18:43,206: DEBUG - 
2022-03-04 10:18:43,207: DEBUG -  2 | require "log"
2022-03-04 10:18:43,208: DEBUG -      ^
2022-03-04 10:18:43,208: DEBUG - Error: can't find file 'log'
2022-03-04 10:18:43,209: DEBUG - 
2022-03-04 10:18:43,210: DEBUG - If you're trying to require a shard:
2022-03-04 10:18:43,211: DEBUG - - Did you remember to run `shards install`?
2022-03-04 10:18:43,211: DEBUG - - Did you make sure you're running the compiler in the same directory as your shard.yml?

I also tried to install crystal, then shards init to create the shards.yml and then shards install before installing invidious_ynh but nothing changes.