Closed tio-trom closed 3 years ago
I have restored a backup from yesterday https://paste.yunohost.org/raw/cifugugako. No local videos or thumbnail work. :(
Same here.
The Website is completly blank.
No errors in the logfile.
The website is accessible for me and my friends, using different VPNs from different countries. Even here it shows up https://sitechecker.pro/website-down/ with a screenshot and all. Can you please try in a private browser window?
I am also wondering why I get this warning "Unknown user:" when I restore Peertube.
No errors in the logfile.
Yes, true. But many many warnings. Such as:
2021-04-23 04:09:48,789: WARNING - [1m--- /home/yunohost.conf/backup//var/www/peertube/config/local-production.json.backup.20210423.040947 2021-04-12 20:31:48.000000000 +0200[0m
2021-04-23 04:09:48,790: DEBUG - + diff --report-identical-files --unified --color=always /home/yunohost.conf/backup//var/www/peertube/config/local-production.json.backup.20210423.040947 /var/www/peertube/config/local-production.json
2021-04-23 04:09:48,790: WARNING - [1m+++ /var/www/peertube/config/local-production.json 2021-04-23 04:09:48.457114804 +0200[0m
2021-04-23 04:09:48,790: DEBUG - + true
2021-04-23 04:09:48,790: WARNING - [36m@@ -1,176 +1,2 @@[0m
2021-04-23 04:09:48,790: DEBUG - + unset backup_file_checksum
2021-04-23 04:09:48,790: WARNING - {
2021-04-23 04:09:48,791: DEBUG - + chmod 400 /var/www/peertube/config/local-production.json
2021-04-23 04:09:48,791: WARNING - [31m- "instance": {[0m
2021-04-23 04:09:48,791: DEBUG - + chown peertube:peertube /var/www/peertube/config/local-production.json
2021-04-23 04:09:48,791: WARNING - [31m- "name": "videos.domain2.tld",[0m
2021-04-23 04:09:48,793: WARNING - [31m- "short_description": "A trade-free video hosting platform. You do not have to trade your currency, data, attention, freedom or anything else, in order to use it.",[0m
2021-04-23 04:09:48,793: WARNING - [31m- "description": "videos.domain2.tld is made by TROM, a project that started back in 2011, aimed at showcasing how our world-wide trade-based society is destroying pretty much everything: lives, the environment, the present, the future. From jobs to money, data collection or ads, borders and laws, this entire maze and craze is unnecessary in a world where we have so much abundance that we create mountains of waste out of it. \n\nIt is time to move beyond this, and create trade-free goods and services for everyone, something we are starting to do now. We are creating/enabling a lot of online trade-free services: from video platforms, to social networks, operating systems, search engines, educational materials, and much more.\n\nTo learn more about our project, visit http://tromsite.com. \nTo learn more about what trade-free means, visit [trade-free.org](http://trade-free.org). \nTo see all of our tools, visit [tromsite.com/tools](http://tromsite.com/tools). \nTo contact us, visit [tromsite.com/contact](http://tromsite.com/contact).",[0m
2021-04-23 04:09:48,793: WARNING - [31m- "is_nsfw": false,[0m
2021-04-23 04:09:48,794: WARNING - [31m- "default_nsfw_policy": "display",[0m
2021-04-23 04:09:48,794: WARNING - [31m- "terms": "Since this is trade-free, it means you do not have to trade your freedom in order to use it. You can post whatever you want. We hope that you won't get us into troubles by what you are posting, and we will fight to always keep your content on the platform. Only in extreme circumstances we may be forced to remove any content, and if that happens, it will be only if the entire platform is in danger of being shut down. All of such decisions will be made public.",[0m
2021-04-23 04:09:48,794: DEBUG - + echo '[#########+..........] > Building Yarn dependencies...'
2021-04-23 04:09:48,794: WARNING - [31m- "code_of_conduct": "No such thing. See https://www.trade-free.org/",[0m
2021-04-23 04:09:48,794: WARNING - [31m- "creation_reason": "So that human beings have a trade-free video platform that they can use.",[0m
2021-04-23 04:09:48,795: DEBUG - + chown -R peertube:peertube /var/www/peertube
2021-04-23 04:09:48,795: WARNING - [31m- "moderation_information": "No such thing. See https://www.trade-free.org/",[0m
2021-04-23 04:09:48,795: WARNING - [31m- "administrator": "TROM - https://www.tromsite.com ",[0m
2021-04-23 04:09:48,795: WARNING - [31m- "maintenance_lifetime": "As long as we can. We use this for our hundreds of videos, as our main platform, so only if we get 100% broke, this instance will disappear. Speaking of that, you can help us by donating here https://www.tromsite.com/donate/ - any donation is super important. Please help.",[0m
2021-04-23 04:09:48,795: WARNING - [31m- "business_model": "Donations. So please help https://www.tromsite.com/donate/ ",[0m
2021-04-23 04:09:48,796: WARNING - [31m- "hardware_information": "10 Core CPU, 60GB of RAM, 1.6TB SSD",[0m
2021-04-23 04:09:48,796: WARNING - [31m- "categories": [[0m
2021-04-23 04:09:48,796: WARNING - [31m- 14,[0m
2021-04-23 04:09:48,796: WARNING - [31m- 13,[0m
2021-04-23 04:09:48,797: WARNING - [31m- 15[0m
2021-04-23 04:09:48,797: WARNING - [31m- ],[0m
2021-04-23 04:09:48,797: WARNING - [31m- "languages": [[0m
2021-04-23 04:09:48,797: WARNING - [31m- "en"[0m
2021-04-23 04:09:48,798: WARNING - [31m- ],[0m
2021-04-23 04:09:48,798: WARNING - [31m- "default_client_route": "/video-channels/trom/videos",[0m
2021-04-23 04:09:48,798: WARNING - [31m- "customizations": {[0m
2021-04-23 04:09:48,798: WARNING - [31m- "javascript": "",[0m
Check on https://sitechecker.pro/website-down/: website is "UP", but no screenshot.
Check in private browser Window: Still just a blank page.
One more thing: other videos work, such as https://videos.trom.tf/videos/watch/6f9371cf-9f6a-4932-9add-9a5e42a5ef9f that are from other instances. Everything seems to work for the backup restoration, except videos.
Check on https://sitechecker.pro/website-down/: website is "UP", but no screenshot.
Check in private browser Window: Still just a blank page.
This is very bizarre. Can you tell me from what country you are trying to access it? I can give it a shot to try a VPN from there
To make it clear: I have the same issue with my instance and tested MY website -> website is "UP", but no screenshot.
From my VPN in Austria your website is up and shows screenshot.
Oh ok so you are having the same issue after upgrading? Because is true, after I upgraded I get the same a blank page and nothing. But even the restore doesn't make the website functional.
What are the URL of your peertubes ? Currently doing a test upgrade from version 3.0.1~ynh1
This is mine https://videos.trom.tf - downgraded to ynh2 and is broken as described above. If I upgrade to ynh3 I get a blank page like @AkselRocks
I can upgrade again if that helps you, and leave it broken as such.
ok and @AkselRocks yours?
@TROMsite stop trying restore / upgrade, first have to figure what is the blank page issue
My peertube url is: https://daschauher.aksel.rocks
My peertube url is: https://daschauher.aksel.rocks
Perfect: there are issue to load .js files ...
ynh3 is about directory permissions.. I will check why .js don't load
@AkselRocks, can you try to do from the command line :
chown -R peertube:www-data "/var/www/peertube"
to see if it's enough to solve your problem
@yalh76 sudo chown -R peertube:www-data "/var/www/peertube" -> fixed blank page, but no thumbnails and no video play.
fine, we are moving forward .... I will test to upload a file on my own test.
@TROMsite : you can upgrade and apply same fix for the blank page
Maybe it's better two issues ? this one about upgrade problem, and a new one about the restore problem ? Now it's hard to know if we're talking about a working instance of peertube that's just upgraded and get a blank page, or about an instance upgraded, removed, restored but not working, upgraded again, etc...
I already upgraded like @yalh76 said. It is working now to access it, but the custom settings (CSS) are gone + no thumbnails and local videos do not work. https://videos.trom.tf/ . Plus a lot of config is not there anymore, like user registration was open, now is closed, and so forth.
Before was this:
And now is this:
@AkselRocks, to fix thumbnails and video, can you execute:
chown -R peertube:www-data "/home/yunohost.app/peertube/storage"
Seems OK for @AkselRocks, Can you do the same @TROMsite ?
Ok, my case : I upgraded, blank page, removed, restored backup, and it was working but without thumbnails and local video. Now I've done
chown -R peertube:www-data /var/www/peertube
chown -R peertube:www-data /home/yunohost.app/peertube/storage
And it's all working again, thanks. I'll wait the fix before trying to upgrade again.
@yalh76 chown -R peertube:www-data "/home/yunohost.app/peertube/storage" -> Thumbnails and playing video work again!
Configuration (Sitename, description, etc) seem to be set to default? I think I changed (at least) the site name displayed on top ...
Configuration (Sitename, description, etc) seem to be set to default? I think I changed (at least) the site name displayed on top ...
Yes config file is reset during upgrade but previous config file is backuped. All should be written in the logs of the upgrade
chown -R peertube:www-data "/home/yunohost.app/peertube/storage"
Works. Thanks! How to restore the configs now?
Ok just restore the file that was backed-up. Thanks! All seem to work now. Awesome!
So is it safe to upgrade to ynh4 now?
So is it safe to upgrade to ynh4 now?
yes this will do the same command line you have done :)
Done! All works well. By the way I am curious why the production.json file got overwritten? Shouldn't that be ignored?
It's now ignored ... I've done that too quick, not thinking of consequences ^^
After upgrade #244 the same issue ("completely broke peertube") appears.
As above
chown -R peertube:www-data /var/www/peertube
chown -R peertube:www-data /home/yunohost.app/peertube/storage
solves the issue.
Describe the bug
A clear and concise description of what the bug is.
Context
Steps to reproduce
I updated Peertube to the ynh3 version via the admin panel. The update shows no errors at first but looking at the logs there are some https://paste.yunohost.org/raw/oqihixisax. But now the entire instance is not accessible - https://videos.trom.tf/ I see no error just a blank page....
The bad thing is that if I restore to the previous version no videos work. I can navigate it but there are no thumbnails and no local videos work.
Logs
https://paste.yunohost.org/raw/oqihixisax