Skip to content
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

http://packages.synocommunity.com down ? #3719

Closed
techbliss opened this issue Jun 5, 2019 · 64 comments
Closed

http://packages.synocommunity.com down ? #3719

techbliss opened this issue Jun 5, 2019 · 64 comments
Assignees
Labels
repo issues related to synocommunity/spkrepo status/help-wanted

Comments

@techbliss
Copy link

Hello i get no response from http://packages.synocommunity.com via DSM
and website https://synocommunity.com/ seems to have cloudfare problems, and it have been like this for some days now.
Anyone knows when the site will be back up.

@sstraus
Copy link

sstraus commented Jun 5, 2019

same problem here

@JoveYu
Copy link

JoveYu commented Jun 6, 2019

try to use https://packages.synocommunity.com

@cytec
Copy link
Member

cytec commented Jun 6, 2019

@Dr-Bean @ymartin59 seems to be server related...
seems to be on/off a lot lately: #3718

@acolomb
Copy link
Contributor

acolomb commented Jun 6, 2019

I can confirm the "502 Bad Gateway" message from Cloudflare, for both packages.synocommunity.com as well as synocommunity.com. Using HTTPS in both cases. Seems like #3718 wasn't fixed after all...

@ymartin59 ymartin59 added repo issues related to synocommunity/spkrepo status/help-wanted labels Jun 9, 2019
@ymartin59
Copy link
Contributor

Today repository is back online - I had to restart service, but CPU usage is still high.

@jucor
Copy link

jucor commented Jun 9, 2019

Thanks @ymartin59 for restoring access -- very helpful :)

@jucor
Copy link

jucor commented Jun 9, 2019

Woops, down again, 502 Bad Gateway, same as @acolomb above.

@ymartin59
Copy link
Contributor

It really depends on system load... Not a DoS but it looks like there are more and more DSM connected to our repository, and probably packages history in repository has impact - I will do so clean up too.

@Qrbaker
Copy link

Qrbaker commented Jun 9, 2019

@ymartin59 Anything we can do to help? If the repo is on a cloud service, I would donate to spin up some more instances. Additionally, perhaps the CDN edge servers could cache packages?

@ymartin59
Copy link
Contributor

@Qrbaker Thanks for proposal. Current system is an old linux running on 3 cores at OVH hosted by founder @Diaoul
redis server should act as cache, so that CloudFlare too, but top requests "check to know if an installed package has updates" do not take benefits of any of theses as URI parameters contain timezone, dsm minor version... so from my point of view, relevant option is to improve caching in python/flask SynoCommunity/spkrepo#16

@Diaoul
Copy link
Member

Diaoul commented Jun 10, 2019 via email

@Qrbaker
Copy link

Qrbaker commented Jun 10, 2019

@ymartin59 I use OVH as well, I'm happy to loan some time to help.

@Diaoul long shot, but could there be an option for distributed (i.e. torrent) packages? At the least, for people with transmission installed or a personal torrent client, they could get the spk and manually install as a fallback.

@BenjV
Copy link

BenjV commented Jun 10, 2019

Most likely the problem is not the downloaden of packages, but the constant pounding of every Synology Nas in the World to check if one of their packages needs an update.

@ghost
Copy link

ghost commented Jun 12, 2019

I just bought a new synology and finally got to the point where I add synocommunity only to be blocked by this lovely issue

@chickenandpork
Copy link
Member

@BenjV “constant pounding”
@Diaoul “CDN cannot cache POST”

Nginx caches POST requests:

proxy_cache_methods POST;

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_methods

It may be enough to layer on a quick reverse-proxy with the caching of POSTs turned on to focus the load of the backend towards new and unique requests.

Nginx revproxy can be some in a very small alpine-based docker that would be light enough to run on eachother’s VPS or a small cloud offering. Effectively community-sponsored CDN that does POST.

This would also allow a fan-out of more proxies than backend to scale in a broad, shallow direction. Interested parties may be able to contribute materially by, for example, individually supporting a single proxy instance in a small-resources AWS or GCP or Azure image that points to the upstream and shards load.

@ymartin59
Copy link
Contributor

@chickenandpork Alan, I am really not convince your proposal will help.

There is already:

  • CloudFlare as CDN
  • Nginx as reverse-proxy in front of uwsgi python code Flask
  • and redis-server as Flask object-mapper cache over PostgreSQL

So again, please review SynoCommunity/spkrepo#16 and any PR proposal is welcome, as I do not known these Python stacks and frameworks enough to implement it quickly.

@chickenandpork
Copy link
Member

Hey Yves; you're correct -- even though "Nginx as reverse-proxy" is there, we can't assume that POST is cached; that said, the data in SynoCommunity/spkrepo#16 shows why my suggestion doesn't affect it, and why I should not try to add to a conversation while on commuting between jobs.

I'll armchair-quarterback another idea over on spkrepo#16 (and sorry -- you're quite gracious to answer everything)

@ymartin59
Copy link
Contributor

@chickenandpork Be sure I do not answer everything - considering volume I receive from GitHub in my mailbox... I have to consider severity, urgency and priority for anything requiring my attention and time from community, my job and the remaining of my real life...

@kekukui
Copy link

kekukui commented Jun 13, 2019

maybe use zeronet or IPFS for P2P distribution?

@valdearg
Copy link

Any idea when it might be up? I could do with getting the mediainfo package again.

@CyberBlaed
Copy link

Any idea when it might be up? I could do with getting the mediainfo package again.

Still down for me, Http error 400 when I try, that said, manually download the SPK from the website and install as a manual package.. seems fine that way.. as a work around for now :)

@ymartin59
Copy link
Contributor

Looks like server requires regular reboot (every ~100 days) probably because of some leaks in kernel...

@s1r14na
Copy link

s1r14na commented Mar 18, 2020

synocomunity.com down again?

@Diaoul
Copy link
Member

Diaoul commented Mar 18, 2020

Indeed

@Diaoul
Copy link
Member

Diaoul commented Mar 18, 2020

Rebooted, should be ok now.

@noplanman
Copy link

I see, the classic then 😹

@ymartin59
Copy link
Contributor

In my opinion, spkrepo code cache is not optimal, it should discard some request parameters in key when value does not depend of that parameters.
Many concurrent requests consume almost all CPUs, so answers get longer to come, nginx and/or cloudflare considers system as out-of-order, and so 502 are emitted for a safety period...
I have already tried to tune nginx and wsgi servers to accept delay on requests, queueing them if possible, but CPUs are lacking.
Then spkrepo probably suffers of a memory leak and the more it has processed requests, the more CPU is consumed... I tried to set parameters to restart wsgi after thousand of requests. End of 2019, a server restart was required once a month... now it is already every two days, or even more frequently.

@ymartin59
Copy link
Contributor

Even if admin interface, I have to re-submit my requests up to 5 times before "catching a slot"...

@ymartin59
Copy link
Contributor

spkrepo holds 257 version of packages, and thanks to generic packages (x64, aarch64, armv7), number of builds are expected to decrease... but it still requires regular manual cleanup to discard old versions and reduce data processing.

@Diaoul
Copy link
Member

Diaoul commented Apr 8, 2020

Although the SQL model of the database is great to avoid inconsistencies, it causes very heavy requests on the database with huge JOINs thus taking a long time. This coupled with improper caching results in excessive load.
To compute a response we need to pull all the versions of a package, filter on architecture, take DSM version into account and determine with those constraint (and some more) what is the "latest" version.
Looking back on the design, I think I wouldn't mind something simpler on the database side with more application code for consistency.
Ideas welcome.

@nkqiaolin
Copy link

Sorry to raise : seems http://packages.synocommunity.com is down again? @Diaoul

@Diaoul
Copy link
Member

Diaoul commented May 20, 2020

See #3981
Migration should start as soon as I find some time, most probably during the weekend if all goes well.

@nkqiaolin
Copy link

That's cool! Thanks so much~~~

@thehoff
Copy link

thehoff commented May 21, 2020

@Diaoul happy to help if I can. located in AU and could help out supporting the servers under your guidance if that helps at all. Monitoring, admin etc. Just hit me up if you want/need help.

@matrixn
Copy link

matrixn commented May 22, 2020

Looks like today in London http://packages.synocommunity.com/ is down again... do we have a mirror for this repo? I would like to host one if is possible...

@thbl
Copy link

thbl commented May 22, 2020

is it down again ?

@matrixn
Copy link

matrixn commented May 22, 2020

yeah...still down... at least from London i can't access it

@publicarray
Copy link
Member

publicarray commented May 23, 2020

@matrixn @thehoff While we appreciate the offer, the current architecture does not lend itself well for mirroring. If have suggestions on how this can be done have a look at https://github.com/SynoCommunity/spkrepo.
This time around the outage is due to a server migration and not to an overloaded server. See #3981 Also once the server is migrated Fastly.com has kindly offered to be our CDN.

@carloscae
Copy link

Hi there. Are the SPKs available somewhere so I can manually download/install?
I came into a stupid situation of migrating my volumes and need to get one package there quite urgently. :(

(Hass.io in this case)

Thanks.

@publicarray
Copy link
Member

@carloscae https://github.com/publicarray/spksrc/releases/download/hassio-20191224/hassio_x64-6.1_20191224-1.spk

@baya44
Copy link

baya44 commented May 24, 2020

Any update about the migration ? I need the git spk for my ds1817+ after changing my volume last week.. There is any link to find it ?

@publicarray
Copy link
Member

publicarray commented May 25, 2020

Yes see #3981 all further updates regarding the migration will be announced on that issue.
@baya44 I just build git for you: https://github.com/publicarray/spksrc/releases/tag/git-2.24.1 for the ds1817+ you need the git_x64-6.1_2.24.1-12.spk

@jbega
Copy link

jbega commented May 26, 2020

Hi.
I have been trying to install the fuse libraries for several days but the synocomunity website is down. How could I install them on my 218+?
Thank you

@hgy59
Copy link
Contributor

hgy59 commented May 26, 2020

@jbega in #3981 you find the current status. Migration to the new server is still in progress.

Do you mean you need synocli-disk for the fuse libraries?

@jbega
Copy link

jbega commented May 26, 2020

So, is there no other way to install fuse libraries?

@hgy59
Copy link
Contributor

hgy59 commented May 26, 2020

on my DS218+ there is already libfuse (and fusermount) installed

lrwxrwxrwx 1 root root     16 May 26 11:39 /usr/lib/libfuse.so -> libfuse.so.2.9.4
lrwxrwxrwx 1 root root     16 May 26 11:39 /usr/lib/libfuse.so.2 -> libfuse.so.2.9.4
-rwxr-xr-x 1 root root 245792 May  7 02:40 /usr/lib/libfuse.so.2.9.4

And this are the SynoCommunity Packages containing libfuse and fusermount (currently version 2.9.9)

  • synocli-disk
  • synocli-net (contains sshfs that installs libfuse)
  • sshfs (contained in synocli-net, no dedicated package anymore)
  • itools (includes ifuse that depends on libfuse)

@hgy59
Copy link
Contributor

hgy59 commented May 26, 2020

@jbega please open a new issue for further discussions regarding fuse libraries.

@jabarel
Copy link

jabarel commented May 27, 2020

When will be up... i need transmission for 718+

@brucey531
Copy link

Does anyone have the Synology package for Mosquito so I can install manually until Syno community is back.

Thanks

@eRaz3r
Copy link

eRaz3r commented Jul 9, 2020

Have a big Problem too. I need the Syncthing-File for my 212+ because it is broken after updating. Are there any news, what is the problem with SynoCommunity about? I can't klick on my architecture to dowlad the .spk manually.

@acolomb
Copy link
Contributor

acolomb commented Jul 9, 2020

@eRaz3r I wish I could be of help with an updated testing build from PR #4027 which should fix your issue. However the DS212+ has an 88f6282 architecture and should be compatible with the armv5 build, which is not included there.

Possibly armv5 is listed as an unsupported architecture for the package? I can't check myself right now but maybe these hints will enable you to find a solution.

Totally unrelated to the offline package server though.

@bluet
Copy link

bluet commented May 26, 2021

Hello I see 400 Bad request. Is it down again?

@publicarray
Copy link
Member

You opened the url in your browser. That url is supposed to be used on your nas. You can visit https://synocommunity.com/ in your browser.

If someone has an issue please create a new one. Locking this one

@SynoCommunity SynoCommunity locked and limited conversation to collaborators May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
repo issues related to synocommunity/spkrepo status/help-wanted
Projects
None yet
Development

No branches or pull requests