Weatherman
Connection to Namecheap Domain
I have been struggling to connect my domain. In Namecheap, I’ve set to the following values
Type: CNAME Record
Host: @
Value: --------.up.railway.app. TTL: 5 min Waited for several days but Railway would continue to say “Issuing TLS Certificate.” Tried to switch host value to www and www.digitalsky.app but that resulted in “Waiting for DNS Update.” Please let me know what I may have missed. I have one domain connected from Google Domains where the host name is www.thedomainname.com
Value: --------.up.railway.app. TTL: 5 min Waited for several days but Railway would continue to say “Issuing TLS Certificate.” Tried to switch host value to www and www.digitalsky.app but that resulted in “Waiting for DNS Update.” Please let me know what I may have missed. I have one domain connected from Google Domains where the host name is www.thedomainname.com
58 replies
Live-Updating Map Error
Project ID: e738da6d-ea8b-45ba-8e5d-35989196c9ac
The following links are referenced in the text.
1. What I’m trying to create: https://www.weather.gov/
2. https://tgftp.nws.noaa.gov/SL.us008001/DF.sha/DC.cap/DS.WWA/
3. Fiona Docs: https://fiona.readthedocs.io/en/latest/cli.html#cat
I’m following this mapbox tutorial: https://docs.mapbox.com/mapbox-tiling-service/guides/tileset-sources/
My goal (1) is to run a script that will periodically update national weather service alerts on a mapbox map but I’m having trouble getting it to work on Railway. Before explaining the error, this is the process:
1. Download and extract a tar.gz file from (2) (resulting in a folder with a shapefile)
2. Convert the shapefile to a geojson line-delimited file
3. Upload the geojson to mapbox
This process works fine on my computer.
On Railway, the file downloads okay, extracts okay, then runs into an error on step 2. The error is:
Traceback (most recent call last):
File "/opt/venv/bin/fio", line 5, in <module>
from fiona.fio.main import main_group
File "/opt/venv/lib/python3.8/site-packages/fiona/init.py", line 86, in <module>
from fiona._env import (
ImportError: libexpat.so.1: cannot open shared object file: No such file or directory
The line of code that causes the error is:
os.system('fio cat current_all/current_all.shp > current_all.geojson.ld')
What this line is trying to do is grab the extracted alerts layer (current_all/current_all.shp) and convert it to current_all.geojson.ld using a program called Fiona (3). It uses the command line rather than an imported module.
I know this is a pretty specific issue but figure I’d ask anyway.
13 replies
Connect Python Script to MySQL
Hi there,
I am simply trying to connect a python script to a MySQL instance but I'm getting this error:
_mysql_connector.MySQLInterfaceError: Can't connect to MySQL server on 'localhost:7140' (99)
See the screenshot for my connection code.
17 replies
Very slow response time
I've had a website hosted on Railway for the past month or so - load times have occasionally run a bit slow (up to 5 seconds) but usually are consistently within 1-2 seconds which is fine.
Today has been a totally different story... consistently taking 6+ seconds for the code to run (I have a run time print statement built in the code) and often the site takes far more than that to load. On top of that, sometimes the site has just gone unresponsive for several minutes at a time, and in the logs errors such as the following print:
[2023-01-25 01:22:02 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:10)
[2023-01-25 01:22:02 +0000] [10] [INFO] Worker exiting (pid: 10)
[2023-01-25 01:22:02 +0000] [288] [INFO] Booting worker with pid: 288
[2023-01-25 01:22:33 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:288)
[2023-01-25 01:22:33 +0000] [288] [INFO] Worker exiting (pid: 288)
[2023-01-25 01:22:33 +0000] [320] [INFO] Booting worker with pid: 320
When I run the site locally I encounter no issues and normal response times. What could be going on here?
40 replies
Redis Connection Refused
I am trying to deploy a Flask app with Redis but am getting the following error: "Error 111 connecting to 127.0.0.1:6379. Connection refused."
I have tried to figure this out through forums online but as a beginner I'm finding it very difficult to know what steps apply to me. I'm sure I'm missing something basic. Any help is greatly appreciated.
Project ID: 52b32c2c-e65f-443a-b59c-ba6a9bccf24c
50 replies