DevOps • Full Stack Developer • Web App Architect
Python 🐍 Django • PostgreSQL 🐘 JavaScript • Node.js • Azure Cloud ☁️ NLP (Natural Language Processing) • ETL Developer (Extract, Transform, Load)
Greater Paris Metropolitan Region, France 🇫🇷
The missing repo to start GitHubbing on UCloud with Ubuntu Terminal
Home Page: https://jv-conseil.github.io/ucloud/
License: European Union Public License 1.2
I solved it. In my case the yaml file was wrong. I reviewed it and the problem now is solved. Thank you – stackoverflow.com
UCloud public link does not connect with a running Django app 🐍
When visiting the page https://app-githubbing.cloud.sdu.dk we got an error message 🙅♂️
upstream connect error or disconnect/reset before headers. reset reason: connection failure
nginx
Python 3.11.0
PostgreSQL Server 14.5
Django version 4.1.2
Display a 🚀 when visiting https://app-githubbing.cloud.sdu.dk
UCloud utilizes Kubernetes for Container orchestration. This is used both for the deployment of UCloud and scheduling of user jobs. — UCloud 3rd party dependencies
curl request
curl "https://app-githubbing.cloud.sdu.dk" --verbose
👇
Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* Trying 130.225.164.100:443...
* Connected to app-githubbing.cloud.sdu.dk (130.225.164.100) port 443 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted h2
* Server certificate:
* subject: C=DK; ST=Syddanmark; O=Syddansk Universitet; CN=*.cloud.sdu.dk
* start date: Aug 8 00:00:00 2022 GMT
* expire date: Aug 8 23:59:59 2023 GMT
* subjectAltName: host "app-githubbing.cloud.sdu.dk" matched cert "*.cloud.sdu.dk"
* issuer: C=NL; O=GEANT Vereniging; CN=GEANT OV RSA CA 4
* SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* h2h3 [:method: GET]
* h2h3 [:path: /]
* h2h3 [:scheme: https]
* h2h3 [:authority: app-githubbing.cloud.sdu.dk]
* h2h3 [user-agent: curl/7.85.0]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x558727b789b0)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET / HTTP/2
> Host: app-githubbing.cloud.sdu.dk
> user-agent: curl/7.85.0
> accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)! 👈 👀
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
< HTTP/2 404
< server: nginx
< date: Fri, 24 Feb 2023 00:35:55 GMT
< content-length: 0
< vary: Origin
< x-envoy-upstream-service-time: 0
< referrer-policy: same-origin
< strict-transport-security: max-age=15768000; includeSubDomains
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
< x-frame-options: SAMEORIGIN
< job-id: 8139b0e2ada0597194f6965a8b90bf64
<
* Connection #0 to host app-githubbing.cloud.sdu.dk left intact
virtual machine are credits restricted
DEBUF = True
in settings).
Status 503 Service Unavailable
Public Links run only once when connected to a Django job, then fail when launch a second time displaying the error message 👉 upstream connect error or disconnect reset before headers reset reason connection failure
app-mission-ocean.cloud.sdu.dk running in DEBUG=False with cache and collectstatic.
When conducting searches on "kubernetes" "ingress" "upstream connect error or disconnect/reset before headers. reset reason: connection failure" on google.com, we note a lot of chatters around that issue, notably that one 👇
For some time, our users reported seeing upstream connect errors and 503s like ”upstream connect error or disconnect/reset before headers. reset reason: connection termination“. This issue goes away if we refresh our browser page. However, it was very difficult to reproduce this error. -- Puzzling 503s and Istio
Public Links | Created | Worked Last | Status |
---|---|---|---|
app-9a7f8023b8b09392140f3ff9f12c91f2.cloud.sdu.dk | 19/03/2023 | 19/03/2023 | 🚫 |
app-githubbing.cloud.sdu.dk (deleted and created again) | 18/03/2023 | 🚫 | |
app-health-check.cloud.sdu.dk | 18/03/2023 | 18/03/2023 | ✅ |
app-health-status.cloud.sdu.dk | 18/03/2023 | 23/03/2023 | ✅ |
app-mission-ocean.cloud.sdu.dk | 19/02/2023 | 🚫 | |
app-research-funding.cloud.sdu.dk | 11/03/2023 | 🚫 | |
app-thalassa.cloud.sdu.dk | 11/03/2023 | 23/03/2023 | ✅ |
app-yerun.cloud.sdu.dk | 17/03/2023 | 🚫 |
Validate UCloud as a stable cloud service to serve Python Django v4.1.2 web app coupled with a PostgreSQL Server
Provided UCloud is up and running 👉 https://status.cloud.sdu.dk/
app-thalassa.cloud.sdu.dk running in DEBUG=False with cache activated and collectstatic.
pg_hba.conf
os.environ.get("DBHOST")
DEBUG=True
SECURE_SSL_REDIRECT = True
fails 👉 should not be declared in settings.py
🚫SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
✅django.db.backends.postgresql
SSLMODE=require
makemigrations
& migrate
create_superuser
CSRF_COOKIE_SECURE = True
and CSRF_USE_SESSIONS = True
DEBUG=False
ALLOWED_HOSTS
set to['localhost', 'app-627236-0.cloud.sdu.dk', 'app-githubbing.cloud.sdu.dk']
collectstatic
whitenoise
django.core.cache.backends.filebased.FileBasedCache
python manage.py xloader
.pg_hba.conf
django.db.backends.postgresql
SSLMODE=require
python manage.py xloader
v15.2
v4.1.7
v3.11.2
Pseudo UCloud localhost mode = when Django app is running on https://app-{job-id}-0.cloud.sdu.dk interface with no Public link connected.
March 2022 with u1-standard-8 machine.
Environment | set -eufo pipefail | ${USER} | Python 3.11.0 | apt update | Creation | Age |
---|---|---|---|---|---|---|
Terminal Debian 0.9.0 | ❌ | ✅ | 3.6.8 ❌ | 28/12/2022 | 75 days | |
Terminal Ubuntu 0.20.0 | ❌ | ✅ | 3.10.7 ❌ | 960 sec | 28/12/2022 | 75 days |
Terminal Ubuntu 0.21.0 (Linux version 5.4.228.el8 Ubuntu 22.10) |
❌ | ✅ | 3.10.7 ❌ | 233 sec | 21/03/2023 | 0 days |
Terminal CentOS 0.8.0 | ❌ | ✅ | 3.6.8 ❌ | 14/06/2022 | 272 days | |
PostgreSQL Server v14.5 (Linux v5.4.228.el8 Debian) |
✅ | ❌ | ❌ | 218 sec | 12/10/2022 | 152 days |
PostgreSQL Server v15.2 (Linux v5.4.228.el8 Debian 6.1.2023) |
✅ | ❌ | 3.9.2 ❌ | 24 sec | 16/03/2023 | 4 days |
Django v4.1.2 4.1.2 (Linux v5.4.228.el8 Debian) |
✅ | ❌ | ✅ | 962 sec | 08/11/2022 | 125 days |
Health Page Status 👉 https://status.cloud.sdu.dk/
Year | Incidents (nb) |
---|---|
2023 | 9 |
2022 | 18 |
Service Level Objective (SLO) for UCloud Compute >= 85% for Monthly Uptime Percentage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.