Trouble importing spark sample dump locally

I’m working on a ListenBrainz spark related stat and I’m having trouble testing it locally.

I followed the server development doc and spark development doc to set up the spark environment and import data. However, in my setup the data import fails, and as a result the user and sitewide stats endpoints keep returning 204 No Content.

From the logs, it looks like the failure happens during the sample dump import step. While listing directories on the FTP server, the job fails with:

ftplib.error_reply: 229 Extended Passive Mode Entered (|||65515|)

Because of this, no listens end up in spark, so stats are never generated locally.

Any guidance would be really appreciated. Thanks!