MLB-LED-Scoreboard / mlb-led-scoreboard

An LED scoreboard for Major League Baseball :baseball:
GNU General Public License v3.0
590 stars 105 forks source link

Failed on start #389

Closed eeedlef closed 2 years ago

eeedlef commented 2 years ago

This issue is a

Hardware Configuration

Software Configuration

Expected behavior

Startup of mlb-led-scoreboard

Actual behavior

Only two leds are lit, and the scoreboard does not otherwise load

Additional Information

From the log:

mlb-led-scoreboard.service: Changing to the requested working directory failed: No such file or directory mlb-led-scoreboard.service: Failed at step CHDIR spawning /usr/bin/python3: No such file or directory mlb-led-scoreboard.service: Main process exited, code=exited, status=220/CHDIR mlb-led-scoreboard.service: Failed with result 'exit-code'.

WardBrian commented 2 years ago

Do you have python 3 installed?

eeedlef commented 2 years ago

I'm embarrassed, I just found the sound issue discussion in your read me. I'm working through those steps currently...

Edit: So I followed your steps to remove the sound conflict, that you have posted under the flicker issue. This is now what I am getting in the log:

Jun 20 17:01:40 raspberrypi systemd[1]: Started MLB LED Scoreboard. Jun 20 17:01:44 raspberrypi python3[377]: Suggestion: to slightly improve display update, add Jun 20 17:01:44 raspberrypi python3[377]: isolcpus=3 Jun 20 17:01:44 raspberrypi python3[377]: at the end of /boot/cmdline.txt and reboot (see README.md) Jun 20 17:01:44 raspberrypi python3[377]: WARNING (17:01:44): Could not find json file coordinates/w32h32.json. Skipping. Jun 20 17:01:44 raspberrypi python3[377]: WARNING (17:01:44): Could not find json file colors/teams.json. Skipping. Jun 20 17:01:44 raspberrypi python3[377]: WARNING (17:01:44): Could not find json file colors/scoreboard.json. Skipping. Jun 20 17:01:44 raspberrypi python3[377]: ERROR (17:01:44): Networking error while refreshing schedule Jun 20 17:01:44 raspberrypi python3[377]: Traceback (most recent call last): Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn Jun 20 17:01:44 raspberrypi python3[377]: conn = connection.create_connection( Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection Jun 20 17:01:44 raspberrypi python3[377]: for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo Jun 20 17:01:44 raspberrypi python3[377]: for res in _socket.getaddrinfo(host, port, family, type, proto, flags): Jun 20 17:01:44 raspberrypi python3[377]: socket.gaierror: [Errno -3] Temporary failure in name resolution Jun 20 17:01:44 raspberrypi python3[377]: During handling of the above exception, another exception occurred: Jun 20 17:01:44 raspberrypi python3[377]: Traceback (most recent call last): Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen Jun 20 17:01:44 raspberrypi python3[377]: httplib_response = self._make_request( Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request Jun 20 17:01:44 raspberrypi python3[377]: self._validate_conn(conn) Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn Jun 20 17:01:44 raspberrypi python3[377]: conn.connect() Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect Jun 20 17:01:44 raspberrypi python3[377]: conn = self._new_conn() Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn Jun 20 17:01:44 raspberrypi python3[377]: raise NewConnectionError( Jun 20 17:01:44 raspberrypi python3[377]: urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0xb604b418>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution Jun 20 17:01:44 raspberrypi python3[377]: During handling of the above exception, another exception occurred: Jun 20 17:01:44 raspberrypi python3[377]: Traceback (most recent call last): Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send Jun 20 17:01:44 raspberrypi python3[377]: resp = conn.urlopen( Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen Jun 20 17:01:44 raspberrypi python3[377]: retries = retries.increment( Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment Jun 20 17:01:44 raspberrypi python3[377]: raise MaxRetryError(_pool, url, error or ResponseError(cause)) Jun 20 17:01:44 raspberrypi python3[377]: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='statsapi.mlb.com', port=443): Max retries exceeded with url: /api/v1/schedule?date=2022-06-20&sportId=1&hydrate=decisions,probablePitch> Jun 20 17:01:44 raspberrypi python3[377]: During handling of the above exception, another exception occurred: Jun 20 17:01:44 raspberrypi python3[377]: Traceback (most recent call last): Jun 20 17:01:44 raspberrypi python3[377]: File "/home/pi4/mlb-led-scoreboard/data/schedule.py", line 46, in update Jun 20 17:01:44 raspberrypi python3[377]: self.__all_games = statsapi.schedule(self.date.strftime("%Y-%m-%d")) Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/local/lib/python3.9/dist-packages/statsapi/init.py", line 84, in schedule Jun 20 17:01:44 raspberrypi python3[377]: r = get("schedule", params) Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/local/lib/python3.9/dist-packages/statsapi/init.py", line 1666, in get Jun 20 17:01:44 raspberrypi python3[377]: r = requests.get(url) Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get Jun 20 17:01:44 raspberrypi python3[377]: return request('get', url, params=params, kwargs) Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request Jun 20 17:01:44 raspberrypi python3[377]: return session.request(method=method, url=url, kwargs) Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request Jun 20 17:01:44 raspberrypi python3[377]: resp = self.send(prep, send_kwargs) Jun 20 17:01:44 raspberrypi python3[377]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send Jun 20 17:01:44 raspberrypi python3[377]: r = adapter.send(request, kwargs)