.. -- coding: utf-8-with-signature --
Tahoe-LAFS now includes a new "Grid Manager" specification and implementation adding more options to control which storage servers a client will use for uploads. (#2916)
Added support for Python 3.12, and work with Eliot 1.15 (#3072)
tahoe run ... will now exit when its stdin is closed.
This facilitates subprocess management, specifically cleanup. When a parent process is running tahoe and exits without time to do "proper" cleanup at least the stdin descriptor will be closed. Subsequently "tahoe run" notices this and exits. (#3921)
Mutable objects can now be created with a pre-determined "signature key" using the
tahoe put
CLI or the HTTP API. This enables deterministic creation of mutable capabilities. This feature must be used with care to preserve the normal security and reliability properties. (#3962)Added support for Python 3.11. (#3982)
tahoe run now accepts --allow-stdin-close to mean "keep running if stdin closes" (#4036)
The storage server and client now support a new, HTTPS-based protocol. (#4041)
Started work on a new end-to-end benchmarking framework. (#4060)
Some operations now run in threads, improving the responsiveness of Tahoe nodes. (#4068)
Logs are now written in a thread, which should make the application more responsive under load. (#4804)
Provide better feedback from plugin configuration errors
Local errors now print a useful message and exit. Announcements that only contain invalid / unusable plugins now show a message in the Welcome page. (#3899)
Work with (and require) newer versions of pycddl. (#3938)
Uploading immutables will now better use available bandwidth, which should allow for faster uploads in many cases. (#3939)
Downloads of large immutables should now finish much faster. (#3946)
Fix incompatibility with transitive dependency charset_normalizer >= 3 when using PyInstaller. (#3966)
A bug where Introducer nodes configured to listen on Tor or I2P would not actually do so has been fixed. (#3999)
The (still off-by-default) HTTP storage client will now use Tor when Tor-based client-side anonymity was requested. Previously it would use normal TCP connections and not be anonymous. (#4029)
Provide our own copy of attrs' "provides()" validator
This validator is deprecated and slated for removal; that project's suggestion is to copy the code to our project. (#4056)
Fix a race condition with SegmentFetcher (#4078)
- tenacity is no longer a dependency. (#3989)
- Several minor errors in the Great Black Swamp proposed specification document have been fixed. (#3922)
- Document the
force_foolscap
configuration options for[storage]
and[client]
. (#4039)
- Python 3.7 is no longer supported, and Debian 10 and Ubuntu 18.04 are no longer tested. (#3964)
- The integration test suite now includes a set of capability test vectors (
integration/vectors/test_vectors.yaml
) which can be used to verify compatibility between Tahoe-LAFS and other implementations. (#3961)
- #3508, #3622, #3783, #3870, #3874, #3880, #3904, #3910, #3914, #3917, #3927, #3928, #3935, #3936, #3937, #3940, #3942, #3944, #3947, #3950, #3952, #3953, #3954, #3956, #3958, #3959, #3960, #3965, #3967, #3968, #3969, #3970, #3971, #3974, #3975, #3976, #3978, #3987, #3988, #3991, #3993, #3994, #3996, #3998, #4000, #4001, #4002, #4003, #4004, #4005, #4006, #4009, #4010, #4012, #4014, #4015, #4016, #4018, #4019, #4020, #4022, #4023, #4024, #4026, #4027, #4028, #4035, #4038, #4040, #4042, #4044, #4046, #4047, #4049, #4050, #4051, #4052, #4055, #4059, #4061, #4062, #4063, #4065, #4066, #4070, #4074, #4075
Python 3.6 is no longer supported, as it has reached end-of-life and is no longer receiving security updates. (#3865)
Python 3.7 or later is now required; Python 2 is no longer supported. (#3873)
Share corruption reports stored on disk are now always encoded in UTF-8. (#3879)
Record both the PID and the process creation-time:
a new kind of pidfile in running.process records both the PID and the creation-time of the process. This facilitates automatic discovery of a "stale" pidfile that points to a currently-running process. If the recorded creation-time matches the creation-time of the running process, then it is a still-running tahoe run process. Otherwise, the file is stale.
The twistd.pid file is no longer present. (#3926)
The implementation of SDMF and MDMF (mutables) now requires RSA keys to be exactly 2048 bits, aligning them with the specification.
Some code existed to allow tests to shorten this and it's conceptually possible a modified client produced mutables with different key-sizes. However, the spec says that they must be 2048 bits. If you happen to have a capability with a key-size different from 2048 you may use 1.17.1 or earlier to read the content. (#3828)
"make" based release automation (#3846)
- #3327, #3526, #3697, #3709, #3786, #3788, #3802, #3816, #3855, #3858, #3859, #3860, #3867, #3868, #3871, #3872, #3875, #3876, #3877, #3881, #3882, #3883, #3889, #3890, #3891, #3893, #3895, #3896, #3898, #3900, #3909, #3913, #3915, #3916
- Fixed regression on Python 3 causing the JSON version of the Welcome page to sometimes produce a 500 error (#3852)
- Fixed regression on Python 3 where JSON HTTP POSTs failed to be processed. (#3854)
The introducer server no longer writes the sensitive introducer fURL value to its log at startup time. Instead it writes the well-known path of the file from which this value can be read. (#3819)
The storage protocol operation
add_lease
now safely rejects an attempt to add a 4,294,967,296th lease to an immutable share. Previously this failed with an error after recording the new lease in the share file, resulting in the share file losing track of a one previous lease. (#3821)The storage protocol operation
readv
now safely rejects attempts to read negative lengths. Previously these read requests were satisfied with the complete contents of the share file (including trailing metadata) starting from the specified offset. (#3822)The storage server implementation now respects the
reserved_space
configuration value when writing lease information and recording corruption advisories. Previously, new leases could be created and written to disk even when the storage server had less remaining space than the configured reserve space value. Now this operation will fail with an exception and the lease will not be created. Similarly, if there is no space available, corruption advisories will be logged but not written to disk. (#3823)The storage server implementation no longer records corruption advisories about storage indexes for which it holds no shares. (#3824)
The lease-checker now uses JSON instead of pickle to serialize its state.
tahoe will now refuse to run until you either delete all pickle files or migrate them using the new command:
tahoe admin migrate-crawler
This will migrate all crawler-related pickle files. (#3825)
The SFTP server no longer accepts password-based credentials for authentication. Public/private key-based credentials are now the only supported authentication type. This removes plaintext password storage from the SFTP credentials file. It also removes a possible timing side-channel vulnerability which might have allowed attackers to discover an account's plaintext password. (#3827)
The storage server now keeps hashes of lease renew and cancel secrets for immutable share files instead of keeping the original secrets. (#3839)
The storage server now keeps hashes of lease renew and cancel secrets for mutable share files instead of keeping the original secrets. (#3841)
- Tahoe-LAFS releases now have just a .tar.gz source release and a (universal) wheel (#3735)
- tahoe-lafs now provides its statistics also in OpenMetrics format (for Prometheus et. al.) at /statistics?t=openmetrics. (#3786)
- If uploading an immutable hasn't had a write for 30 minutes, the storage server will abort the upload. (#3807)
- When uploading an immutable, overlapping writes that include conflicting data are rejected. In practice, this likely didn't happen in real-world usage. (#3801)
- Tahoe-LAFS now supports running on NixOS 21.05 with Python 3. (#3808)
- The news file for future releases will include a section for changes with a security impact. (#3815)
- The little-used "control port" has been removed from all node types. (#3814)
- Tahoe-LAFS no longer runs its Tor integration test suite on Python 2 due to the increased complexity of obtaining compatible versions of necessary dependencies. (#3837)
- #3525, #3527, #3754, #3758, #3784, #3792, #3793, #3795, #3797, #3798, #3799, #3800, #3805, #3806, #3810, #3812, #3820, #3829, #3830, #3831, #3832, #3833, #3834, #3835, #3836, #3838, #3842, #3843, #3847
- The Tahoe command line now always uses UTF-8 to decode its arguments, regardless of locale. (#3588)
- tahoe backup's --exclude-from has been renamed to --exclude-from-utf-8, and correspondingly requires the file to be UTF-8 encoded. (#3716)
- Added 'typechecks' environment for tox running mypy and performing static typechecks. (#3399)
- The NixOS-packaged Tahoe-LAFS now knows its own version. (#3629)
- Fix regression that broke flogtool results on Python 2. (#3509)
- Fix a logging regression on Python 2 involving unicode strings. (#3510)
- Certain implementation-internal weakref KeyErrors are now handled and should no longer cause user-initiated operations to fail. (#3539)
- SFTP public key auth likely works more consistently, and SFTP in general was previously broken. (#3584)
- Fixed issue where redirecting old-style URIs (/uri/?uri=...) didn't work. (#3590)
tahoe invite
will now read share encoding/placement configuration values from a Tahoe client node configuration file if they are not given on the command line, instead of raising an unhandled exception. (#3650)- Fix regression where uploading files with non-ASCII names failed. (#3738)
- Fixed annoying UnicodeWarning message on Python 2 when running CLI tools. (#3739)
- Fixed bug where share corruption events were not logged on storage servers running on Windows. (#3779)
- Tahoe-LAFS now requires Twisted 19.10.0 or newer. As a result, it now has a transitive dependency on bcrypt. (#1549)
- Debian 8 support has been replaced with Debian 10 support. (#3326)
- Tahoe-LAFS no longer depends on Nevow. (#3433)
- Tahoe-LAFS now requires the netifaces Python package and no longer requires the external ip, ifconfig, or route.exe executables. (#3486)
- The Tahoe-LAFS project no longer commits to maintaining binary packages for all dependencies at <https://tahoe-lafs.org/deps>. Please use PyPI instead. (#3497)
- Tahoe-LAFS now uses a forked version of txi2p (named txi2p-tahoe) with Python 3 support. (#3633)
- The Nix package now includes correct version information. (#3712)
- Use netifaces 0.11.0 wheel package from PyPI.org if you use 64-bit Python 2.7 on Windows. VCPython27 downloads are no longer available at Microsoft's website, which has made building Python 2.7 wheel packages of Python libraries with C extensions (such as netifaces) on Windows difficult. (#3733)
- The
[client]introducer.furl
configuration item is now deprecated in favor of theprivate/introducers.yaml
file. (#3504)
- Documentation now has its own towncrier category. (#3664)
- tox -e docs will treat warnings about docs as errors. (#3666)
- The visibility of the Tahoe-LAFS logo has been improved for "dark" themed viewing. (#3677)
- A cheatsheet-style document for contributors was created at CONTRIBUTORS.rst (#3682)
- Our IRC channel, #tahoe-lafs, has been moved to irc.libera.chat. (#3721)
- Tahoe-LAFS project is now registered with Libera.Chat IRC network. (#3726)
- Rewriting the installation guide for Tahoe-LAFS. (#3747)
- Documentation and installation links in the README have been fixed. (#3749)
- The Great Black Swamp proposed specification now includes sample interactions to demonstrate expected usage patterns. (#3764)
- The Great Black Swamp proposed specification now includes a glossary. (#3765)
- The Great Black Swamp specification now allows parallel upload of immutable share data. (#3769)
- There is now a specification for the scheme which Tahoe-LAFS storage clients use to derive their lease renewal secrets. (#3774)
- The Great Black Swamp proposed specification now has a simplified interface for reading data from immutable shares. (#3777)
- tahoe-dev mailing list is now at [email protected]. (#3782)
- The Great Black Swamp specification now describes the required authorization scheme. (#3785)
- The "Great Black Swamp" proposed specification has been expanded to include two lease management APIs. (#3037)
- The specification section of the Tahoe-LAFS documentation now includes explicit discussion of the security properties of Foolscap "fURLs" on which it depends. (#3503)
- The README, revised by Viktoriia with feedback from the team, is now more focused on the developer community and provides more information about Tahoe-LAFS, why it's important, and how someone can use it or start contributing to it. (#3545)
- The "Great Black Swamp" proposed specification has been changed use
v=1
as the URL version identifier. (#3644) - You can run make livehtml in docs directory to invoke sphinx-autobuild. (#3663)
- Announcements delivered through the introducer system are no longer automatically annotated with copious information about the Tahoe-LAFS software version nor the versions of its dependencies. (#3518)
- The stats gatherer, broken since at least Tahoe-LAFS 1.13.0, has been removed. The
[client]stats_gatherer.furl
configuration item intahoe.cfg
is no longer allowed. The Tahoe-LAFS project recommends using a third-party metrics aggregation tool instead. (#3549) - The deprecated
tahoe
start, restart, stop, and daemonize sub-commands have been removed. (#3550) - FTP is no longer supported by Tahoe-LAFS. Please use the SFTP support instead. (#3583)
- Removed support for the Account Server frontend authentication type. (#3652)
- Refactored test_introducer in web tests to use custom base test cases (#3757)
- #2928, #3283, #3314, #3384, #3385, #3390, #3404, #3428, #3432, #3434, #3435, #3454, #3459, #3460, #3465, #3466, #3467, #3468, #3470, #3471, #3472, #3473, #3474, #3475, #3477, #3478, #3479, #3481, #3482, #3483, #3485, #3488, #3490, #3491, #3492, #3493, #3496, #3499, #3500, #3501, #3502, #3511, #3513, #3514, #3515, #3517, #3520, #3521, #3522, #3523, #3524, #3528, #3529, #3532, #3533, #3534, #3536, #3537, #3542, #3544, #3546, #3547, #3551, #3552, #3553, #3555, #3557, #3558, #3560, #3563, #3564, #3565, #3566, #3567, #3568, #3572, #3574, #3575, #3576, #3577, #3578, #3579, #3580, #3582, #3587, #3588, #3589, #3591, #3592, #3593, #3594, #3595, #3596, #3599, #3600, #3603, #3605, #3606, #3607, #3608, #3611, #3612, #3613, #3615, #3616, #3617, #3618, #3619, #3620, #3621, #3623, #3624, #3625, #3626, #3628, #3630, #3631, #3632, #3634, #3635, #3637, #3638, #3640, #3642, #3645, #3646, #3647, #3648, #3649, #3651, #3653, #3654, #3655, #3656, #3657, #3658, #3662, #3667, #3669, #3670, #3671, #3672, #3674, #3675, #3676, #3678, #3679, #3681, #3683, #3686, #3687, #3691, #3692, #3699, #3700, #3701, #3702, #3703, #3704, #3705, #3707, #3708, #3709, #3711, #3713, #3714, #3715, #3717, #3718, #3722, #3723, #3727, #3728, #3729, #3730, #3731, #3732, #3734, #3735, #3736, #3741, #3743, #3744, #3745, #3746, #3751, #3759, #3760, #3763, #3773, #3781
- PyPy is now a supported platform. (#1792)
- allmydata.testing.web, a new module, now offers a supported Python API for testing Tahoe-LAFS web API clients. (#3317)
- Make directory page links work. (#3312)
- Use last known revision of Chutney that is known to work with Python 2 for Tor integration tests. (#3348)
- Mutable files now use RSA exponent 65537 (#3349)
- Tahoe-LAFS now supports CentOS 8 and no longer supports CentOS 7. (#3296)
- Tahoe-LAFS now supports Ubuntu 20.04. (#3328)
- The Magic Folder frontend has been split out into a stand-alone project. The functionality is no longer part of Tahoe-LAFS itself. Learn more at <https://github.com/LeastAuthority/magic-folder>. (#3284)
- Slackware 14.2 is no longer a Tahoe-LAFS supported platform. (#3323)
- The Tahoe-LAFS project has adopted a formal code of conduct. (#2755)
- (#3263, #3324)
- The "coverage" tox environment has been replaced by the "py27-coverage" and "py36-coverage" environments. (#3355)
- #3247, #3254, #3277, #3278, #3287, #3288, #3289, #3290, #3291, #3292, #3293, #3294, #3297, #3298, #3299, #3300, #3302, #3303, #3304, #3305, #3306, #3308, #3309, #3313, #3315, #3316, #3320, #3325, #3326, #3329, #3330, #3331, #3332, #3333, #3334, #3335, #3336, #3338, #3339, #3340, #3341, #3342, #3343, #3344, #3346, #3351, #3353, #3354, #3356, #3357, #3358, #3359, #3361, #3364, #3365, #3366, #3367, #3368, #3370, #3372, #3373, #3374, #3375, #3376, #3377, #3378, #3380, #3381, #3382, #3383, #3386, #3387, #3388, #3389, #3391, #3392, #3393, #3394, #3395, #3396, #3397, #3398, #3401, #3403, #3406, #3408, #3409, #3411, #3415, #3416, #3417, #3421, #3422, #3423, #3424, #3425, #3426, #3427, #3429, #3430, #3431, #3436, #3437, #3438, #3439, #3440, #3442, #3443, #3446, #3448, #3449, #3450, #3451, #3452, #3453, #3455, #3456, #3458, #3462, #3463, #3464
- Magic-Folders are now supported on macOS. (#1432)
- Add a "tox -e draftnews" which runs towncrier in draft mode (#2942)
- Fedora 29 is now tested as part of the project's continuous integration system. (#2955)
- The Magic-Folder frontend now emits structured, causal logs. This makes it easier for developers to make sense of its behavior and for users to submit useful debugging information alongside problem reports. (#2972)
- The tahoe CLI now accepts arguments for configuring structured logging messages which Tahoe-LAFS is being converted to emit. This change does not introduce any new defaults for on-filesystem logging. (#2975)
- The web API now publishes streaming Eliot logs via a token-protected WebSocket at /private/logs/v1. (#3006)
- End-to-end in-memory tests for websocket features (#3041)
- allmydata.interfaces.IFoolscapStoragePlugin has been introduced, an extension point for customizing the storage protocol. (#3049)
- Static storage server "announcements" in
private/servers.yaml
are now individually logged and ignored if they cannot be interpreted. (#3051) - Storage servers can now be configured to load plugins for allmydata.interfaces.IFoolscapStoragePlugin and offer them to clients. (#3053)
- Storage clients can now be configured to load plugins for allmydata.interfaces.IFoolscapStoragePlugin and use them to negotiate with servers. (#3054)
- The [storage] configuration section now accepts a boolean anonymous item to enable or disable anonymous storage access. The default behavior remains unchanged. (#3184)
- Enable the helper when creating a node with tahoe create-node --helper (#3235)
- refactor initialization code to be more async-friendly (#2870)
- Configuration-checking code wasn't being called due to indenting (#2935)
- refactor configuration handling out of Node into _Config (#2936)
- "tox -e codechecks" no longer dirties the working tree. (#2941)
- Updated the Tor release key, used by the integration tests. (#2944)
- tahoe backup no longer fails with an unhandled exception when it encounters a special file (device, fifo) in the backup source. (#2950)
- Magic-Folders now creates spurious conflict files in fewer cases. In particular, if files are added to the folder while a client is offline, that client will not create conflict files for all those new files when it starts up. (#2965)
- The confusing and misplaced sub-command group headings in tahoe --help output have been removed. (#2976)
- The Magic-Folder frontend is now more responsive to subtree changes on Windows. (#2997)
- remove ancient bundled jquery and d3, and the "dowload timeline" feature they support (#3228)
- Tahoe-LAFS no longer makes start-up time assertions about the versions of its dependencies. It is the responsibility of the administrator of the installation to ensure the correct version of dependencies are supplied. (#2749)
- Tahoe-LAFS now depends on Twisted 16.6 or newer. (#2957)
- "tahoe rm", an old alias for "tahoe unlink", has been removed. (#1827)
- The direct dependencies on pyutil and zbase32 have been removed. (#2098)
- Untested and unmaintained code for running Tahoe-LAFS as a Windows service has been removed. (#2239)
- The redundant "pypywin32" dependency has been removed. (#2392)
- Fedora 27 is no longer tested as part of the project's continuous integration system. (#2955)
- "tahoe start", "tahoe daemonize", "tahoe restart", and "tahoe stop" are now deprecated in favor of using "tahoe run", possibly with a third-party process manager. (#3273)
- Tahoe-LAFS now tests for PyPy compatibility on CI. (#2479)
- Tahoe-LAFS now requires Twisted 18.4.0 or newer. (#2771)
- Tahoe-LAFS now uses towncrier to maintain the NEWS file. (#2908)
- The release process document has been updated. (#2920)
- allmydata.test.test_system.SystemTest is now more reliable with respect to bound address collisions. (#2933)
- The Tox configuration has been fixed to work around a problem on Windows CI. (#2956)
- The PyInstaller CI job now works around a pip/pyinstaller incompatibility. (#2958)
- Some CI jobs for integration tests have been moved from TravisCI to CircleCI. (#2959)
- Several warnings from a new release of pyflakes have been fixed. (#2960)
- Some Slackware 14.2 continuous integration problems have been resolved. (#2961)
- Some macOS continuous integration failures have been fixed. (#2962)
- The NoNetworkGrid implementation has been somewhat improved. (#2966)
- A bug in the test suite for the create-alias command has been fixed. (#2967)
- The integration test suite has been updated to use pytest-twisted instead of deprecated pytest APIs. (#2968)
- The magic-folder integration test suite now performs more aggressive cleanup of the processes it launches. (#2969)
- The integration tests now correctly document the --keep-tempdir option. (#2970)
- A misuse of super() in the integration tests has been fixed. (#2971)
- Several utilities to facilitate the use of the Eliot causal logging library have been introduced. (#2973)
- The Windows CI configuration has been tweaked. (#2974)
- The Magic-Folder frontend has had additional logging improvements. (#2977)
- (#2981, #2982)
- Added a simple sytax checker so that once a file has reached python3 compatibility, it will not regress. (#3001)
- Converted all uses of the print statement to the print function in the ./misc/ directory. (#3002)
- The contributor guidelines are now linked from the GitHub pull request creation page. (#3003)
- Updated the testing code to use the print function instead of the print statement. (#3008)
- Replaced print statement with print fuction for all tahoe_* scripts. (#3009)
- Replaced all remaining instances of the print statement with the print function. (#3010)
- Replace StringIO imports with six.moves. (#3011)
- Updated all Python files to use PEP-3110 exception syntax for Python3 compatibility. (#3013)
- Update raise syntax for Python3 compatibility. (#3014)
- Updated instances of octal literals to use the format 0o123 for Python3 compatibility. (#3015)
- allmydata.test.no_network, allmydata.test.test_system, and allmydata.test.web.test_introducer are now more reliable with respect to bound address collisions. (#3016)
- Removed tuple unpacking from function and lambda definitions for Python3 compatibility. (#3019)
- Updated Python2 long numeric literals for Python3 compatibility. (#3020)
- CircleCI jobs are now faster as a result of pre-building configured Docker images for the CI jobs. (#3024)
- Removed used of backticks for "repr" for Python3 compatibility. (#3027)
- Updated string literal syntax for Python3 compatibility. (#3028)
- Updated CI to enforce Python3 syntax for entire repo. (#3030)
- Replaced pycryptopp with cryptography. (#3031)
- All old-style classes ported to new-style. (#3042)
- Whitelisted "/bin/mv" as command for codechecks performed by tox. This fixes a current warning and prevents future errors (for tox 4). (#3043)
- Progress towards Python 3 compatibility is now visible at <https://tahoe-lafs.github.io/tahoe-depgraph/>. (#3152)
- Collect coverage information from integration tests (#3234)
- NixOS is now a supported Tahoe-LAFS platform. (#3266)
- #1893, #2266, #2283, #2766, #2980, #2985, #2986, #2987, #2988, #2989, #2990, #2991, #2992, #2995, #3000, #3004, #3005, #3007, #3012, #3017, #3021, #3023, #3025, #3026, #3029, #3036, #3038, #3048, #3086, #3097, #3111, #3118, #3119, #3227, #3229, #3232, #3233, #3237, #3238, #3239, #3240, #3242, #3243, #3245, #3246, #3248, #3250, #3252, #3255, #3256, #3259, #3261, #3262, #3263, #3264, #3265, #3267, #3268, #3271, #3272, #3274, #3275, #3276, #3279, #3281, #3282, #3285
The tahoe list-aliases
command gained the --readonly-uri
option in PR400, which lists read-only capabilities (the default
shows read/write capabilities if available). This command also gained
a --json
option in PR452, providing machine-readable output.
A new command tahoe status
is added, showing some statistics and
currently active operations (similar to the /status
page in the
Web UI). See also PR502.
Immutable uploads now use the "servers of happiness" algorithm for uploading shares. This means better placement of shares on available servers. See PR416.
To join a new client to a grid, the command tahoe invite
was
added. This uses `magic wormhole`_ to connect two computers and
exchange the required information to start the client. The "client
side" of this command is the also new option tahoe
create-client --join=
. Together, this provides a way to provision a
new client without having to securely transmit the fURL and other
details. PR418
tahoe backup
now reports progress. PR474
The tub.port=
option can now accept listen:i2p
or
listen:tor
options to use popular anonymity networks with storage
servers. See PR437
The place where storage servers put shares (the "storage path") is now configurable (PR472).
A PyInstaller-based build is now available (PR421). A "Docker compose" setup for development purposes is now available (PR445).
There is now a recommended workflow for Zcash-based donations to support storage server operators (PR506).
Some bugs with pidfile handling were fixed (PR440 and PR450)
meaning invalid pidfiles are now deleted. Error-messages related to
tahoe.cfg
now include the full path to the file. `PR501`_ fixes
"address already in use" test failures. PR502 fixes ticket #2926
("tahoe status" failures). `PR487`_ fixes ticket #1455 (setting
X-Frame-Options: DENY
)
We set the "Referrer-Policy: no-referrer" header on all requests. The Welcome page now understands the JSON option (PR430) and OPTIONS requests are handled (PR447).
Multiple magic-folders in a single Tahoe client are now
supported. Bugs with .backup
files have been fixed, meaning
spurious .backup
files will be produced less often (PR448,
`PR475`_). Handling of default umask on new magic-folder files is
fixed in PR458. The user mtime value is now correctly preserved
(PR457).
A bug in tahoe magic-folder status
causing active operations to
sometimes not show up is fixed (`PR461`_). If a directory is missing,
it is created (`PR492`_).
In total, 50 Pull Requests were merged for this release, including contributions of code or review from 15 different GitHub users. Thanks everyone! A complete list of these PRs and contributions:
PR380: daira PR400: meejah (with warner) PR403: meejah PR405: meejah (with warner) PR406: meejah (with warner) PR407: david415 (with meejah, warner) PR409: str4d (with warner) PR410: tpltnt (with warner) `PR411`_: tpltnt (with warner, meejah) PR412: tpltnt (with warner) PR414: tpltnt (with meejah, warner) PR416: david415, meejah, markberger, warner PR417: meejah (with pataquets, warner) PR418: meejah (with crwood, exarkun, warner) PR419: tpltnt (with warner) PR420: ValdikSS (with warner) PR421: crwood (with meejah, warner) PR423: warner PR428: warner PR429: exarkun (with warner) PR430: david415, exarkun (with warner) PR432: exarkun (with meejah) PR433: exarkun (with warner) PR434: exarkun (with warner) PR437: warner PR438: warner (with meejah) PR440: exarkun, lpirl (with meejah) PR444: AnBuKu (with warner) PR445: bookchin (with warner) PR447: meejah (with tpltnt, meejah) PR448: meejah (with warner) PR450: exarkun, meejah, lpirl PR452: meejah (with tpltnt) PR453: meejah PR454: meejah (with tpltnt, meejah, warner) `PR455`_: tpltnt (with meejah) PR456: meejah (with meejah) PR457: meejah (with crwood, tpltnt) PR458: meejah (with tpltnt) PR460: tpltnt (with exarkun, meejah) PR462: meejah (with crwood) PR464: meejah PR470: meejah (with exarkun, tpltnt, warner) PR472: exarkun, meskio PR474: exarkun `PR475`_: meejah (with exarkun) PR482: crwood (with warner) `PR485`_: warner `PR486`_: exarkun (with warner) `PR487`_: exarkun (with tpltnt) `PR489`_: exarkun `PR490`_: exarkun `PR491`_: exarkun (with meejah) `PR492`_: exarkun (with meejah, tpltnt) `PR493`_: exarkun (with meejah) `PR494`_: exarkun (with meejah) `PR497`_: meejah (with multikatt, exarkun) `PR499`_: exarkun (with meejah) `PR501`_: exarkun (with meejah) PR502: exarkun (with meejah) PR506: exarkun (with crwood, nejucomo)
People hacking on Tahoe-LAFS code will be interested in some internal improvements which shouldn't have any user-visible effects:
- internal: skip some unicode tests on non-unicode platforms #2912
- internal: tox: pre-install Incremental to workaround setuptools bug #2913
- internal: fix PyInstaller builds PR482
- internal: use @implementer instead of implements PR406
- internal: improve happiness integration test #2895 PR432
- web internal: refactor response-format (?t=) logic #2893 PR429
- internal: fix pyflakes issues #2898 PR434
- internal: setup.py use find_packages #2897 PR433
- internal: ValueOrderedDict fixes #2891
- internal: remove unnused NumDict #2891 PR438
- internal: setup.py use python_requires= so tox3 works #2876
- internal: rewrite tahoe stop/start/daemonize refs #1148 #275 #1121 #1377 #2149 #719 PR417
- internal: add docs links to RFCs/etc PR456
- internal: magic-folder test improvement PR453
- internal: pytest changes PR462
- internal: upload appveyor generated wheels as artifacts #2903
- internal: fix tox-vs-setuptools-upgrade #2910
- deps: require txi2p>=0.3.2 to work around TLS who-is-client issue #2861 PR409
- deps: now need libyaml-dev from system before build PR420
- deps: twisted>=16.4.0 for "python -m twisted.trial" PR454
- deps: pin pypiwin32 to 219 until upstream bug resolved PR464
- deps: setuptools >=28.8.0 for something PR470
- deps: use stdlib "json" instead of external "simplejson" #2766 PR405
- complain more loudly in setup.py under py3 PR414
- rename "filesystem" to "file store" #2345 PR380
- replace deprecated twisted.web.client with treq #2857 PR428
- improve/stablize some test coverage #2891
- TODO: can we remove this now? pypiwin32 is now at 223
- use secure mkstemp() PR460
- test "tahoe list-aliases --readonly-uri" #2863 PR403
- #455: remove outdated comment
- PR407 fix stopService calls
- PR410 explicit python2.7 virtualenv
- PR419 fix list of supported OSes
- PR423 switch travis to a supported Ubuntu
- deps: no longer declare a PyCrypto dependency (actual use vanished long ago) PR514
This fixes a few small problems discovered just after 1.12.0 was released.
introducers.yaml
was entirely broken (due to a unicode-vs-ascii problem), and the documentation recommended an invalid syntax. Both have been fixed. (#2862)- Creating a node with
--hide-ip
shouldn't settcp = tor
if txtorcon is unavailable. I2P-only systems should gettcp = disabled
. (#2860) - As a result, we now require foolscap-0.12.6 .
- setup.py now creates identical wheels on win32 and unix. Previously wheels
created on windows got an unconditional dependency upon
pypiwin32
, making them uninstallable on unix. Now that dependency is marked assys_platform=win32
only. (#2763)
Some other small changes include:
- The deep-stats t=json response now includes an "api-version" field, currently set to 1. (#567)
- WUI Directory listings use
rel=noreferrer
to avoid leaking the dircap to the JS contents of the target file. (#151, #378) - Remove the dependency on
shutilwhich
(#2856)
This release features improved Tor/I2P integration. It is now easy to:
* use Tor to hide your IP address during external network activity * connect to Tor/I2P-based storage servers * run an Introducer or a storage node as a Tor "onion service"
See docs/anonymity-configuration.rst for instructions and new node-creation arguments (--hide-ip, --listen=tor), which include ways to use SOCKS servers for outbound connections. Tor/I2P/Socks support requires extra python libraries to be installed (e.g. 'pip install tahoe-lafs[tor]'), as well as matching (non-python) daemons available on the host system. (tickets #517, #2490, #2838)
Nodes can use multiple introducers by adding entries to a new
private/introducers.yaml
file, or stop using introduction entirely by
omitting the introducer.furl
key from tahoe.cfg (introducerless clients
will need static servers configured to connect anywhere). Server
announcements are sent to all connected Introducers, and clients merge all
announcements they see, which can improve grid reliability. (#68)
In addition, nodes now cache the announcements they receive in a YAML file,
and use their cached information at startup until the Introducer connection
is re-established. This makes nodes more tolerant of Introducers that are
temporarily offline. Nodes admins can copy text from the cache into a new
private/servers.yaml
file to add "static servers", which augment/override
what the Introducer offers. This can modify aspects of the server, or use
servers that were never announced in the first place. (#2788)
Nodes now use a separate Foolscap "Tub" for each server connection, so
servers.yaml
can override the connection rules (Tor vs direct-TCP) for
each one independently. This offers a slight privacy improvement, but slows
down connections slightly (perhaps 75ms per server), and breaks an obscure
NAT-bypass trick which enabled storage servers to run behind NAT boxes (but
only when all the clients of the storage server had public IP addresses,
and were also configured as servers). (#2759, #517)
"Magic Folders" is an experimental two-way directory synchronization tool, contributed by Least Authority Enterprises, which replaces the previous experimental (one-way) "drop-upload" feature. This allows multiple users to keep a single directory in-sync, using Tahoe as the backing store. See docs/frontends/magic-folder.rst for details and configuration instructions.
The old version-1 Introducer protocol has been removed. Tahoe has used the version-2 protocol since 1.10 (released in 2013), but all nodes (clients, servers, and the Introducer itself) provided backwards-compatibility translations when encountering older peers. These translations were finally removed, so Tahoe nodes at 1.12 or later will not be able to interact with nodes at 1.9 or older. (#2784)
The versions of Tahoe (1.11.0) and Foolscap (0.6.5) that shipped in
Debian/Jesse (the most recent stable release, as of December 2016) are
regrettably not forwards-compatible with this new version. Nodes running
Jesse will not be able to connect to servers or introducers created with this
release because they cannot parse the new tcp:HOST:PORT
hint syntax (this
syntax has been around for a while, but this is the first Tahoe release to
automatically generate such hints). If you need to work around this, then
after creating your new node, edit the tahoe.cfg of your new
server/introducer: in [node] tub.location
, make each connection hint look
like HOST:PORT
instead of tcp:HOST:PORT
. If your grid only has nodes
with Foolscap-0.7.0 or later, you will not need this workaround. (#2831)
Nodes now use an Ed25519 public key as a serverid, instead of a Foolscap "tub id", so status displays will report a different serverid after upgrade. For the most part this should be self-consistent, however if you have an old (1.11) client talking to a new (1.12) Helper, then the client's upload results (on the "Recent Uploads And Downloads" web page) will show unusual server ids. (#1363)
Tahoe now requires Twisted >= 16.1.0, so ensure that unit tests do not fail because of uncancelled timers left running by HostnameEndpoint. It also requires the Tor/I2P supporting code from Foolscap >= 0.12.5 . (#2781)
Some small changes were made to the way Tahoe-LAFS is configured, via
tahoe.cfg
and other files. In general, node behavior should now be more
predictable, and errors should be surfaced earlier.
tub.port
is now an Endpoint server specification string (which is pretty much just like a strports string, but can be extended by plugins). It now rejects "tcp:0" and "0". The tahoe.cfg value overrides anything stored on disk (in client.port). This should have no effect on most old nodes (which did not set tub.port in tahoe.cfg, and which wrote an allocated port number to client.port the first time they launched). Folks who want to listen on a specific port number typically set tub.port to "tcp:12345" or "12345", not "0". (ticket #2491)- This should enable IPv6 on servers, either via AAAA records or colon-hex addresses. (#2827)
- The "portnumfile" (e.g. NODEDIR/client.port) is written as soon as the port is allocated, before the tub is created, and only if "tub.port" was empty. The old code wrote to it unconditionally, and after Tub startup. So if the user allows NODEDIR/client.port to be written, then later modifies tahoe.cfg to set "tub.port" to a different value, this difference will persist (and the node will honor tahoe.cfg "tub.port" exclusively).
- We now encourage static allocation of tub.port, and pre-configuration of the node's externally-reachable IP address or hostname (by setting tub.location). Automatic IP-address detection is deprecated. Automatic port allocation is discouraged. Both are managed by the new arguments to "tahoe create-node".
- "tahoe start" now creates the Tub, and all primary software components, before the child process daemonizes. Many configuration errors which would previously have been reported in a logfile (after node startup), will now be signalled immediately, via stderr. In these cases, the "tahoe start" process will exit with a non-zero return code. (#2491)
- Unrecognized tahoe.cfg options are rejected at startup, not ignored (#2809)
tub.port
can take multple (comma-separated) endpoints, to listen on multiple ports at the same time, useful for dual IPv4+IPv6 servers. (#867)- An empty
tub.port
means don't listen at all, which is appropriate for client-only nodes (#2816) - A new setting,
reveal-ip-address = false
, acts as a safety belt, causing an error to be thrown if any other setting might reveal the node's IP address (i.e. it requires Tor or I2P to be used, rather than direct TCP connections). This is set automatically bytahoe create-client --hide-ip
. (#1010)
Server-like nodes (Storage Servers and Introducers), created with tahoe
create-node
and tahoe create-introducer
, now accept new arguments to
control how they listen for connections, and how they advertise themselves to
other nodes. You can use --listen=tcp
and --hostname=
to choose a
port automatically, or --listen=tor
/ --listen=i2p
to use Tor/I2P
hidden services instead. You can also use --port=
and --location=
to
explicitly control the listener and the advertised location. (#2773, #2490)
The "stats-gatherer", used by enterprise deployments to collect runtime statistics from a fleet of Tahoe storage servers, must now be assigned a hostname, or location+port pair, at creation time. It will no longer attempt to guess its location (with /sbin/ifconfig). The "tahoe create-stats-gatherer" command requires either "--hostname=", or both "--location=" and "--port". (#2773)
To keep your old stats-gatherers working, with their original FURL, you must determine a suitable --location and --port, and write their values into NODEDIR/location and NODEDIR/port, respectively. Or you could simply rebuild it by re-running "tahoe create-stats-gatherer" with the new arguments.
The stats gatherer now updates a JSON file named "stats.json", instead of a Pickle named "stats.pickle". The munin plugins in misc/operations_helpers/munin/ have been updated to match, and must be re-installed and re-configured if you use munin.
The "key-generator" node type has been removed. This was a standalone process that maintained a queue of RSA keys, and clients could offload their key-generation work by adding "key_generator.furl=" in their tahoe.cfg files, to create mutable files and directories faster. This seemed important back in 2006, but these days computers are faster and RSA key generation only takes about 90ms. This removes the "tahoe create-key-generator" command. Any "key_generator.furl" settings in tahoe.cfg will log a warning and are otherwise ignored. Attempts to "tahoe start" a previously-generated key-generator node will result in an error. (#2783)
Tahoe's HTTP Web-API (aka "the WAPI") had an endpoint named "/file/". This has been deprecated, and applications should use "/named/" instead. (#1903)
The little-used "manhole" debugging feature has been removed. This allowed you to SSH or Telnet "into" a Tahoe node, providing an interactive Read-Eval-Print-Loop (REPL) that executed inside the context of the running process. (#2367)
The "tahoe debug trial" and "tahoe debug repl" CLI commands were removed, as "tox" is now the preferred way to run tests. (#2735)
One of the "recent uploads and downloads" status pages was using a Google-hosted API to draw a timing chart of the "mapupdate" operation. This has been removed, both for privacy (to avoid revealing the serverids to Google) and because the API was deprecated several years ago. (#1942)
The "_appname.py" feature was removed. Early in Tahoe's history (at AllMyData), this file allowed the "tahoe" executable to be given a different name depending upon which Darcs patches were included in the particular source tree (one for production, another for development, etc). We haven't needed this for a long time, so it was removed. (#2754)
Documentation is now hosted at http://tahoe-lafs.readthedocs.io/ (not .org).
Tahoe's testing-only dependencies can now be installed by asking for the [test] extra, so if you want to set up a virtualenv for testing, use "pip install -e .[test]" instead just of "pip install -e ." . This includes "tox", "coverage", "pyflakes", "mock", and all the Tor/I2P extras. Most developer tooling (code-checks, documentation builds, deprecation warnings, etc) have been moved from a Makefile into tox environments. (#2776)
The "Welcome" (web) page now shows more detail about the introducer and storage-server connections, including which connection handler is being used (tcp/tor/i2p) and why specific connection hints failed to connect. (#2818, #2819)
The little-used "control port" now uses a separate (ephemeral) Tub. This means the FURL changes each time the node is restarted, and it only listens on the loopback (127.0.0.1) interface, on a random port. As the control port is only used by some automated tests (check_memory, check_speed), this shouldn't affect anyone. (#2794)
The slightly-more-used "log port" now also uses a separate (ephemeral) Tub,
with the same consequences. The lack of a stable (and externally-reachable)
logport.furl means it is no longer possible to use flogtool tail FURL
against a distant Tahoe server, however flogtool tail
.../nodedir/private/logport.furl
still works just fine (and is the more
common use case anyways). We might bring back the ability to configure the
port and location of the logport in the future, if there is sufficient
demand, but for now it seems better to avoid the complexity.
The default tahoe.cfg setting of web.static = public_html
, when
NODEDIR/public_html/
does not exist, no longer causes web browsers to
display a traceback which reveals somewhat-private information like the value
of NODEDIR, and the Python/OS versions in use. Instead it just shows a plain
404 error. (#1720)
pip install
(in a virtualenv) is now the recommended way to install
Tahoe-LAFS. The old "bin/tahoe" script (created inside the source tree,
rather than in a virtualenv) has been removed, as has the ancient
"zetuptoolz" fork of setuptools.
Tahoe was started in 2006, and predates pip and virtualenv. From the
very beginning it used a home-made build process that attempted to make
setup.py build
behave somewhat like a modern pip
install --editable .
. It included a local copy of setuptools
(to
avoid requiring it to be pre-installed), which was then forked as
zetuptoolz
to fix bugs during the bad old days of setuptools
non-maintenance. The pseudo-virtualenv used a script named
bin/tahoe
, created during setup.py build
, to set up the $PATH
and $PYTHONPATH as necessary.
Starting with this release, all the custom build process has been
removed, and Tahoe should be installable with standard modern tools. You
will need virtualenv
installed (which provides pip
and
setuptools). Many Python installers include virtualenv
already, and
Debian-like systems can use apt-get install python-virtualenv
. If
the command is not available on your system, follow the installation
instructions at https://virtualenv.pypa.io/en/latest/ .
Then, to install the latest version, create a virtualenv and use
pip
:
virtualenv venv . venv/bin/activate (venv) pip install tahoe-lafs (venv) tahoe --version
To run Tahoe from a source checkout (so you can hack on Tahoe), use
pip install --editable .
from the git tree:
git clone https://github.com/tahoe-lafs/tahoe-lafs.git cd tahoe-lafs virtualenv venv . venv/bin/activate (venv) pip install --editable . (venv) tahoe --version
The pip install
will download and install all necessary Python
dependencies. Some dependencies require a C compiler and system
libraries to build: on Debian/Ubuntu-like systems, use apt-get install
build-essential python-dev libffi-dev libssl-dev
. On Windows and OS-X
platforms, we provide pre-compiled binary wheels at
https://tahoe-lafs.org/deps/
, removing the need for a compiler.
(#1582, #2445, also helped to close: #142, #709, #717, #799, #1220, #1260, #1270, #1403, #1450, #1451, #1504, #1896, #2044, #2221, #2021, #2028, #2066, #2077, #2247, #2255, #2286, #2306, #2473, #2475, #2530, #657, #2446, #2439, #2317, #1753, #1009, #1168, #1238, #1258, #1334, #1346, #1464, #2356, #2570)
Tahoe-LAFS is now known on PyPI as tahoe-lafs
. It was formerly known
as allmydata-tahoe
. This affects pip install
commands. (#2011)
Because of this change, if you use a git checkout, you may need to run
make distclean
(to delete the machine-generated
src/allmydata/_appname.py
file). You may also need to remove
allmydata-tahoe
from any virtualenvs you've created, before
installing tahoe-lafs
into them. If all else fails, make a new git
checkout, and use a new virtualenv.
Note that the importable package name is still allmydata
, but this
only affects developers, not end-users. This name scheduled to be
changed in a future release. (#1950)
Tahoe now requires Python 2.7 on all platforms. (#2445)
Tahoe now requires Foolscap 0.10.1, which fixes incompatibilities with recent Twisted releases. (#2510, #2722, #2567)
Tahoe requires Twisted 15.1.0 or later, so it can request the
Twisted[tls]
"extra" (this asks Twisted to ask for everything it
needs to provide proper TLS support). (#2760)
Tests should now work with both Nevow 0.11 and 0.12 . (#2663)
Binary wheels for Windows and OS-X (for all dependencies) have been
built and are hosted at https://tahoe-lafs.org/deps . Use pip
install --find-links=URL tahoe-lafs
to take advantage of them. (#2001)
We've removed the SUMO and tahoe-deps tarballs. Please see docs/desert-island.rst for instructions to build tahoe from offline systems. (#1009, #2530, #2446, #2439)
A new "peers.preferred" item was added to the [client]
section. This
identifies servers that will be promoted to the front of the
peer-selection list when uploading or downloading files. Servers are
identified by their Node ID (visible on the welcome page). This may be
useful to ensure that one full set of shares are placed on nearby
servers, making later downloads fast (and avoid using scarce remote
bandwidth). The remaining shares can go to distant backup servers. (git
commit 96eaca6)
Aliases can now be unicode. (git commit 46719a8b)
The introducer's "set_encoding_parameters" feature was removed. Once upon a time, the Introducer could recommend encoding parameters (shares.needed and shares.total) to all clients, the idea being that the Introducer had a slightly better idea about the expected size of the storage server pool than clients might. Client-side support for this was removed long ago, but the Introducer itself kept delivering recommendations until this release. (git commit 56a9f5ad)
The OS-X .pkg installer has been improved slightly, to clean up after previous installations better. (#2493)
All WUI (Web UI) timestamps should now be a consistent format, using the gateway machine's local time zone. (#1077)
The web "welcome page" has been improved: it shows how long a server has been connected (in minutes/hours/days, instead of the date+time when the connection was most recently established). The "announced" column has been replaced with "Last RX" column that shows when we last heard anything from the server. The mostly-useless "storage" column has been removed. (#1973)
In the tahoe ls
command, the -u
shortcut for --uri
has been
removed, leaving the shortcut free for the global --node-url
option.
(#1949, #2137)
Some internal logging was disabled, to avoid a temporary bug that caused excessive (perhaps infinite) log messages to be created. (#2567)
Other non-user-visible tickets were fixed. (#2499, #2511, #2556, #2663, #2723, #2543)
This release no longer requires the mock
library (which was previously
used in the unit test suite). Shortly after the Tahoe-LAFS 1.10.1 release, a
new version of mock
was released (1.1.0) that proved to be incompatible
with Tahoe's fork of setuptools, preventing Tahoe-1.10.1 from building at
all. #2465
The tahoe --version
output is now less likely to include scary diagnostic
warnings that look deceptively like stack traces. #2436
The pyasn1 requirement was increased to >= 0.1.8.
A WebAPI GET
would sometimes hang when using the HTTP Range header to
read just part of the file. #2459
Using tahoe cp
to copy two different files of the same name into the same
target directory now raises an error, rather than silently overwriting one of
them. #2447
All tickets closed in this release: 2328 2436 2446 2447 2459 2460 2461 2462 2465 2470.
The "tahoe cp
" CLI command's --recursive
option is now more predictable,
but behaves slightly differently than before. See below for details. Tickets
#712, #2329.
The SFTP server can now use public-key authentication (instead of only password-based auth). Public keys are configured through an "account file", just like passwords. See docs/frontends/FTP-and-SFTP for examples of the format. #1411
The Tahoe node can now be configured to disable automatic IP-address detection. Using "AUTO" in tahoe.cfg [node]tub.location= (which is now the default) triggers autodetection. Omit "AUTO" to disable autodetection. "AUTO" can be combined with static addresses to e.g. use both a stable UPnP-configured tunneled address and a DHCP-assigned dynamic (local subnet only) address. See configuration.rst for details. #754
The web-based user interface ("WUI") Directory and Welcome pages have been redesigned, with improved CSS for narrow windows and more-accessible icons (using distinctive shapes instead of just colors). #1931 #1961 #1966 #1972 #1901
The many cp
-like tools in the Unix world (POSIX /bin/cp
, the scp
provided by SSH, rsync
) all behave slightly differently in unusual
circumstances, especially when copying whole directories into a target that
may or may not already exist. The most common difference is whether the user
is referring to the source directory as a whole, or to its contents. For
example, should "cp -r foodir bardir
" create a new directory named
"bardir/foodir
"? Or should it behave more like "cp -r foodir/* bardir
"?
Some tools use the presence of a trailing slash to indicate which behavior
you want. Others ignore trailing slashes.
"tahoe cp
" is no exception to having exceptional cases. This release fixes
some bad behavior and attempts to establish a consistent rationale for its
behavior. The new rule is:
- If the thing being copied is a directory, and it has a name (e.g. it's not a raw Tahoe-LAFS directorycap), then you are referring to the directory itself.
- If the thing being copied is an unnamed directory (e.g. raw dircap or alias), then you are referring to the contents.
- Trailing slashes do not affect the behavior of the copy (although putting a trailing slash on a file-like target is an error).
- The "
-r
" (--recursive
) flag does not affect the behavior of the copy (although omitting-r
when the source is a directory is an error). - If the target refers to something that does not yet exist: - and if the source is a single file, then create a new file; - otherwise, create a directory.
There are two main cases where the behavior of Tahoe-LAFS v1.10.1 differs from that of the previous v1.10.0 release:
- "
cp DIRCAP/file.txt ./local/missing
" , where "./local
" is a directory but "./local/missing
" does not exist. The implication is that you want Tahoe to create a new file named "./local/missing
" and fill it with the contents of the Tahoe-sideDIRCAP/file.txt
. In v1.10.0, a plain "cp
" would do just this, but "cp -r
" would do "mkdir ./local/missing
" and then create a file named "./local/missing/file.txt
". In v1.10.1, both "cp
" and "cp -r
" create a file named "./local/missing
". - "
cp -r PARENTCAP/dir ./local/missing
", wherePARENTCAP/dir/
contains "file.txt
", and again "./local
" is a directory but "./local/missing
" does not exist. In both v1.10.0 and v1.10.1, this first does "mkdir ./local/missing
". In v1.10.0, it would then copy the contents of the source directory into the new directory, resulting in "./local/missing/file.txt
". In v1.10.1, following the new rule of "a named directory source refers to the directory itself", the tool creates "./local/missing/dir/file.txt
".
Windows now requires Python 2.7. Unix/OS-X platforms can still use either Python 2.6 or 2.7, however this is probably the last release that will support 2.6 (it is no longer receiving security updates, and most OS distributions have switched to 2.7). Tahoe-LAFS now has the following dependencies:
- Twisted >= 13.0.0
- Nevow >= 0.11.1
- foolscap >= 0.8.0
- service-identity
- characteristic >= 14.0.0
- pyasn1 >= 0.1.4
- pyasn1-modules >= 0.0.5
On Windows, if pywin32 is not installed then the dependencies on Twisted and Nevow become:
- Twisted >= 11.1.0, <= 12.1.0
- Nevow >= 0.9.33, <= 0.10
On all platforms, if pyOpenSSL >= 0.14 is installed, then it will be used, but if not then only pyOpenSSL >= 0.13, <= 0.13.1 will be built when directly invoking setup.py build or setup.py install.
We strongly advise OS packagers to take the option of making a tahoe-lafs package depend on pyOpenSSL >= 0.14. In order for that to work, the following additional Python dependencies are needed:
- cryptography
- cffi >= 0.8
- six >= 1.4.1
- enum34
- pycparser
as well as libffi (for Debian/Ubuntu, the name of the needed OS package is libffi6).
Tahoe-LAFS is now compatible with Setuptools version 8 and Pip version 6 or later, which should fix execution on Ubuntu 15.04 (it now tolerates PEP440 semantics in dependency specifications). #2354 #2242
Tahoe-LAFS now depends upon foolscap-0.8.0, which creates better private keys and certificates than previous versions. To benefit from the improvements (2048-bit RSA keys and SHA256-based certificates), you must re-generate your Tahoe nodes (which changes their TubIDs and FURLs). #2400
A preliminary OS-X package, named "tahoe-lafs-VERSION-osx.pkg
", is now
being generated. It is a standard double-clickable installer, which creates
/Applications/tahoe.app
that embeds a complete runtime tree. However
launching the .app
only brings up a notice on how to run tahoe from the
command line. A future release may turn this into a fully-fledged application
launcher. #182 #2393 #2323
Preliminary Docker support was added. Tahoe container images may be available on DockerHub. PR#165 #2419 #2421
Old and obsolete Debian packaging tools have been removed. #2282
- Welcome page: add per-server "(space) Available" column. #648
- check/deep-check learned to accept multiple location arguments. #740
- Checker reports: remove needs-rebalancing, add count-happiness. #1784 #2105
- CLI
--help
: cite (but don't list) global options on each command. #2233 - Fix ftp "
ls
" to work with Twisted 15.0.0. #2394
Roughly 75 tickets were closed in this release: 623 648 712 740 754 898 1146 1159 1336 1381 1411 1634 1674 1698 1707 1717 1737 1784 1800 1807 1842 1847 1901 1918 1953 1960 1961 1966 1969 1972 1974 1988 1992 2005 2008 2023 2027 2028 2034 2048 2067 2086 2105 2121 2128 2165 2193 2208 2209 2233 2235 2242 2245 2248 2249 2249 2280 2281 2282 2290 2305 2312 2323 2340 2354 2380 2393 2394 2398 2400 2415 2416 2417 2433. Another dozen were referenced but not closed: 182 666 982 1064 1258 1531 1536 1742 1834 1931 1935 2286. Roughly 40 GitHub pull-requests were closed: 32 48 50 56 57 61 62 62 63 64 69 73 81 82 84 85 87 91 94 95 96 103 107 109 112 114 120 122 125 126 133 135 136 137 142 146 149 152 165.
For more information about any ticket, visit e.g. https://tahoe-lafs.org/trac/tahoe-lafs/ticket/754
- The Welcome page has been redesigned. This is a preview of the design style that is likely to be used in other parts of the WUI in future Tahoe-LAFS versions. (#1713, #1457, #1735)
- A new extensible Introducer protocol has been added, as the basis for future improvements such as accounting. Compatibility with older nodes is not affected. When server, introducer, and client are all upgraded, the welcome page will show node IDs that start with "v0-" instead of the old tubid. See docs/nodekeys.rst for details. (#466)
- The web-API has a new
relink
operation that supports directly moving files between directories. (#1579)
- The
introducer.furl
for new Introducers is now unguessable. In previous releases, this FURL used a predictable swissnum, allowing a network eavesdropper who observes any node connecting to the Introducer to access the Introducer themselves, and thus use servers or offer storage service to clients (i.e. "join the grid"). In the new code, the only way to join a grid is to be told theintroducer.furl
by someone who already knew it. Note that pre-existing introducers are not changed. To force an introducer to generate a new FURL, delete the existingintroducer.furl
file and restart it. After doing this, the[client]introducer.furl
setting of every client and server that should connect to that introducer must be updated. Note that other users of a shared machine may be able to readintroducer.furl
from yourtahoe.cfg
file unless you configure the file permissions to prevent them. (#1802) - Both
introducer.furl
andhelper.furl
are now censored from the Welcome page, to prevent users of your gateway from learning enough to create gateway nodes of their own. For existing guessable introducer FURLs, theintroducer
swissnum is still displayed to show that a guessable FURL is in use. (#860)
- Global options to
tahoe
, such as-d
/--node-directory
, must now come before rather than after the command name (for example,tahoe -d BASEDIR cp -r foo: bar:
). (#166)
- In earlier versions, if a connection problem caused a download failure for an immutable file, subsequent attempts to download the same file could also fail. This is now fixed. (#1679)
- Filenames in WUI directory pages are now displayed correctly when they contain characters that require HTML escaping. (#1143)
- Non-ASCII node nicknames no longer cause WUI errors. (#1298)
- Checking a LIT file using
tahoe check
no longer results in an exception. (#1758) - The SFTP frontend now works with recent versions of Twisted, rather than
giving errors or warnings about use of
IFinishableConsumer
. (#1926, #1564, #1525) tahoe cp --verbose
now counts the files being processed correctly. (#1805, #1783)- Exceptions no longer trigger an unhelpful crash reporter on Ubuntu 12.04 ("Precise") or later. (#1746)
- The error message displayed when a CLI tool cannot connect to a gateway has been improved. (#974)
- Other minor fixes: #1781, #1812, #1915, #1484, #1525
- Python >= 2.6, except Python 3 (#1658)
- Twisted >= 11.0.0 (#1771)
- mock >= 0.8 (for unit tests)
- pycryptopp >= 0.6.0 (for Ed25519 signatures)
- zope.interface >= 3.6.0 (except 3.6.3 or 3.6.4)
- The
flogtool
utility, used to read detailed event logs, can now be accessed astahoe debug flogtool
even when Foolscap is not installed system-wide. (#1693) - The provisioning/reliability pages were removed from the main client's web
interface, and moved into a standalone web-based tool. Use the
run.py
script inmisc/operations_helpers/provisioning/
to access them. - Web clients can now cache (ETag) immutable directory pages. (#443)
- docs/convergence_secret.rst was added to document the adminstration of convergence secrets. (#1761)
- When upgrading a grid from a recent revision of trunk, follow the precautions from this message to the tahoe-dev mailing list, to ensure that announcements to the Introducer are recognized after the upgrade. This is not necessary when upgrading from a previous release like 1.9.2.
- Several regressions in support for reading (#1636), writing/modifying (#1670, #1749), verifying (#1628) and repairing (#1655, #1669, #1676, #1689) mutable files have been fixed.
- FTP can now list directories containing mutable files, although it still does not support reading or writing mutable files. (#680)
- The FTP frontend would previously show Jan 1 1970 for all timestamps; now it shows the correct modification time of the directory entry. (#1688)
- If a node is configured to report incidents to a log gatherer, but the gatherer is offline when some incidents occur, it would previously not "catch up" with those incidents as intended. (#1725)
- OpenBSD 5 is now supported. (#1584)
- The
count-good-share-hosts
field of file check results is now computed correctly. (#1115)
- The capability of the upload directory for the drop-upload frontend
is now specified in the file
private/drop_upload_dircap
under the gateway's node directory, rather than in itstahoe.cfg
. (#1593)
- Tahoe-LAFS can be built correctly from a git repository as well as from darcs.
- foolscap >= 0.6.3 is required, in order to make Tahoe-LAFS compatible with Twisted >= 11.1.0. (#1788)
- Versions 2.0.1 and 2.4 of PyCrypto are excluded. (#1631, #1574)
- Fix flaw that would allow servers to cause undetected corruption when retrieving the contents of mutable files (both SDMF and MDMF). (#1654)
- The most significant new feature in this release is MDMF: "Medium-size
Distributed Mutable Files". Unlike standard SDMF files, these provide
efficient partial-access (reading and modifying small portions of the file
instead of the whole thing). MDMF is opt-in (it is not yet the default
format for mutable files), both to ensure compatibility with previous
versions, and because the algorithm does not yet meet memory-usage goals.
Enable it with
--format=MDMF
in the CLI (tahoe put
andtahoe mkdir
), or the "format" radioboxes in the web interface. See docs/specifications/mutable.rst for more details (#393, #1507) - A "blacklist" feature allows blocking access to specific files through a particular gateway. See the "Access Blacklist" section of docs/configuration.rst for more details. (#1425)
- A "drop-upload" feature has been added, which allows you to upload files to a Tahoe-LAFS directory just by writing them to a local directory. This feature is experimental and should not be relied on to store the only copy of valuable data. It is currently available only on Linux. See docs/frontends/drop-upload.rst for documentation. (#1429)
- The timeline of immutable downloads can be viewed using a zoomable and pannable JavaScript-based visualization. This is accessed using the 'timeline' link on the File Download Status page for the download, which can be reached from the Recent Uploads and Downloads page.
- Prior to Tahoe-LAFS v1.3, the configuration of some node options could
be specified using individual config files rather than via
tahoe.cfg
. These files now cause an error if present. (#1385) - Storage servers now calculate their remaining space based on the filesystem
containing the
storage/shares/
directory. Previously they looked at the filesystem containing thestorage/
directory. This allowsstorage/shares/
, rather thanstorage/
, to be a mount point or a symlink pointing to another filesystem. (#1384) tahoe cp xyz MUTABLE
will modify the existing mutable file instead of creating a new one. (#1304)- The button for unlinking a file from its directory on a WUI directory listing is now labelled "unlink" rather than "del". (#1104)
- The security bugfix for the vulnerability allowing deletion of shares, detailed in the news for v1.8.3 below, is also included in this release. (#1528)
- Some cases of immutable upload, for example using the
tahoe put
andtahoe cp
commands or SFTP, did not appear in the history of Recent Uploads and Downloads. (#1079) - The memory footprint of the verifier has been reduced by serializing block fetches. (#1395)
- Large immutable downloads are now a little faster than in v1.8.3 (about 5% on a fast network). (#1268)
- The files related to Debian packaging have been removed from the Tahoe source tree, since they are now maintained as part of the official Debian packages. (#1454)
- The unmaintained FUSE plugins were removed from the source tree. See
docs/frontends/FTP-and-SFTP.rst
for how to mount a Tahoe filesystem on Unix via sshfs. (#1409) - The Tahoe licenses now give explicit permission to combine Tahoe-LAFS
with code distributed under the following additional open-source licenses
(any version of each):
- Academic Free License
- Apple Public Source License
- BitTorrent Open Source License
- Lucent Public License
- Jabber Open Source License
- Common Development and Distribution License
- Microsoft Public License
- Microsoft Reciprocal License
- Sun Industry Standards Source License
- Open Software License
- To resolve an incompatibility between Nevow and zope.interface (versions 3.6.3 and 3.6.4), Tahoe-LAFS now requires an earlier or later version of zope.interface. (#1435)
- The Twisted dependency has been raised to version 10.1 to ensure we no longer require pywin32 on Windows, the new drop-upload feature has the required support from Twisted on Linux, and that it is never necessary to patch Twisted in order to use the FTP frontend. (#1274, #1429, #1438)
- An explicit dependency on pyOpenSSL has been added, replacing the indirect dependency via the "secure_connections" option of foolscap. (#1383)
- A
man
page has been added (#1420). All other docs are in ReST format. - The
tahoe_files
munin plugin reported an incorrect count of the number of share files. (#1391) - Minor documentation updates: #627, #1104, #1225, #1297, #1342, #1404
- Other minor changes: #636, #1355, #1363, #1366, #1388, #1392, #1412, #1344, #1347, #1359, #1389, #1441, #1442, #1446, #1474, #1503
- Fix flaw that would allow a person who knows a storage index of a file to delete shares of that file. (#1528)
- Remove corner cases in mutable file bounds management which could expose extra lease info or old share data (from prior versions of the mutable file) if someone with write authority to that mutable file exercised these corner cases in a way that no actual Tahoe-LAFS client does. (Probably not exploitable.) (#1528)
- Tahoe is now compatible with Twisted-10.2 (released last month), as well as with earlier versions. The previous Tahoe-1.8.1 release failed to run against Twisted-10.2, raising an AttributeError on StreamServerEndpointService (#1286)
- Tahoe now depends upon the "mock" testing library, and the foolscap dependency was raised to 0.6.1 . It no longer requires pywin32 (which was used only on windows). Future developers should note that reactor.spawnProcess and derivatives may no longer be used inside Tahoe code.
- the default reserved_space value for new storage nodes is 1 GB (#1208)
- documentation is now in reStructuredText (.rst) format
- "tahoe cp" should now handle non-ASCII filenames
- the unmaintained Mac/Windows GUI applications have been removed (#1282)
- tahoe processes should appear in top and ps as "tahoe", not "python", on some unix platforms. (#174)
- "tahoe debug trial" can be used to run the test suite (#1296)
- the SFTP frontend now reports unknown sizes as "0" instead of "?", to improve compatibility with clients like FileZilla (#1337)
- "tahoe --version" should now report correct values in situations where 1.8.1 might have been wrong (#1287)
- Allow the repairer to improve the health of a file by uploading some shares, even if it cannot achieve the configured happiness threshold. This fixes a regression introduced between v1.7.1 and v1.8.0. (#1212)
- Fix a memory leak in the ResponseCache which is used during mutable file/directory operations. (#1045)
- Fix a regression and add a performance improvement in the downloader. This issue caused repair to fail in some special cases. (#1223)
- Fix a bug that caused 'tahoe cp' to fail for a grid-to-grid copy involving a non-ASCII filename. (#1224)
- Fix a rarely-encountered bug involving printing large strings to the console on Windows. (#1232)
- Perform ~ expansion in the --exclude-from filename argument to 'tahoe backup'. (#1241)
- The CLI's 'tahoe mv' and 'tahoe ln' commands previously would try to use an HTTP proxy if the HTTP_PROXY environment variable was set. These now always connect directly to the WAPI, thus avoiding giving caps to the HTTP proxy (and also avoiding failures in the case that the proxy is failing or requires authentication). (#1253)
- The CLI now correctly reports failure in the case that 'tahoe mv' fails to unlink the file from its old location. (#1255)
- 'tahoe start' now gives a more positive indication that the node has started. (#71)
- The arguments seen by 'ps' or other tools for node processes are now more useful (in particular, they include the path of the 'tahoe' script, rather than an obscure tool named 'twistd'). (#174)
- The tahoe start/stop/restart and node creation commands no longer accept the -m or --multiple option, for consistency between platforms. (#1262)
- We now host binary packages so that users on certain operating systems can install without having a compiler. <https://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-dep-eggs/README.html>
- Use a newer version of a dependency if needed, even if an older version is installed. This would previously cause a VersionConflict error. (#1190)
- Use a precompiled binary of a dependency if one with a sufficiently high version number is available, instead of attempting to compile the dependency from source, even if the source version has a higher version number. (#1233)
- All current documentation in .txt format has been converted to .rst format. (#1225)
- Added docs/backdoors.rst declaring that we won't add backdoors to Tahoe-LAFS, or add anything to facilitate government access to data. (#1216)
- A completely new downloader which improves performance and robustness of immutable-file downloads. It uses the fastest K servers to download the data in K-way parallel. It automatically fails over to alternate servers if servers fail in mid-download. It allows seeking to arbitrary locations in the file (the previous downloader which would only read the entire file sequentially from beginning to end). It minimizes unnecessary round trips and unnecessary bytes transferred to improve performance. It sends requests to fewer servers to reduce the load on servers (the previous one would send a small request to every server for every download) (#287, #288, #448, #798, #800, #990, #1170, #1191)
- Non-ASCII command-line arguments and non-ASCII outputs now work on Windows. In addition, the command-line tool now works on 64-bit Windows. (#1074)
- Document and clean up the command-line options for specifying the node's base directory. (#188, #706, #715, #772, #1108)
- The default node directory for Windows is ".tahoe" in the user's home directory, the same as on other platforms. (#890)
- Fix a case in which full cap URIs could be logged. (#685, #1155)
- Fix bug in WUI in Python 2.5 when the system clock is set back to 1969. Now you can use Tahoe-LAFS with Python 2.5 and set your system clock to 1969 and still use the WUI. (#1055)
- Many improvements in code organization, tests, logging, documentation, and packaging. (#983, #1074, #1108, #1127, #1129, #1131, #1166, #1175)
- on x86 and x86-64 platforms, pycryptopp >= 0.5.20
- pycrypto 2.2 is excluded due to a bug
- Fix bug in which uploader could fail with AssertionFailure or report that it had achieved servers-of-happiness when it hadn't. (#1118)
- Fix bug in which servers could get into a state where they would refuse to accept shares of a certain file (#1117)
- Add init scripts for managing the gateway server on Debian/Ubuntu (#961)
- Fix bug where server version number was always 0 on the welcome page (#1067)
- Add new command-line command "tahoe unlink" as a synonym for "tahoe rm" (#776)
- The FTP frontend now encrypts its temporary files, protecting their contents from an attacker who is able to read the disk. (#1083)
- Fix IP address detection on FreeBSD 7, 8, and 9 (#1098)
- Fix minor layout issue in the Web User Interface with Internet Explorer (#1097)
- Fix rarely-encountered incompatibility between Twisted logging utility and the new unicode support added in v1.7.0 (#1099)
- Forward-compatibility improvements for non-ASCII caps (#1051)
- SFTP support (#1037) Your Tahoe-LAFS gateway now acts like a full-fledged SFTP server. It has been tested with sshfs to provide a virtual filesystem in Linux. Many users have asked for this feature. We hope that it serves them well! See the FTP-and-SFTP.rst document to get started.
- support for non-ASCII character encodings (#534) Tahoe-LAFS now correctly handles filenames containing non-ASCII characters on all supported platforms:
- when reading files in from the local filesystem (such as when you run "tahoe backup" to back up your local files to a Tahoe-LAFS grid);
- when writing files out to the local filesystem (such as when you run "tahoe cp -r" to recursively copy files out of a Tahoe-LAFS grid);
- when displaying filenames to the terminal (such as when you run "tahoe ls"), subject to limitations of the terminal and locale;
- when parsing command-line arguments, except on Windows.
- Servers of Happiness (#778) Tahoe-LAFS now measures during immutable file upload to see how well distributed it is across multiple servers. It aborts the upload if the pieces of the file are not sufficiently well-distributed. This behavior is controlled by a configuration parameter called "servers of happiness". With the default settings for its erasure coding, Tahoe-LAFS generates 10 shares for each file, such that any 3 of those shares are sufficient to recover the file. The default value of "servers of happiness" is 7, which means that Tahoe-LAFS will guarantee that there are at least 7 servers holding some of the shares, such that any 3 of those servers can completely recover your file. The new upload code also distributes the shares better than the previous version in some cases and takes better advantage of pre-existing shares (when a file has already been previously uploaded). See the architecture.rst document [3] for details.
- Premature abort of upload if some shares were already present and some servers fail. (#608)
- python ./setup.py install -- can't create or remove files in install directory. (#803)
- Network failure => internal TypeError. (#902)
- Install of Tahoe on CentOS 5.4. (#933)
- CLI option --node-url now supports https url. (#1028)
- HTML/CSS template files were not correctly installed under Windows. (#1033)
- MetadataSetter does not enforce restriction on setting "tahoe" subkeys. (#1034)
- ImportError: No module named setuptools_darcs.setuptools_darcs. (#1054)
- Renamed Title in xhtml files. (#1062)
- Increase Python version dependency to 2.4.4, to avoid a critical CPython security bug. (#1066)
- Typo correction for the munin plugin tahoe_storagespace. (#968)
- Fix warnings found by pylint. (#973)
- Changing format of some documentation files. (#1027)
- the misc/ directory was tied up. (#1068)
- The 'ctime' and 'mtime' metadata fields are no longer written except by "tahoe backup". (#924)
- Unicode filenames in Tahoe-LAFS directories are normalized so that names that differ only in how accents are encoded are treated as the same. (#1076)
- Various small improvements to documentation. (#937, #911, #1024, #1082)
- The 'tahoe debug consolidate' subcommand (for converting old allmydata Windows client backups to a newer format) has been removed.
- the Python version dependency is raised to 2.4.4 in some cases (2.4.3 for Redhat-based Linux distributions, 2.4.2 for UCS-2 builds) (#1066)
- pycrypto >= 2.0.1
- pyasn1 >= 0.0.8a
- mock (only required by unit tests)
Correct handling of Small Immutable Directories
Immutable directories can now be deep-checked and listed in the web UI in all cases. (In v1.6.0, some operations, such as deep-check, on a directory graph that included very small immutable directories, would result in an exception causing the whole operation to abort.) (#948)
- Improved user interface messages and error reporting. (#681, #837, #939)
- The timeouts for operation handles have been greatly increased, so that you can view the results of an operation up to 4 days after it has completed. After viewing them for the first time, the results are retained for a further day. (#577)
Immutable Directories
Tahoe-LAFS can now create and handle immutable directories. (#607, #833, #931) These are read just like normal directories, but are "deep-immutable", meaning that all their children (and everything reachable from those children) must be immutable objects (i.e. immutable or literal files, and other immutable directories).
These directories must be created in a single webapi call that provides all of the children at once. (Since they cannot be changed after creation, the usual create/add/add sequence cannot be used.) They have URIs that start with "URI:DIR2-CHK:" or "URI:DIR2-LIT:", and are described on the human-facing web interface (aka the "WUI") with a "DIR-IMM" abbreviation (as opposed to "DIR" for the usual read-write directories and "DIR-RO" for read-only directories).
Tahoe-LAFS releases before 1.6.0 cannot read the contents of an immutable directory. 1.5.0 will tolerate their presence in a directory listing (and display it as "unknown"). 1.4.1 and earlier cannot tolerate them: a DIR-IMM child in any directory will prevent the listing of that directory.
Immutable directories are repairable, just like normal immutable files.
The webapi "POST t=mkdir-immutable" call is used to create immutable directories. See webapi.rst for details.
"tahoe backup" now creates immutable directories, backupdb has dircache
The "tahoe backup" command has been enhanced to create immutable directories (in previous releases, it created read-only mutable directories) (#828). This is significantly faster, since it does not need to create an RSA keypair for each new directory. Also "DIR-IMM" immutable directories are repairable, unlike "DIR-RO" read-only mutable directories at present. (A future Tahoe-LAFS release should also be able to repair DIR-RO.)
In addition, the backupdb (used by "tahoe backup" to remember what it has already copied) has been enhanced to store information about existing immutable directories. This allows it to re-use directories that have moved but still contain identical contents, or that have been deleted and later replaced. (The 1.5.0 "tahoe backup" command could only re-use directories that were in the same place as they were in the immediately previous backup.) With this change, the backup process no longer needs to read the previous snapshot out of the Tahoe-LAFS grid, reducing the network load considerably. (#606)
A "null backup" (in which nothing has changed since the previous backup) will require only two Tahoe-side operations: one to add an Archives/$TIMESTAMP entry, and a second to update the Latest/ link. On the local disk side, it will readdir() all your local directories and stat() all your local files.
If you've been using "tahoe backup" for a while, you will notice that your first use of it after upgrading to 1.6.0 may take a long time: it must create proper immutable versions of all the old read-only mutable directories. This process won't take as long as the initial backup (where all the file contents had to be uploaded too): it will require time proportional to the number and size of your directories. After this initial pass, all subsequent passes should take a tiny fraction of the time.
As noted above, Tahoe-LAFS versions earlier than 1.5.0 cannot list a directory containing an immutable subdirectory. Tahoe-LAFS versions earlier than 1.6.0 cannot read the contents of an immutable directory.
The "tahoe backup" command has been improved to skip over unreadable objects (like device files, named pipes, and files with permissions that prevent the command from reading their contents), instead of throwing an exception and terminating the backup process. It also skips over symlinks, because these cannot be represented faithfully in the Tahoe-side filesystem. A warning message will be emitted each time something is skipped. (#729, #850, #641)
"create-node" command added, "create-client" now implies --no-storage
The basic idea behind Tahoe-LAFS's client+server and client-only processes is that you are creating a general-purpose Tahoe-LAFS "node" process, which has several components that can be activated. Storage service is one of these optional components, as is the Helper, FTP server, and SFTP server. Web gateway functionality is nominally on this list, but it is always active; a future release will make it optional. There are three special purpose servers that can't currently be run as a component in a node: introducer, key-generator, and stats-gatherer.
So now "tahoe create-node" will create a Tahoe-LAFS node process, and after creation you can edit its tahoe.cfg to enable or disable the desired services. It is a more general-purpose replacement for "tahoe create-client". The default configuration has storage service enabled. For convenience, the "--no-storage" argument makes a tahoe.cfg file that disables storage service. (#760)
"tahoe create-client" has been changed to create a Tahoe-LAFS node without a storage service. It is equivalent to "tahoe create-node --no-storage". This helps to reduce the confusion surrounding the use of a command with "client" in its name to create a storage server. Use "tahoe create-client" to create a purely client-side node. If you want to offer storage to the grid, use "tahoe create-node" instead.
In the future, other services will be added to the node, and they will be controlled through options in tahoe.cfg . The most important of these services may get additional --enable-XYZ or --disable-XYZ arguments to "tahoe create-node".
Performance Improvements
Download of immutable files begins as soon as the downloader has located the K necessary shares (#928, #287). In both the previous and current releases, a downloader will first issue queries to all storage servers on the grid to locate shares before it begins downloading the shares. In previous releases of Tahoe-LAFS, download would not begin until all storage servers on the grid had replied to the query, at which point K shares would be chosen for download from among the shares that were located. In this release, download begins as soon as any K shares are located. This means that downloads start sooner, which is particularly important if there is a server on the grid that is extremely slow or even hung in such a way that it will never respond. In previous releases such a server would have a negative impact on all downloads from that grid. In this release, such a server will have no impact on downloads, as long as K shares can be found on other, quicker, servers. This also means that downloads now use the "best-alacrity" servers that they talk to, as measured by how quickly the servers reply to the initial query. This might cause downloads to go faster, especially on grids with heterogeneous servers or geographical dispersion.
- The webapi acquired a new "t=mkdir-with-children" command, to create and populate a directory in a single call. This is significantly faster than using separate "t=mkdir" and "t=set-children" operations (it uses one gateway-to-grid roundtrip, instead of three or four). (#533)
- The t=set-children (note the hyphen) operation is now documented in webapi.rst, and is the new preferred spelling of the old t=set_children (with an underscore). The underscore version remains for backwards compatibility. (#381, #927)
- The tracebacks produced by errors in CLI tools should now be in plain text, instead of HTML (which is unreadable outside of a browser). (#646)
- The [storage]reserved_space configuration knob (which causes the storage server to refuse shares when available disk space drops below a threshold) should work on Windows now, not just UNIX. (#637)
- "tahoe cp" should now exit with status "1" if it cannot figure out a suitable target filename, such as when you copy from a bare filecap. (#761)
- "tahoe get" no longer creates a zero-length file upon error. (#121)
- "tahoe ls" can now list single files. (#457)
- "tahoe deep-check --repair" should tolerate repair failures now, instead of halting traversal. (#874, #786)
- "tahoe create-alias" no longer corrupts the aliases file if it had previously been edited to have no trailing newline. (#741)
- Many small packaging improvements were made to facilitate the "tahoe-lafs" package being included in Ubuntu. Several mac/win32 binary libraries were removed, some figleaf code-coverage files were removed, a bundled copy of darcsver-1.2.1 was removed, and additional licensing text was added.
- Several DeprecationWarnings for python2.6 were silenced. (#859)
- The checker --add-lease option would sometimes fail for shares stored on old (Tahoe v1.2.0) servers. (#875)
- The documentation for installing on Windows (docs/quickstart.rst) has been improved. (#773)
For other changes not mentioned here, see <https://tahoe-lafs.org/trac/tahoe-lafs/query?milestone=1.6.0&keywords=!~news-done>. To include the tickets mentioned above, go to <https://tahoe-lafs.org/trac/tahoe-lafs/query?milestone=1.6.0>.
- Uploads of immutable files now use pipelined writes, improving upload speed slightly (10%) over high-latency connections. (#392)
- Processing large directories has been sped up, by removing a O(N^2) algorithm from the dirnode decoding path and retaining unmodified encrypted entries. (#750, #752)
- The human-facing web interface (aka the "WUI") received a significant CSS makeover by Kevin Reid, making it much prettier and easier to read. The WUI "check" and "deep-check" forms now include a "Renew Lease" checkbox, mirroring the CLI --add-lease option, so leases can be added or renewed from the web interface.
- The CLI "tahoe mv" command now refuses to overwrite directories. (#705)
- The CLI "tahoe webopen" command, when run without arguments, will now bring up the "Welcome Page" (node status and mkdir/upload forms).
- The 3.5MB limit on mutable files was removed, so it should be possible to upload arbitrarily-sized mutable files. Note, however, that the data format and algorithm remains the same, so using mutable files still requires bandwidth, computation, and RAM in proportion to the size of the mutable file. (#694)
- This version of Tahoe-LAFS will tolerate directory entries that contain filecap formats which it does not recognize: files and directories from the future. This should improve the user experience (for 1.5.0 users) when we add new cap formats in the future. Previous versions would fail badly, preventing the user from seeing or editing anything else in those directories. These unrecognized objects can be renamed and deleted, but obviously not read or written. Also they cannot generally be copied. (#683)
- deep-check-and-repair now tolerates read-only directories, such as the ones produced by the "tahoe backup" CLI command. Read-only directories and mutable files are checked, but not repaired. Previous versions threw an exception when attempting the repair and failed to process the remaining contents. We cannot yet repair these read-only objects, but at least this version allows the rest of the check+repair to proceed. (#625)
- A bug in 1.4.1 which caused a server to be listed multiple times (and frequently broke all connections to that server) was fixed. (#653)
- The plaintext-hashing code was removed from the Helper interface, removing the Helper's ability to mount a partial-information-guessing attack. (#722)
- Tahoe-LAFS now runs on NetBSD, OpenBSD, ArchLinux, and NixOS, and on an embedded system based on an ARM CPU running at 266 MHz.
- Unit test timeouts have been raised to allow the tests to complete on extremely slow platforms like embedded ARM-based NAS boxes, which may take several hours to run the test suite. An ARM-specific data-corrupting bug in an older version of Crypto++ (5.5.2) was identified: ARM-users are encouraged to use recent Crypto++/pycryptopp which avoids this problem.
- Tahoe-LAFS now requires a SQLite library, either the sqlite3 that comes built-in with python2.5/2.6, or the add-on pysqlite2 if you're using python2.4. In the previous release, this was only needed for the "tahoe backup" command: now it is mandatory.
- Several minor documentation updates were made.
- To help get Tahoe-LAFS into Linux distributions like Fedora and Debian, packaging improvements are being made in both Tahoe-LAFS and related libraries like pycryptopp and zfec.
- The Crypto++ library included in the pycryptopp package has been upgraded to version 5.6.0 of Crypto++, which includes a more efficient implementation of SHA-256 in assembly for x86 or amd64 architectures.
- foolscap-0.4.1
- no python-2.4.0 or 2.4.1 (2.4.2 is good) (they contained a bug in base64.b32decode)
- avoid python-2.6 on windows with mingw: compiler issues
- python2.4 requires pysqlite2 (2.5,2.6 does not)
- no python-3.x
- pycryptopp-0.5.15
The big feature for this release is the implementation of garbage collection, allowing Tahoe storage servers to delete shares for old deleted files. When enabled, this uses a "mark and sweep" process: clients are responsible for updating the leases on their shares (generally by running "tahoe deep-check --add-lease"), and servers are allowed to delete any share which does not have an up-to-date lease. The process is described in detail in garbage-collection.rst.
The server must be configured to enable garbage-collection, by adding directives to the [storage] section that define an age limit for shares. The default configuration will not delete any shares.
Both servers and clients should be upgraded to this release to make the garbage-collection as pleasant as possible. 1.2.0 servers have code to perform the update-lease operation but it suffers from a fatal bug, while 1.3.0 servers have update-lease but will return an exception for unknown storage indices, causing clients to emit an Incident for each exception, slowing the add-lease process down to a crawl. 1.1.0 servers did not have the add-lease operation at all.
- A super-linear algorithm in the Merkle Tree code was fixed, which previously caused e.g. download of a 10GB file to take several hours before the first byte of plaintext could be produced. The new "alacrity" is about 2 minutes. A future release should reduce this to a few seconds by fixing ticket #442.
- The previous version permitted a small timing attack (due to our use of strcmp) against the write-enabler and lease-renewal/cancel secrets. An attacker who could measure response-time variations of approximatly 3ns against a very noisy background time of about 15ms might be able to guess these secrets. We do not believe this attack was actually feasible. This release closes the attack by first hashing the two strings to be compared with a random secret.
- In most cases, HTML tracebacks will only be sent if an "Accept: text/html" header was provided with the HTTP request. This will generally cause browsers to get an HTMLized traceback but send regular text/plain tracebacks to non-browsers (like the CLI clients). More errors have been mapped to useful HTTP error codes.
- The streaming webapi operations (deep-check and manifest) now have a way to indicate errors (an output line that starts with "ERROR" instead of being legal JSON). See webapi.rst for details.
- The storage server now has its own status page (at /storage), linked from the Welcome page. This page shows progress and results of the two new share-crawlers: one which merely counts shares (to give an estimate of how many files/directories are being stored in the grid), the other examines leases and reports how much space would be freed if GC were enabled. The page also shows how much disk space is present, used, reserved, and available for the Tahoe server, and whether the server is currently running in "read-write" mode or "read-only" mode.
- When a directory node cannot be read (perhaps because of insufficent shares), a minimal webapi page is created so that the "more-info" links (including a Check/Repair operation) will still be accessible.
- A new "reliability" page was added, with the beginnings of work on a statistical loss model. You can tell this page how many servers you are using and their independent failure probabilities, and it will tell you the likelihood that an arbitrary file will survive each repair period. The "numpy" package must be installed to access this page. A partial paper, written by Shawn Willden, has been added to docs/proposed/lossmodel.lyx .
- "tahoe check" and "tahoe deep-check" now accept an "--add-lease" argument, to update a lease on all shares. This is the "mark" side of garbage collection.
- In many cases, CLI error messages have been improved: the ugly HTMLized traceback has been replaced by a normal python traceback.
- "tahoe deep-check" and "tahoe manifest" now have better error reporting. "tahoe cp" is now non-verbose by default.
- "tahoe backup" now accepts several "--exclude" arguments, to ignore certain files (like editor temporary files and version-control metadata) during backup.
- On windows, the CLI now accepts local paths like "c:dirfile.txt", which previously was interpreted as a Tahoe path using a "c:" alias.
- The "tahoe restart" command now uses "--force" by default (meaning it will start a node even if it didn't look like there was one already running).
- The "tahoe debug consolidate" command was added. This takes a series of independent timestamped snapshot directories (such as those created by the allmydata.com windows backup program, or a series of "tahoe cp -r" commands) and creates new snapshots that used shared read-only directories whenever possible (like the output of "tahoe backup"). In the most common case (when the snapshots are fairly similar), the result will use significantly fewer directories than the original, allowing "deep-check" and similar tools to run much faster. In some cases, the speedup can be an order of magnitude or more. This tool is still somewhat experimental, and only needs to be run on large backups produced by something other than "tahoe backup", so it was placed under the "debug" category.
- "tahoe cp -r --caps-only tahoe:dir localdir" is a diagnostic tool which, instead of copying the full contents of files into the local directory, merely copies their filecaps. This can be used to verify the results of a "consolidation" operation.
- The codebase no longer rauses RuntimeError as a kind of assert(). Specific exception classes were created for each previous instance of RuntimeError.
- Many unit tests were changed to use a non-network test harness, speeding them up considerably.
- Deep-traversal operations (manifest and deep-check) now walk individual directories in alphabetical order. Occasional turn breaks are inserted to prevent a stack overflow when traversing directories with hundreds of entries.
- The experimental SFTP server had its path-handling logic changed slightly, to accomodate more SFTP clients, although there are still issues (#645).
- The primary focus of this release has been writing a checker / verifier / repairer for files and directories. "Checking" is the act of asking storage servers whether they have a share for the given file or directory: if there are not enough shares available, the file or directory will be unrecoverable. "Verifying" is the act of downloading and cryptographically asserting that the server's share is undamaged: it requires more work (bandwidth and CPU) than checking, but can catch problems that simple checking cannot. "Repair" is the act of replacing missing or damaged shares with new ones.
- This release includes a full checker, a partial verifier, and a partial repairer. The repairer is able to handle missing shares: new shares are generated and uploaded to make up for the missing ones. This is currently the best application of the repairer: to replace shares that were lost because of server departure or permanent drive failure.
- The repairer in this release is somewhat able to handle corrupted shares. The limitations are:
- Immutable verifier is incomplete: not all shares are used, and not all fields of those shares are verified. Therefore the immutable verifier has only a moderate chance of detecting corrupted shares.
- The mutable verifier is mostly complete: all shares are examined, and most fields of the shares are validated.
- The storage server protocol offers no way for the repairer to replace or delete immutable shares. If corruption is detected, the repairer will upload replacement shares to other servers, but the corrupted shares will be left in place.
- read-only directories and read-only mutable files must be repaired by someone who holds the write-cap: the read-cap is insufficient. Moreover, the deep-check-and-repair operation will halt with an error if it attempts to repair one of these read-only objects.
- Some forms of corruption can cause both download and repair operations to fail. A future release will fix this, since download should be tolerant of any corruption as long as there are at least 'k' valid shares, and repair should be able to fix any file that is downloadable.
- If the downloader, verifier, or repairer detects share corruption, the servers which provided the bad shares will be notified (via a file placed in the BASEDIR/storage/corruption-advisories directory) so their operators can manually delete the corrupted shares and investigate the problem. In addition, the "incident gatherer" mechanism will automatically report share corruption to an incident gatherer service, if one is configured. Note that corrupted shares indicate hardware failures, serious software bugs, or malice on the part of the storage server operator, so a corrupted share should be considered highly unusual.
- By periodically checking/repairing all files and directories, objects in the Tahoe filesystem remain resistant to recoverability failures due to missing and/or broken servers.
- This release includes a wapi mechanism to initiate checks on individual files and directories (with or without verification, and with or without automatic repair). A related mechanism is used to initiate a "deep-check" on a directory: recursively traversing the directory and its children, checking (and/or verifying/repairing) everything underneath. Both mechanisms can be run with an "output=JSON" argument, to obtain machine-readable check/repair status results. These results include a copy of the filesystem statistics from the "deep-stats" operation (including total number of files, size histogram, etc). If repair is possible, a "Repair" button will appear on the results page.
- The client web interface now features some extra buttons to initiate check and deep-check operations. When these operations finish, they display a results page that summarizes any problems that were encountered. All long-running deep-traversal operations, including deep-check, use a start-and-poll mechanism, to avoid depending upon a single long-lived HTTP connection. webapi.rst has details.
The "tahoe backup" command is new in this release, which creates efficient versioned backups of a local directory. Given a local pathname and a target Tahoe directory, this will create a read-only snapshot of the local directory in $target/Archives/$timestamp. It will also create $target/Latest, which is a reference to the latest such snapshot. Each time you run "tahoe backup" with the same source and target, a new $timestamp snapshot will be added. These snapshots will share directories that have not changed since the last backup, to speed up the process and minimize storage requirements. In addition, a small database is used to keep track of which local files have been uploaded already, to avoid uploading them a second time. This drastically reduces the work needed to do a "null backup" (when nothing has changed locally), making "tahoe backup' suitable to run from a daily cronjob.
Note that the "tahoe backup" CLI command must be used in conjunction with a 1.3.0-or-newer Tahoe client node; there was a bug in the 1.2.0 webapi implementation that would prevent the last step (create $target/Latest) from working.
- The 12GiB (approximate) immutable-file-size limitation is lifted. This release knows how to handle so-called "v2 immutable shares", which permit immutable files of up to about 18 EiB (about 3*10^14). These v2 shares are created if the file to be uploaded is too large to fit into v1 shares. v1 shares are created if the file is small enough to fit into them, so that files created with tahoe-1.3.0 can still be read by earlier versions if they are not too large. Note that storage servers also had to be changed to support larger files, and this release is the first release in which they are able to do that. Clients will detect which servers are capable of supporting large files on upload and will not attempt to upload shares of a large file to a server which doesn't support it.
- Tahoe now includes experimental FTP and SFTP servers. When configured with a suitable method to translate username+password into a root directory cap, it provides simple access to the virtual filesystem. Remember that FTP is completely unencrypted: passwords, filenames, and file contents are all sent over the wire in cleartext, so FTP should only be used on a local (127.0.0.1) connection. This feature is still in development: there are no unit tests yet, and behavior with respect to Unicode filenames is uncertain. Please see FTP-and-SFTP.rst for configuration details. (#512, #531)
- This release adds the 'tahoe create-alias' command, which is a combination of 'tahoe mkdir' and 'tahoe add-alias'. This also allows you to start using a new tahoe directory without exposing its URI in the argv list, which is publicly visible (through the process table) on most unix systems. Thanks to Kevin Reid for bringing this issue to our attention.
- The single-argument form of "tahoe put" was changed to create an unlinked file. I.e. "tahoe put bar.txt" will take the contents of a local "bar.txt" file, upload them to the grid, and print the resulting read-cap; the file will not be attached to any directories. This seemed a bit more useful than the previous behavior (copy stdin, upload to the grid, attach the resulting file into your default tahoe: alias in a child named 'bar.txt').
- "tahoe put" was also fixed to handle mutable files correctly: "tahoe put bar.txt URI:SSK:..." will read the contents of the local bar.txt and use them to replace the contents of the given mutable file.
- The "tahoe webopen" command was modified to accept aliases. This means "tahoe webopen tahoe:" will cause your web browser to open to a "wui" page that gives access to the directory associated with the default "tahoe:" alias. It should also accept leading slashes, like "tahoe webopen tahoe:/stuff".
- Many esoteric debugging commands were moved down into a "debug" subcommand:
tahoe debug dump-cap
tahoe debug dump-share
tahoe debug find-shares
tahoe debug catalog-shares
tahoe debug corrupt-share
The last command ("tahoe debug corrupt-share") flips a random bit of the given local sharefile. This is used to test the file verifying/repairing code, and obviously should not be used on user data.
The cli might not correctly handle arguments which contain non-ascii characters in Tahoe v1.3 (although depending on your platform it might, especially if your platform can be configured to pass such characters on the command-line in utf-8 encoding). See https://tahoe-lafs.org/trac/tahoe-lafs/ticket/565 for details.
- The "default webapi port", used when creating a new client node (and in the getting-started documentation), was changed from 8123 to 3456, to reduce confusion when Tahoe accessed through a Firefox browser on which the "Torbutton" extension has been installed. Port 8123 is occasionally used as a Tor control port, so Torbutton adds 8123 to Firefox's list of "banned ports" to avoid CSRF attacks against Tor. Once 8123 is banned, it is difficult to diagnose why you can no longer reach a Tahoe node, so the Tahoe default was changed. Note that 3456 is reserved by IANA for the "vat" protocol, but there are argueably more Torbutton+Tahoe users than vat users these days. Note that this will only affect newly-created client nodes. Pre-existing client nodes, created by earlier versions of tahoe, may still be listening on 8123.
- All deep-traversal operations (start-manifest, start-deep-size, start-deep-stats, start-deep-check) now use a start-and-poll approach, instead of using a single (fragile) long-running synchronous HTTP connection. All these "start-" operations use POST instead of GET. The old "GET manifest", "GET deep-size", and "POST deep-check" operations have been removed.
- The new "POST start-manifest" operation, when it finally completes, results in a table of (path,cap), instead of the list of verifycaps produced by the old "GET manifest". The table is available in several formats: use output=html, output=text, or output=json to choose one. The JSON output also includes stats, and a list of verifycaps and storage-index strings. The "return_to=" and "when_done=" arguments have been removed from the t=check and deep-check operations.
- The top-level status page (/status) now has a machine-readable form, via "/status/?t=json". This includes information about the currently-active uploads and downloads, which may be useful for frontends that wish to display progress information. There is no easy way to correlate the activities displayed here with recent wapi requests, however.
- Any files in BASEDIR/public_html/ (configurable) will be served in response to requests in the /static/ portion of the URL space. This will simplify the deployment of javascript-based frontends that can still access wapi calls by conforming to the (regrettable) "same-origin policy".
- The welcome page now has a "Report Incident" button, which is tied into the "Incident Gatherer" machinery. If the node is attached to an incident gatherer (via log_gatherer.furl), then pushing this button will cause an Incident to be signalled: this means recent log events are aggregated and sent in a bundle to the gatherer. The user can push this button after something strange takes place (and they can provide a short message to go along with it), and the relevant data will be delivered to a centralized incident-gatherer for later processing by operations staff.
- The "HEAD" method should now work correctly, in addition to the usual "GET", "PUT", and "POST" methods. "HEAD" is supposed to return exactly the same headers as "GET" would, but without any of the actual response body data. For mutable files, this now does a brief mapupdate (to figure out the size of the file that would be returned), without actually retrieving the file's contents.
- The "GET" operation on files can now support the HTTP "Range:" header, allowing requests for partial content. This allows certain media players to correctly stream audio and movies out of a Tahoe grid. The current implementation uses a disk-based cache in BASEDIR/private/cache/download , which holds the plaintext of the files being downloaded. Future implementations might not use this cache. GET for immutable files now returns an ETag header.
- Each file and directory now has a "Show More Info" web page, which contains much of the information that was crammed into the directory page before. This includes readonly URIs, storage index strings, object type, buttons to control checking/verifying/repairing, and deep-check/deep-stats buttons (for directories). For mutable files, the "replace contents" upload form has been moved here too. As a result, the directory page is now much simpler and cleaner, and several potentially-misleading links (like t=uri) are now gone.
- Slashes are discouraged in Tahoe file/directory names, since they cause problems when accessing the filesystem through the wapi. However, there are a couple of accidental ways to generate such names. This release tries to make it easier to correct such mistakes by escaping slashes in several places, allowing slashes in the t=info and t=delete commands, and in the source (but not the target) of a t=rename command.
- Tahoe's dependencies have been extended to require the "[secure_connections]" feature from Foolscap, which will cause pyOpenSSL to be required and/or installed. If OpenSSL and its development headers are already installed on your system, this can occur automatically. Tahoe now uses pollreactor (instead of the default selectreactor) to work around a bug between pyOpenSSL and the most recent release of Twisted (8.1.0). This bug only affects unit tests (hang during shutdown), and should not impact regular use.
- The Tahoe source code tarballs now come in two different forms: regular and "sumo". The regular tarball contains just Tahoe, nothing else. When building from the regular tarball, the build process will download any unmet dependencies from the internet (starting with the index at PyPI) so it can build and install them. The "sumo" tarball contains copies of all the libraries that Tahoe requires (foolscap, twisted, zfec, etc), so using the "sumo" tarball should not require any internet access during the build process. This can be useful if you want to build Tahoe while on an airplane, a desert island, or other bandwidth-limited environments.
- Similarly, tahoe-lafs.org now hosts a "tahoe-deps" tarball which contains the latest versions of all these dependencies. This tarball, located at https://tahoe-lafs.org/source/tahoe/deps/tahoe-deps.tar.gz, can be unpacked in the tahoe source tree (or in its parent directory), and the build process should satisfy its downloading needs from it instead of reaching out to PyPI. This can be useful if you want to build Tahoe from a darcs checkout while on that airplane or desert island.
- Because of the previous two changes ("sumo" tarballs and the "tahoe-deps" bundle), most of the files have been removed from misc/dependencies/ . This brings the regular Tahoe tarball down to 2MB (compressed), and the darcs checkout (without history) to about 7.6MB. A full darcs checkout will still be fairly large (because of the historical patches which included the dependent libraries), but a 'lazy' one should now be small.
- The default "make" target is now an alias for "setup.py build", which itself is an alias for "setup.py develop --prefix support", with some extra work before and after (see setup.cfg). Most of the complicated platform-dependent code in the Makefile was rewritten in Python and moved into setup.py, simplifying things considerably.
- Likewise, the "make test" target now delegates most of its work to "setup.py test", which takes care of getting PYTHONPATH configured to access the tahoe code (and dependencies) that gets put in support/lib/ by the build_tahoe step. This should allow unit tests to be run even when trial (which is part of Twisted) wasn't already installed (in this case, trial gets installed to support/bin because Twisted is a dependency of Tahoe).
- Tahoe is now compatible with the recently-released Python 2.6 , although it is recommended to use Tahoe on Python 2.5, on which it has received more thorough testing and deployment.
- Tahoe is now compatible with simplejson-2.0.x . The previous release assumed that simplejson.loads always returned unicode strings, which is no longer the case in 2.0.x .
- Several tools have been added or updated in the misc/ directory, mostly munin plugins that can be used to monitor a storage grid.
- The misc/spacetime/ directory contains a "disk watcher" daemon (startable with 'tahoe start'), which can be configured with a set of HTTP URLs (pointing at the wapi '/statistics' page of a bunch of storage servers), and will periodically fetch disk-used/disk-available information from all the servers. It keeps this information in an Axiom database (a sqlite-based library available from divmod.org). The daemon computes time-averaged rates of disk usage, as well as a prediction of how much time is left before the grid is completely full.
- The misc/munin/ directory contains a new set of munin plugins (tahoe_diskleft, tahoe_diskusage, tahoe_doomsday) which talk to the disk-watcher and provide graphs of its calculations.
- To support the disk-watcher, the Tahoe statistics component (visible through the wapi at the /statistics/ URL) now includes disk-used and disk-available information. Both are derived through an equivalent of the unix 'df' command (i.e. they ask the kernel for the number of free blocks on the partition that encloses the BASEDIR/storage directory). In the future, the disk-available number will be further influenced by the local storage policy: if that policy says that the server should refuse new shares when less than 5GB is left on the partition, then "disk-available" will report zero even though the kernel sees 5GB remaining.
- The 'tahoe_overhead' munin plugin interacts with an allmydata.com-specific server which reports the total of the 'deep-size' reports for all active user accounts, compares this with the disk-watcher data, to report on overhead percentages. This provides information on how much space could be recovered once Tahoe implements some form of garbage collection.
- The Tahoe node is now configured with a single INI-format file, named "tahoe.cfg", in the node's base directory. Most of the previous multiple-separate-files are still read for backwards compatibility (the embedded SSH debug server and the advertised_ip_addresses files are the exceptions), but new directives will only be added to tahoe.cfg . The "tahoe create-client" command will create a tahoe.cfg for you, with sample values commented out. (ticket #518)
- tahoe.cfg now has controls for the foolscap "keepalive" and "disconnect" timeouts (#521).
- tahoe.cfg now has controls for the encoding parameters: "shares.needed" and "shares.total" in the "[client]" section. The default parameters are still 3-of-10.
- The inefficient storage 'sizelimit' control (which established an upper bound on the amount of space that a storage server is allowed to consume) has been replaced by a lightweight 'reserved_space' control (which establishes a lower bound on the amount of remaining space). The storage server will reject all writes that would cause the remaining disk space (as measured by a '/bin/df' equivalent) to drop below this value. The "[storage]reserved_space=" tahoe.cfg parameter controls this setting. (note that this only affects immutable shares: it is an outstanding bug that reserved_space does not prevent the allocation of new mutable shares, nor does it prevent the growth of existing mutable shares).
- Clients now declare which versions of the protocols they support. This is part of a new backwards-compatibility system: https://tahoe-lafs.org/trac/tahoe-lafs/wiki/Versioning .
- The version strings for human inspection (as displayed on the Welcome web page, and included in logs) now includes a platform identifer (frequently including a linux distribution name, processor architecture, etc).
- Several bugs have been fixed, including one that would cause an exception (in the logs) if a wapi download operation was cancelled (by closing the TCP connection, or pushing the "stop" button in a web browser).
- Tahoe now uses Foolscap "Incidents", writing an "incident report" file to logs/incidents/ each time something weird occurs. These reports are available to an "incident gatherer" through the flogtool command. For more details, please see the Foolscap logging documentation. An incident-classifying plugin function is provided in misc/incident-gatherer/classify_tahoe.py .
- If clients detect corruption in shares, they now automatically report it to the server holding that share, if it is new enough to accept the report. These reports are written to files in BASEDIR/storage/corruption-advisories .
- The 'nickname' setting is now defined to be a UTF-8 -encoded string, allowing non-ascii nicknames.
- The 'tahoe start' command will now accept a --syslog argument and pass it through to twistd, making it easier to launch non-Tahoe nodes (like the cpu-watcher) and have them log to syslogd instead of a local file. This is useful when running a Tahoe node out of a USB flash drive.
- The Mac GUI in src/allmydata/gui/ has been improved.
This release makes the immutable-file "ciphertext hash tree" mandatory. Previous releases allowed the uploader to decide whether their file would have an integrity check on the ciphertext or not. A malicious uploader could use this to create a readcap that would download as one file or a different one, depending upon which shares the client fetched first, with no errors raised. There are other integrity checks on the shares themselves, preventing a storage server or other party from violating the integrity properties of the read-cap: this failure was only exploitable by the uploader who gives you a carefully constructed read-cap. If you download the file with Tahoe 1.2.0 or later, you will not be vulnerable to this problem. #491
This change does not introduce a compatibility issue, because all existing versions of Tahoe will emit the ciphertext hash tree in their shares.
- Tahoe now requires Foolscap-0.2.9 . It also requires pycryptopp 0.5 or newer, since earlier versions had a bug that interacted with specific compiler versions that could sometimes result in incorrect encryption behavior. Both packages are included in the Tahoe source tarball in misc/dependencies/ , and should be built automatically when necessary.
- Web API directory pages should now contain properly-slash-terminated links to other directories. They have also stopped using absolute links in forms and pages (which interfered with the use of a front-end load-balancing proxy).
- The behavior of the "Check This File" button changed, in conjunction with larger internal changes to file checking/verification. The button triggers an immediate check as before, but the outcome is shown on its own page, and does not get stored anywhere. As a result, the web directory page no longer shows historical checker results.
- A new "Deep-Check" button has been added, which allows a user to initiate a recursive check of the given directory and all files and directories reachable from it. This can cause quite a bit of work, and has no intermediate progress information or feedback about the process. In addition, the results of the deep-check are extremely limited. A later release will improve this behavior.
- The web server's behavior with respect to non-ASCII (unicode) filenames in the "GET save=true" operation has been improved. To achieve maximum compatibility with variously buggy web browsers, the server does not try to figure out the character set of the inbound filename. It just echoes the same bytes back to the browser in the Content-Disposition header. This seems to make both IE7 and Firefox work correctly.
Tahoe is slowly acquiring convenient tools to check up on file health, examine existing shares for errors, and repair files that are not fully healthy. This release adds a mutable checker/verifier/repairer, although testing is very limited, and there are no web interfaces to trigger repair yet. The "Check" button next to each file or directory on the wapi page will perform a file check, and the "deep check" button on each directory will recursively check all files and directories reachable from there (which may take a very long time).
Future releases will improve access to this functionality.
- A "check-grid" script has been added, along with a Makefile target. This is intended (with the help of a pre-configured node directory) to check upon the health of a Tahoe grid, uploading and downloading a few files. This can be used as a monitoring tool for a deployed grid, to be run periodically and to signal an error if it ever fails. It also helps with compatibility testing, to verify that the latest Tahoe code is still able to handle files created by an older version.
- The munin plugins from misc/munin/ are now copied into any generated debian packages, and are made executable (and uncompressed) so they can be symlinked directly from /etc/munin/plugins/ .
- Ubuntu "Hardy" was added as a supported debian platform, with a Makefile target to produce hardy .deb packages. Some notes have been added to debian.rst about building Tahoe on a debian/ubuntu system.
- Storage servers now measure operation rates and latency-per-operation, and provides results through the /statistics web page as well as the stats gatherer. Munin plugins have been added to match.
- Tahoe nodes now use Foolscap "incident logging" to record unusual events to their NODEDIR/logs/incidents/ directory. These incident files can be examined by Foolscap logging tools, or delivered to an external log-gatherer for further analysis. Note that Tahoe now requires Foolscap-0.2.9, since 0.2.8 had a bug that complained about "OSError: File exists" when trying to create the incidents/ directory for a second time.
- If no servers are available when retrieving a mutable file (like a directory), the node now reports an error instead of hanging forever. Earlier releases would not only hang (causing the wapi directory listing to get stuck half-way through), but the internal dirnode serialization would cause all subsequent attempts to retrieve or modify the same directory to hang as well. #463
- A minor internal exception (reported in logs/twistd.log, in the "stopProducing" method) was fixed, which complained about "self._paused_at not defined" whenever a file download was stopped from the web browser end.
- The new CLI code uses an scp/rsync -like interface, in which directories in the Tahoe storage grid are referenced by a colon-suffixed alias. The new commands look like:
- tahoe cp local.txt tahoe:virtual.txt
- tahoe ls work:subdir
- More functionality is available through the CLI: creating unlinked files and directories, recursive copy in or out of the storage grid, hardlinks, and retrieving the raw read- or write- caps through the 'ls' command. Please read CLI.rst for complete details.
- Several new pages were added to the web API:
- /helper_status : to describe what a Helper is doing
- /statistics : reports node uptime, CPU usage, other stats
- /file : for easy file-download URLs, see #221
- /cap == /uri : future compatibility
- The localdir=/localfile= and t=download operations were removed. These required special configuration to enable anyways, but this feature was a security problem, and was mostly obviated by the new "cp -r" command.
- Several new options to the GET command were added:
- t=deep-size : add up the size of all immutable files reachable from the directory
- t=deep-stats : return a JSON-encoded description of number of files, size distribution, total size, etc
- POST is now preferred over PUT for most operations which cause side-effects.
- Most wapi calls now accept overwrite=, and default to overwrite=true
- "POST /uri/DIRCAP/parent/child?t=mkdir" is now the preferred API to create multiple directories at once, rather than ...?t=mkdir-p .
- PUT to a mutable file ("PUT /uri/MUTABLEFILECAP", "PUT /uri/DIRCAP/child") will modify the file in-place.
- more munin graphs in misc/munin/
- tahoe-introstats
- tahoe-rootdir-space
- tahoe_estimate_files
- mutable files published/retrieved
- tahoe_cpu_watcher
- tahoe_spacetime
- zfec 1.1.0
- foolscap 0.2.8
- pycryptopp 0.5
- setuptools (now required at runtime)
- The mutable-file handling code (mostly used for directories) has been completely rewritten. The new scheme has a better API (with a modify() method) and is less likely to lose data when several uncoordinated writers change a file at the same time.
- In addition, a single Tahoe process will coordinate its own writes. If you make two concurrent directory-modifying wapi calls to a single tahoe node, it will internally make one of them wait for the other to complete. This prevents auto-collision (#391).
- The new mutable-file code also detects errors during publish better. Earlier releases might believe that a mutable file was published when in fact it failed.
- The node now monitors its own CPU usage, as a percentage, measured every 60 seconds. 1/5/15 minute moving averages are available on the /statistics web page and via the stats-gathering interface.
- Clients now accelerate reconnection to all servers after being offline (#374). When a client is offline for a long time, it scales back reconnection attempts to approximately once per hour, so it may take a while to make the first attempt, but once any attempt succeeds, the other server connections will be retried immediately.
- A new "offloaded KeyGenerator" facility can be configured, to move RSA key generation out from, say, a wapi node, into a separate process. RSA keys can take several seconds to create, and so a wapi node which is being used for directory creation will be unavailable for anything else during this time. The Key Generator process will pre-compute a small pool of keys, to speed things up further. This also takes better advantage of multi-core CPUs, or SMP hosts.
- The node will only use a potentially-slow "du -s" command at startup (to measure how much space has been used) if the "sizelimit" parameter has been configured (to limit how much space is used). Large storage servers should turn off sizelimit until a later release improves the space-management code, since "du -s" on a terabyte filesystem can take hours.
- The Introducer now allows new announcements to replace old ones, to avoid buildups of obsolete announcements.
- Immutable files are limited to about 12GiB (when using the default 3-of-10 encoding), because larger files would be corrupted by the four-byte share-size field on the storage servers (#439). A later release will remove this limit. Earlier releases would allow >12GiB uploads, but the resulting file would be unretrievable.
- The docs/ directory has been rearranged, with old docs put in docs/historical/ and not-yet-implemented ones in docs/proposed/ .
- The Mac OS-X FUSE plugin has a significant bug fix: earlier versions would corrupt writes that used seek() instead of writing the file in linear order. The rsync tool is known to perform writes in this order. This has been fixed.