-
Notifications
You must be signed in to change notification settings - Fork 84
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
Running your own server is severely underdocumented #1002
Comments
Yeah, the lack of docs is one of the big items on my list. I'll get back to you here, as soon as I get some time. In the meantime, try these changes in podman-compose.yml and see if they help:
Should mount the storage on the host in The |
Which I had seen your comment sooner. After a few hours of debugging I found that this is the reason all of the json files are 404. The workers generate these files, but they are never accessible to the server without a volume mount. Honestly, I'm not sure how it ever worked. |
A few questions for the devs to run an unofficial server: Thank you. |
I'm running main, as is the production server. The tagged versions were sort of dropped apparently, when things were moving too fast to keep doing releases a couple times a week...
Yeah, that was my big stumbling block, too. I've got some hackery in various code in addition to the yml changes above, but I need to clean it all up and see if @aparcar thinks it's right. I'll be sure to post here when I get it clean-ish and commit something. |
I have spent the last couple days stripping down my code changes and documenting the whole process of setting up a local server. https://github.com/efahl/asu/blob/local-server/local-server.md @w23 @divinehawk
|
Oops, had a major omission in the local-server.md (the initial setup of |
@efahl can you provide nginx config file? |
I don't run any proxy in front of the ASU server (mine is purely local on http) and have no knowledge of how to do so. If you come up with a config, let me know and we can incorporate it into the documentation. |
@aparcar |
worked for me (caddy v2.8.4)
|
(I don't mean it as a rant or an attack, please don't read it as such -- the tone just a limitation of my English, and lack of time to smoothen the cultural discrepancy edges. I do appreciate your effort on this project.)
Using the official server is impractical -- when I tried, I was 650-something in line, and it was barely moving, decreasing by one every 5-10 minutes or so.
And after three hours of trying to run my own server I must declare an utter defeat.
That runs into "mixed content" https issue, and can be trivially worked around in Firefox by clicking on the lock in the URL bar and disabling protection.
CORS is more painful -- I had to run the server behind nginx reverse-proxy with
add_header 'Access-Control-Allow-Origin' '*' always;
directive.overview.json
. I suspect that it is generated somehow through runningpoetry run python3 misc/update_all_targets.py
. But it didn't work here. It just failed with thousands of messages likeHaving no easy way to debug it (I am absolutely not familiar with neither python web stuff, nor podman or containers at all; found no easy way to iterate -- all changes to sources needed a full
podman kill && podman rm && podman-compose build
, a lengthy and annoying operation), I've tried playing around public dir mount. It seems that it's hardcoded essentially to/app/public
in the sources, butpodman-compose.yml
mounts it at a different location depending on where the source was cloned into. This is where I ran out of time and could not continue further.There's another thread #975 where @efahl was somehow able to do it. But the full steps are yet to be documented.
If I get more time to try it (somewhat unlikely, at this point I'm feeling like not falling into sunk-cost fallacy and just re-flashing the devices manually), I'll document my steps in this thread.
I'd appreciate if anyone also tried and has any insight.
The text was updated successfully, but these errors were encountered: