![]() What did surprise me was that this error was happening both locally on my Mac (10.14.4) and on my remote Ubuntu 18.04 box.Īfter some googling I found this bug in pipenv. I'm hardly a Python expert, and I've traditionally had nothing but problems anytime I've had to do anything with pip, so this didn't surprise me. Raise ValueError, 'unknown locale: %s' % localename ![]() ![]() Creating a Pipfile for this project.Ĭreating a virtualenv for this project.įile "/usr/local/lib/python2.7/site-packages/pew/_init_.py", line 11, in įile "/usr/local/lib/python2.7/site-packages/pew/pew.py", line 36, in įrom pew._utils import (check_call, invoke, expandpath, own, env_bin_dir,įile "/usr/local/lib/python2.7/site-packages/pew/_utils.py", line 22, in Įncoding = locale.getlocale() or 'ascii'įile "/usr/local/Cellar/python/2.7.13/Frameworks/amework/Versions/2.7/lib/python2.7/locale.py", line 564, in getlocaleįile "/usr/local/Cellar/python/2.7.13/Frameworks/amework/Versions/2.7/lib/python2.7/locale.py", line 477, in _parse_localename Turns out, b2 was throwing this Python exception. Next I double-checked that b2 was using the correct credentials I had previously authorized it with by hand. ![]() But when I went back to check on them, I found every one had been failing silently.Īt first I thought maybe the b2 command wasn't found in $PATH when running via cron for some reason, but that wasn't it. I was quite pleased.Īnyway, after testing all of my scripts, I put them into cron and ignored them for the next few days assuming they'd "just work". The whole process took about eight hours coming from my primary Linode server in Atlanta. And the server-to-server transfer speeds using their b2 Python script, while not as fast as using a raw rsync connection, are quite a bit quicker than using S3.īefore committing to B2, I gave it a really thorough test by seeding it with 350,000 files totaling 450GB. The cost savings are enormous - especially for a small business like myself. ![]() Last week I migrated all of my backups off of Amazon S3 and to Backblaze B2. Just a quick note for my future self and anyone else who might be running into this problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |