-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in uploading stickers #4
Comments
Hello what Linux Distribution are you using (Sorry for late followup) |
I am using Ubuntu on WSL |
Have you made sure that you have all the dependencies installed ? |
Check if you have ffmpeg installed and tgs2png , I think one of them is missing for sure as my program is unable to count average frame delay |
Hey, I'm having both installed and getting the same error. |
I modified the script by removing the if condition so I'm now being shown the following error. |
This error mean a binary isn't functioning properly, As i can see in other thread when you changed directory to the script this error disapper or am I wrong? |
No, I got this error after "fixing" the other error by changing directory. So it still persists. I found the reason the tgs files are not converted and put in
This occurs with both the rust program as well as the bash script. |
Concerning the second error: this is how the
|
signalApngSticker/scripts_linux/script_v3/core-hybrid Lines 65 to 69 in ac29a30
When doing gunzip -c 0.tgs > ./testdir/0/0.tgs.json by hand I also get the same (first) error. I'm attaching the file below. I can open this file (and oll the other .tgs files) without a problem with mpv and vlc and I can also open the static tgs files with gimp and feh. Are you sure this even has to be unzipped?
|
0.tgs.zip |
When debugging it becomes clear why it can't open the json. The path joining (see below) is not working and is joining paths like this signalApngSticker/scripts_linux/script_v3/script_v3.sh Lines 349 to 360 in ac29a30
I fixed this by just removing the for file in *.tgs
do
jobbb=`jobs | wc -l`
while [[ $jobbb -ge "3" ]]
do
#echo "Total jobs = $(jobs | wc -l )"
sleep 5
jobbb=`jobs | wc -l`
done
batch=$(echo $file | sed "s/.tgs//g")
./core-hybrid $batch $file &
done So this is what the end of the debug log looked like before. + jobbb=2
+ [[ 2 -ge 3 ]]
++ echo ./7.tgs
++ sed s/.tgs//g
+ batch=./7
+ for file in ./*.tgs
+ ./core-hybrid ./7 ./7.tgs
++ jobs
++ wc -l
+ jobbb=2
+ [[ 2 -ge 3 ]]
ERR Can't open: testdir/./6/./6.tgs.json
++ echo ./8.tgs
++ sed s/.tgs//g
+ batch=./8
+ for file in ./*.tgs
+ ./core-hybrid ./8 ./8.tgs
++ jobs
++ wc -l
+ jobbb=2
+ [[ 2 -ge 3 ]]
ERR Can't open: testdir/./7/./7.tgs.json
++ echo ./9.tgs
++ sed s/.tgs//g
+ batch=./9
+ wait
+ ./core-hybrid ./9 ./9.tgs
ERR Can't open: testdir/./8/./8.tgs.json
ERR Can't open: testdir/./9/./9.tgs.json
+ uploader
+ python3 bot.py
+ info 'Pack wasn'\''t uploaded Doing backup !! '
+ [[ NO == '' ]]
+ echo 'Pack wasn'\''t uploaded Doing backup !! '
Pack wasn't uploaded Doing backup !!
+ dobackup
+ [[ ! -d .backup ]]
+ [[ ! -f .back ]]
+ for i in {0..100..1}
+ [[ -d .backup/0 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/1 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/2 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/3 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/4 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/5 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/6 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/7 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/8 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/9 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/10 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/11 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/12 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/13 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/14 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/15 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/16 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/17 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/18 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/19 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/20 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/21 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/22 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/23 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/24 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/25 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/26 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/27 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/28 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/29 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/30 ]]
+ mkdir .backup/30
+ echo 30
+ cp -rf result .backup/30/
+ cp emoji .backup/30/
+ cp pack .backup/30/
+ log 'Couldn'\''t Upload hence backup created in folder .output/30 , rerun script to do Upload'
+ echo 'Couldn'\''t' Upload hence backup created in folder .output/30 , rerun script to do Upload
Couldn't Upload hence backup created in folder .output/30 , rerun script to do Upload
+ break
+ rm 0.tgs 10.tgs 11.tgs 12.tgs 13.tgs 14.tgs 15.tgs 16.tgs 17.tgs 18.tgs 19.tgs 1.tgs 20.tgs 21.tgs 22.tgs 23.tgs 24.tgs 25.tgs 26.tgs 27.tgs 28.tgs 29.tgs 2.tgs 30.tgs 31.tgs 32.tgs 33.tgs 34.tgs 35.tgs 36.tgs 37.tgs 38.tgs 39.tgs 3.tgs 40.tgs 41.tgs 42.tgs 43.tgs 44.tgs 45.tgs 46.tgs 47.tgs 48.tgs 49.tgs 4.tgs 50.tgs 51.tgs 52.tgs 53.tgs 54.tgs 55.tgs 56.tgs 57.tgs 58.tgs 59.tgs 5.tgs 60.tgs 61.tgs 62.tgs 63.tgs 64.tgs 65.tgs 66.tgs 67.tgs 68.tgs 69.tgs 6.tgs 7.tgs 8.tgs 9.tgs
+ let conv=13+1 And this is what it looked like afterwards. + batch=7
+ for file in *.tgs
+ ./core-hybrid 7 7.tgs
gzip: 6.tgs: not in gzip format
++ jobs
++ wc -l
+ jobbb=2
+ [[ 2 -ge 3 ]]
++ echo 8.tgs
++ sed s/.tgs//g
ERR Can't open: testdir/6/6.tgs.json
+ batch=8
+ for file in *.tgs
+ ./core-hybrid 8 8.tgs
++ jobs
++ wc -l
gzip: 7.tgs: not in gzip format
+ jobbb=2
+ [[ 2 -ge 3 ]]
++ echo 9.tgs
++ sed s/.tgs//g
ERR Can't open: testdir/7/7.tgs.json
+ batch=9
+ wait
+ ./core-hybrid 9 9.tgs
gzip: 8.tgs: not in gzip format
ERR Can't open: testdir/8/8.tgs.json
gzip: 9.tgs: not in gzip format
ERR Can't open: testdir/9/9.tgs.json
+ uploader
+ python3 bot.py
+ info 'Pack wasn'\''t uploaded Doing backup !! '
+ [[ NO == '' ]]
+ echo 'Pack wasn'\''t uploaded Doing backup !! '
Pack wasn't uploaded Doing backup !!
+ dobackup
+ [[ ! -d .backup ]]
+ [[ ! -f .back ]]
+ for i in {0..100..1}
+ [[ -d .backup/0 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/1 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/2 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/3 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/4 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/5 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/6 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/7 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/8 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/9 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/10 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/11 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/12 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/13 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/14 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/15 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/16 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/17 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/18 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/19 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/20 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/21 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/22 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/23 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/24 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/25 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/26 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/27 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/28 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/29 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/30 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/31 ]]
+ continue
+ for i in {0..100..1}
+ [[ -d .backup/32 ]]
+ mkdir .backup/32
+ echo 32
+ cp -rf result .backup/32/
+ cp emoji .backup/32/
+ cp pack .backup/32/
+ log 'Couldn'\''t Upload hence backup created in folder .output/32 , rerun script to do Upload'
+ echo 'Couldn'\''t' Upload hence backup created in folder .output/32 , rerun script to do Upload
Couldn't Upload hence backup created in folder .output/32 , rerun script to do Upload
+ break
+ rm 0.tgs 10.tgs 11.tgs 12.tgs 13.tgs 14.tgs 15.tgs 16.tgs 17.tgs 18.tgs 19.tgs 1.tgs 20.tgs 21.tgs 22.tgs 23.tgs 24.tgs 25.tgs 26.tgs 2.tgs 3.tgs 4.tgs 5.tgs 6.tgs 7.tgs 8.tgs 9.tgs
+ let conv=1+1
+ for iii in "${ So it's exactly the same error but at least the path checks out. Anyone has an idea why this error is still happening? |
Ok, forget my comment above. I didn't realize the './' actually don't do anything really. Seemed like that was the error here but it isn't. :( |
Lol yeah that's true ./ Would just mean in the same directory so it won't change anything. Seems like the issue here is with gzip itself. Could you tell me about your setup so that i could try it out ( os and release) . I would be late in solving the bug because am busy with my finals but I will surely look into it after that. Is the bug happening with rust version too? |
Yes the bug is happening with the rust version as well.
|
Can you maybe tell me why you're using gzip here? You're calling gzip on the tgs files and then writing it to stdout and piping it into a json file? What purpose does this try to serve? :) |
I added the the -f flag as stated in the man page:
The following error still persists though.
|
Tested this on Debian 11. Getting exactly the same error. What gzip version are you using for this to work? |
Ok, with the help of a friend I managed to pin down the issue and why it is happening. Thing is, the stickers I'm trying to download are not in rlottie format but are instead simply webm or png files, so of course gzip throws this error. This is probably the case for most of the stickers on Telegram except for the ones made by Telegram. For static stickers this bot here works like a charm: https://github.com/signalstickers/Adhesive |
Okay that makes sense given the bot is made for static stickers conversion, This project was clearly made for conversion of Animated stickers. Thanks for clearing it out though. |
I tried both animated stickers and static stickers. The animated stickers that internally use webm do also obviously not work. |
#7 adds support for webm stickers, which may solve this issue |
Hi, I tested your merge request but I still get the same error described all the way at the top of this issue. But it doesn't throw a bunch of errors in the process, so that is nice.
And when I rerun the script, I get
|
The conversion results look good though! |
@tuschla Go to |
Doesn't seem related to your code.
|
@tuschla You use Arch Linux right? Did you install self-signed SSL certificate? Try ---TRY ABOVE FIRST, DO NOT FOLLOW INSTRUCTIONS BELOW UNLESS IT DOES NOT WORK--- If above fail, try to add this to the top of
to:
|
Does not change anything unfortunately.
Does also not work.
This gives me this error.
|
@tuschla Sorry my bad. But on second thought, please try The error occured because that package is in fact using custom cacert, as seen from
signalstickers/signalstickers-client#13 says that CA cert was changed recently. PS: Please revert the changes done to |
No need to apologize, I also couldn't find anything to fix it. |
Sorry guys was busy with my exams, I tried uploading a pack and it works, am I missing something? |
I'm using script_v2 on Ubuntu in WSL
The script downloaded all the dependencies
everything goes as it's supposed to go but then I get this-
# Time to upload pack!!!!
Pack wasn't uploaded Doing backup !!
Couldn't Upload hence backup created in folder .output/0 , rerun script to do Upload
Cleaning up
Then when I rerun the script it tells me that a backup was found and when I tell it to upload them, I get-
Please check network connection!!!
I obviously am connected to internet coz you can read this
The text was updated successfully, but these errors were encountered: