Difference between revisions of "PM Software Stack"
|Line 24:||Line 24:|
== Changelog ==
== Changelog ==
=== Changes 2015 ===
=== Changes 2015 ===
==== 30/11/2015 ====
==== 30/11/2015 ====
Revision as of 01:40, 8 December 2015
PMSS, short of PM Software Stack is a compilation of scripts to manage single server side seedbox configuration, turning instantly and conveniently an regular Debian 7.0 server into a seedbox. The PMSS does not contain multi-server management utilities nor clustering support out-of-box, but does include PM Master GUI automatic remote update features. Debian 7 support is considered stable. PMSS currently only supports rTorrent+ruTorrent stack. Multi-Server management is done via API with central server, with strict authentication and limited scope for security.
- 1 General features
- 2 Using PMSS
- 3 Changelog
- 3.1 Changes 2015
- 3.1.1 08/12/2015
- 3.1.2 30/11/2015
- 3.1.3 18/11/2015
- 3.1.4 12/11/2015
- 3.1.5 26/10/2015
- 3.1.6 24/10/2015
- 3.1.7 16/10/2015
- 3.1.8 12/10/2015
- 3.1.9 11/10/2015
- 3.1.10 10/10/2015
- 3.1.11 09/10/2015
- 3.1.12 04/10/2015
- 3.1.13 02/10/2015
- 3.1.14 01/10/2015
- 3.1.15 30/09/2015
- 3.1.16 29/09/2015
- 3.1.17 28/09/2015
- 3.1.18 27/09/2015
- 3.1.19 04/09/2015
- 3.1.20 30/08/2015
- 3.1.21 11/08/2015
- 3.1.22 10/08/2015
- 3.1.23 02/06/2015
- 3.1.24 06/04/2015
- 3.1.25 05/04/2015
- 3.1.26 02/04/2015
- 3.1.27 01/04/2015
- 3.1.28 31/03/2015
- 3.1.29 07/03/2015
- 3.1.30 27/02/2015
- 3.1.31 26/02/2015
- 3.1.32 02/02/2015
- 3.1.33 31/01/2015
- 3.1.34 30/01/2015
- 3.1.35 21/01/2015
- 3.1.36 19/01/2015
- 3.2 Changes 2014
- 3.3 Changes 2013
- 3.4 Changes 2012
- 3.4.1 7/12/2012
- 3.4.2 1/11/2012
- 3.4.3 31/10/2012
- 3.4.4 30/10/2012
- 3.4.5 14/10/2012
- 3.4.6 22/09/2012
- 3.4.7 17/09/2012
- 3.4.8 10/06/2012
- 3.4.9 22/05/2012
- 3.4.10 24/04/2012
- 3.4.11 06/04/2012
- 3.4.12 27/03/2012
- 3.4.13 21/03/2012
- 3.4.14 20/03/2012
- 3.4.15 04/03/2012
- 3.4.16 12/02/2012
- 3.4.17 10/02/2012
- 3.4.18 09/02/2012
- 3.4.19 08/02/2012
- 3.4.20 05/02/2012
- 3.4.21 04/02/2012
- 3.4.22 31/01/2012
- 3.4.23 28/01/2012
- 3.5 Changes 2011
- 3.1 Changes 2015
- Semi-automatic installation
- Fast and easy creation of new user accounts with quota and rTorrent resource limits, etc.
- Easy user resource reconfiguration
- Autonomous, idempotent Lighttpd & nginx configuration
- Single Lighttpd process per user with custom config per user (including php config)
- Public web hosting directory availability for users
- Autonomous configuration of basic server features
- Compiling rTorrent + libTorrent + Quota + XMLRPC from source.
- Multiple redundancy levels for rTorrent
- Lighttpd redundancy / autorestart
- Basic server optimizations to maximize performance
- Terminate, Suspend/Unsuspend users
- Webdav for users
- Other basic management scripts
- (GUI) Change welcome page quota display to use Kibibyte format to avoid confusion.
A privileged user could use an internet download manager to basicly DOS the server with huge amount of threads trying to download large files (gigs in size), with sufficient thread quantity eventually linux kernel couldn't schedule any I/O time for disk nor ram for essential applications such as SSH. This could not be done by unprivileged user since requirement is very large file sizes. This would lead to a race condition as nginx wants to cache as fast as possible, hence "downloading" from user lighttpd process as fast as possible, which results in heavy RAM consumption and 'especially' heavy disk I/O activity - with sufficient threads scheduling breaks down.
- template.lighttpd: Introduce per connection rate limit (2048k/s) and global rate limit (12800k/s)
- template.nginx-user: Introduce user con limit to 16, rate limit (2048k/s) after 100MiB
- template.nginx-user: Introduce public con limit to 8, rate limit (512k/s) after 100MiB
- tmeplate.nginx: Add shared memory zone for connection limits
- util/userConfig.php: Lower limit on filesLimit for very small disk quotas, set to 15000
- (GUI) welcome.php: Display of /etc/seedbox/config/vendorWelcome moved to top of the welcome page
- cron: renice mono and ionice mktorrent added
- update-step2: install some perl modules
- .lighttpd.conf: Add include_shell for .lighttpd/custom for user custom settings
- .lighttpd.conf: Add rutorrent no cache headers, and also add mod_setenv to be loaded
- rtorrent.rc template: Increased base buffers
- rutorrent/plugins/hddquota: Bumped version to 1.15
- ruTorrent: Updated to version 3.7
- install.sh: Bumped rTorrent/libTorrent to 0.9.6/0.13.6, bumped xmlrpc-c to revision 2776
- rTorrent: Updated to 0.9.6/0.13.6
- update-step2: Make openvpn config package even if this is not an install run
- update-step2: fix flexget install if clause
- pulsedBox: Login for mds now fixed
- ruTorrent: Changed URI for css & js files to make sure cached copies are not attempted with new version
- update-step2: put back in to update ruTorrent index.html
- update-step2: Configure OpenVPN, Create certs, create client config package and provide files to users at /home/openvpn-**servername**.ovpn and /home/openvpn-**servername**.crt where as dots (.) have been replaced with dashes (-)
- update-step2: Make a tarball of OpenVPN config in skel, and provide it to userspace as well.
- setupNetwork.php: Create OpenVPN masquerade rules
- (GUI) welcome.php: Add beta disclaimer to ownCloud
- update-step2: Oops, openvpn config should probably reside under www
- update-step2: trim hostname before using for filename
- update-step2: flexget installation string match fix
- update-step2: Install mkvtoolnix, add mkvtoolnix repo
- userConfig: Refactoring on ruTorrent stuff
- update-step2: Refactoring on ruTorrent stuff
- skel/www/rutorrent: Updated to latest with new plugins
- etc/seedbox/config/template.rutorrent.config: Updated to new
- etc/seedbox/config/template.rutorrent.access: Updated to new
- lib/update: Add rutorrent config function
- userConfig: Change to using that function
- update-step2: Reconfigure ruTorrent
- update-step2: Reordering all together everything related to ruTorrent on per user basis and some refactoring
- ruTorrent Update Latest version, should migrate settings etc. and reconfig properly :)
- update-step2: removal of removing check port plugin. Seems to be working ok again?
- update-step2: Install flexget, buildtools32, python-pip
- install.sh: Slight reordering of package installs to make initial setup even faster (human time wise)
- install.sh: Add lftp to be installed
- update-step2: Add lftp to be installed
- php.ini: Default memory max increased to 512MiB, upload max filesize to 16GiB and max simultaneous uploads to 50
- addUser.php: refactoring and adding a chown to make sure everything is setup allright in regards of retrackers
- update-step2: Another fix for retrackers related stuff
- userPermissions.php: Couple small fixes related to the above
- Small update to rTorrent + libtorrent, faster tracker check interval default setting, and close idle connections faster
- install.sh: Refactoring to have all questions at the beginning
- install.sh: Added many of the pkgs from update-step2 here, so we can later on remove them from update-step2
- util/setupNetwork.php: commented out link speed determination - not required
- install.sh: sysfs added net.ipv4.ip_forward = 1
- setupNetwork.php: added enabling ipv4 ip forward
- userPermissions.php: path fixes
- addUser.php: Typo fix
- (GUI) welcome.php: Updated with owncloud install link, and removed the need to visit setup-owncloud-finish.php
- (GUI) Frames: Added owncloud tab if present
- skel/www/setup-owncloud-finish.php: removed
- update-step2: removed setup-owncloud-finish.php, and made owncloud setup file insertion conditional
- (GUI) welcome.php: Organized the download links and fixed them :)
- (GUI) welcome.php: Fixed quota warning var giving notices on error log
- (GUI) stats.php: Changed getting IP to remote service
- update-step2, addUser.php, userPermissions.php: Continuum of the earlier, apparently there's a slight logic error on ruTorrent preventing torrents directory from being created
- update-step2: Fixed permissions bug introduced by yesterday's changes
- addUser.php: Same fix as above
- userPermissions.php: Fixing retroactively these. This is executed on server update.
- checkInstances: Killing possible rTorrent processes fix.
- root cron: Change check Lighttpd for every 5 mins, delay beginning 30 secs
- error-502: Wording change
- addUser & update-step2: Adding retracker plugin config
- createNginxConfig: Trim port number added
- configureLighttpd: Increased potential port range
- terminateUser: Remove lighttpd port config and nginx config
- terminateUser: Some wording changes shown to user.
- Nginx: Custom 502 error page
- util/createNginxConfig.php: Add template for proxy_params
- Nginx: Increase proxy read timeout to 120s
- skel/.lighttpd/php.ini: Increase max execution time to 90s and increase max memory to 256M per process! Increase Max file upload size from 2M to 32M, POST max size from 8MB to 32MB
- update-step2: Fix owncloud setup files path.
- update-step2: Add php.ini to the files to be updated
- update-step2: Install packages flac, lame, lame-doc and mp3diags
- cron/diskIostat.php: Add disk quantity
- cron/diskIostat.php: fix output camelCase
- Added ownCloud installers - Install is now very simple and easy!
- template.lighttpd: Added ownCloud directives for security
- util/update-step2.php: Added update-rc.d lighttpd remove
- util/update-step2.php: Added copying latest ownCloud setup files
- cron/diskIostat.php: bug fix on device selection, on some edge cases the grouping was chosen incorrectly
- cron/diskIostat.php: Added cron job to gather current iostat info, 120 sec data
- cron.d/pmss: Run diskIostat every 15 mins
- util/userPermissions.php: Fixed xargs argument bug for delimiter
- cron/diskIostat.php: Added logging to -history file as well for historic data, for potential later needs
- userPermissions.php: Find all directories under user account and chmod them to 751 (default directory permissions: rwxr-x--x).
- userPermissions.php: Chmod .ssh if the directory exists
- userPermissions.php: Chowning as well to make sure right user & group owns the directory.
- updates-step2.php: Added ZNC and ZNC-EXTRA packages
- configureLighttpd.php: Typo fix
Some bug fixing to yesterday's release
- userPermissions.php: chmod 771 couple temp dirs for each user's lighttpd
- update-step2.php: apt-get remove go git mercurial added since these packages are not needed
This release is all about converting to per user lighttpd processes and several bug fixes, and hence enhancing service quality and security while opening the door for future new feature developments. This also adds capability for public web hosting from the seedbox.
- install.sh: remove packages golang git mercurial
- update-step2: remove packages golang git mercurial
- install.sh: also put into fstab vfsv1 instead of vfsv0
- update-step2: remove migration to vfsv1 since this is prone to breaking quota data. need to look for better migration method.
- etc/seedbox/config/template.lighttpd added and created
- etc/skel/lighttpd directory added
- etc/seedbox/config/template.nginx-user added and created
- etc/seedbox/config/template.nginx added and created
- util/configureLighttpd.php: Created configurator for per user lighttpd configs
- etc/skel/lighttpd/compress directory added
- etc/skel/lighttpd/upload directory added
- template.lighttpd: both password protected (normal GUI) and public web directories included in the config where user can run whatever they please.
- changePw.php: changes now the per user htpasswd file (username/.lighttpd/.htpasswd)
- addUser.php: use changePw.php script instead of set in the file
- addUser.php: if password rand has been passed, use a random password.
- addUser.php: remove chmod rules
- addUser.php: if runtime/trafficLimits dir does not exist, create it
- addUser.php: use configureLighttpd.php script instead of setting it up hardcoded within the script
- addUser.php: change expire date to 2100-01-01
- addUser.php: Do not add user to www-data group
- util/createNginxConfig.php: Create per user proxy config files (idempotent) and set default nginx config from template
- createNginxConfig: Create SSL config.
- template.nginx: Include SSL config
- scripts/startLighttpd added and created
- scripts/cron/checkLighttpdInstances.php added and created
- update-step2: Added all the lighttpd configuring, installing packages, managing processes etc. there. This should be the bulk of conversion
- addUser.php: create nginx config, and restart nginx
- config/root.cron: Comment out checkHttpd for now and add checkLighttpdInstances in there
- userConfig.php: Do not launch traffic limit script if none has been passed
- lib/rtorrentConfig.php: If no logger, do not echo the contents (rel: addUser.php needlessly echoing rtorrent config)
- changePw.php: if password defined it's not set to correct variable and thus cannot set password
- changePw.php: Also check for existence of per user htpasswd file!
- util/checkUserHtpasswd.php: Created to move the user's password from global to per user.
- update-step2: run checkUserHtpasswd.php and restart all lighttpd processes
- update-step2: lots of permissions updates
- update-step2: remove some deprecated, commented out code
- util/userPermissions.php: created this to set all the folder and file permissions for the user directory. Now they are in one place!
- addUser.php: use userPermissions.php
- update-step2: use userPermissions.php
- template.lighttpd: Use per user php.ini and change fcgi settings a bit
- skel/.lighttpd/php.ini added
- configureLighttpd.php: Add .lighttpd dir if it doesn't exist yet, separately check for php.ini as well.
- update-step2: Do not remove autotools plugin if it is present
- update-step2: add package ntp
- checkUserHtpasswd.php: Chown the newly created .htpasswd file
- userPermissions.php: set htpasswd file perms as well
- update-step2: move earlier in the process to make the move to nginx etc. for working conversions. make sure lighttpd processes are stopped.
- update.php: remove recreateLighttpdConfig & restart, replace with nginx
- release packager: include .lighttpd directory into the skel package.
- userPermissions.php: some chowns and extra rules required for smooth conversion
- terminateUser.php: replace lighttpd related commands with nginx replacements
- terminateUser.php: remove deleting htpasswd. Add deleting home dir in case userdel does not remove it
- recreateUser.php: Changed to fit the new model.
- configureLighttpd.php: Also check for public html directory
- update-step2: Do the configs twice to be certain, as another update step might have affected.
- quotaFix.php: added -n flag for quotacheck to automatically answer questions
- install.sh: Update quota vfsv0 to vfsv1 to support large quotas
- update-step2: Update quota vfsv0 to vfsv1 to support large quotas, and commit change + execute quotaFix
- update-step2: Check if user is suspended, if so do not make updates
- update-step2: Reinstalling unpack plugin for ruTorrent which was earlier removed for abuse causing extremely high loads on a server
- update-step2: moved the location of nzbdrone repos to the normal repo list, cannot move sonarr because https transport needs to be first installed.
- update-step2: Refactored stopping & disabling services not needed for "global" user
- update-step2: added apt-get -f install -y to fix potentially broken or missing dependencies
- update-step2: Forgot to add -y toggle for sabnzbdplus package install requiring manual intervention
- install.sh: Added locate apt package, since some minimal installs are missing this
- update-step2: Added locate apt package
- install.sh: Added python-pycurl, python-crypto, python-central packages
- update-step2: Install pyLoad and dependencies python-pycurl, python-crypto, python-central, golang, git, mercurial
- install.sh & update-step2: Install packages gcc g++ gettext python-cheetah curl fuse glib-networking libglib2.0-dev libfuse-dev apt-transport-https
- update-step2: Compile & install Megatools from source
- update-step2: Re-ordered package installs as some installation & compilations were attempted BEFORE installing the dependiences.
- update-step2: get, compile and install Mono 3.8.0
- update-step2: Install Sonarr / Nzbdrone. To start it execute mono /opt/NzbDrone/NzbDrone.exe and then browse to http://servername.pulsedmedia.com:8989 - remember to change port and set security + authentication credentials!
- update-step2: To make sure they are not running for non-specific seedbox user, stop btsync and pyload, and update-rc.d disable them
- update-step2: Install sabnzbdplus
- update-step2: ntpdate for some reason was not installed by default - included this on update
- update-step2: now vnstat config is checked on every update
- update-step2: vnstatConfig also sets maxbandwidth higher
- apt-get clean & update for some reason missing from update.php - added, and also temporarily for step2
- Security update on lighttpd config.
- btsync sample config now in skel as .btsync.conf-sample
- btsync binary added to /usr/bin/btsync now.
- rutorrent/share/settings/rss folder was missing, created to skel and added to update for creating it
- trafficStats: Added logging also date & time. For some reason this was not logged.
- trafficLog: removed serverApi calls as cnc is not utilized anymore
- skel/www/rutorrent/plugins/check_port removed as well. was prior removed only on update. this plugin doesn't function anymore as expected.
- some debug logging added for trafficStats cron
- userTransfer script now also migrated ruTorrent settings dir
- Even more issues with updating rTorrent config in update-step2, removed it from use for now
- Update-Step2: Fix incorrect ram allocation when updating user .rtorrent.rc
- Remove check_port plugin which has not functioned correctly in a long time now
- hddquota/action.php: Bug fix for incorrect parsing of disk space - oddly enough worked on most cases and bugged only on edge cases. This file is updated on server update
- rtorrent communication xmlrpc scgi class basics done - it's actually functional now!
- /etc/seedbox/runtime/trafficLimits dir added
- addUser.php now saves traffic limit in *GB* to the aforementioned directory
- util/userTrafficLimit.php made to match
- cron/trafficLimits.php matched and functional. Slight refactoring as well and commenting
- cron/trafficLimits.php: Accounts for normal 20Mbps accounts and limits these to 5Mbps.
- cron/trafficLimits.php: Removal of limiter enabled so user returns to normal quicker
- update-step2: Now also executes setupRootCron - this is the first time in a REALLY long time that the crons gets updated :O
- /etc/seedbox/config/root.cron : Now includes traffic limit.
- Welcome page now displays bonus disk space if information is available. Takes a while as the data is rolled out.
- Welcome page title now as well vendor name.
- new rtorrentTemplate file for setting port range
- rtorrentConfig now sets port range to single port
- dht and scgi port ranges changed
- Another rTorrent update, there was a regression on thread names, this is now fixed
- rtorrent config: Bumped for larger range of possible scgi ports for rtorrent
- Added dhtPort variable for lib rtorrentConfig.
- New rtorrent config template file, added the new config variable, max uploads global into the template, and increased range of ports
- Changed allocations for less upload slots per unit of ram, since RAM amounts have quadrupled since originally setting this while disk speeds are practically the same.
- lib/rtorrentConfig: Added readConfig and readUserConfig methods
- lib/rtorrentConfig: Updated headers, version, copyright.
- lib/rtorrentXmlrpc: Beginnings of rtorrent communication lib
- rtorrent compile: changed this to happen in /tmp, there is a regression where trying to compile libtorrent elsewhere will fail, probably rtorrent too!
- new rtorrent version is based on the last one, with few select updates manually applied
- install.sh changed to reflect the updated version
- lib/rtorrentConfig: Order of setting variables was incorrect, leading to a configuration bug which would lead to rTorrent not starting
- util/update-step2: Removed old .rtorrent.rc updates (umask etc. related, very deprecated), and added new configure update based on the readConfig (scgi port won't change etc.!). However with local template it's likely no practical changes happen.
- Added new callback data: User traffic data over the past month
- Added first piece of callback data for new management system, diskUsage under util/remote
- Minor revisions to install.sh and code cleanup
- Update to latest rTorrent, 0.9.4/0.13.4
- terminateUser.php: added groupdel as well for the user group
- Slight refactoring of terminateUser.php
- terminateUser.php: --confirm now first, before username
- Update on versioning issue with installing libmediainfo, mediainfo and libzen. fixed and these will be now installed on wheezy as well.
- libdigest-sha1-perl pkg doesn't exist on wheezy so it was preventing several other packages from installing
- libdigest-sha-perl pkg now installed on wheezy
- Styling of info tab, info.php/stats.php
- pulsedBox upload: Fixed for new style urls, should work with both subdomain and subfolder setups now.
- Installer package updates so that PMSS should install into Debian 7 without a hitch now, previously 2 packages were missing.
- userTransfer.php: Tries to retry 20 times with 15-120sec delay. Necessary since OVH has introduced new bw limitations: Connections are cut at random, exact rules unknown but result is that transferring user data connections are cut at random. This has been tested via multiple DCs to be true, from multiple OVH DCs.
- userTransfer.php: At the end display user's old server password IN CASE the 20 retries is not sufficient.
- install.sh: updated libxmlrpc URI to the new one.
- update-step2: Added wheezy repos
- update-step2: Made wheezy repo update
- update-step2: Some refactoring in regards of repo updates
- cron/trafficLog: Updated traffic parsing to support wheezy
- install.sh: Moved apt-get install rar unrar to it's own command due to OVH wheezy template issues
- install.sh: Removed some commented out things, blast from past type of things
- install.sh: Updated queue read ahead to double size
- install.sh: Updated header comments
- install.sh: moving around php5 installation due to continuing OVH template issues
- install.sh: looks like the OVH Debian 6 wants to install apache2 with php5-geoip, so moved around the php5 modules and after their installation remove apache2
- install.sh: Added code for removing OVH installed Apache2 which is quite hard to get fully removed, and causes PMSS installation to fail
- update-step2: Added packages required for autodl irssi
- update-step2: Added creation of /etc/autodl.cfg
- trafficStats month data traffic is now for the past month, not since beginning of calendar month.
- addUser: fixed typo (use of undefined constant)
- addUser: fixed argv optionals checking
- userConfig: added several checks for user existing
- created userTrafficLimit under utils to set the traffic limit
- addUser: fixed typo in pathname for traffic limit data
- userConfig: added setting traffic limit
- userConfig: now restarts rTorrent (near instant)
- created trafficLimits cron which checks traffic limits. Communications module is still required before traffic limits can be enabled
- update-step2: added smartmontools to pkgs to be installed
- trafficStats now parses 23k lines before 1st of August, 2013 because the traffic logging speed has been lowered at 17th April update -> showing just 1½ weeks initially. Time limit for that so it will not slow down always.
- Added lib/traffic.php for trafficStatistics class
- Refactoring showTraffic
- stats.php shows this traffic data on info page now
- Added cron/trafficStatistics.php which saves traffic data to .trafficData periodically (once per hour)
- Decreased traffic data saving to once per 5 minutes
- Also now monitoring since beginning of the month
- showTraffic now uses the "cached" data saved by trafficStatistics
- util/userTransfer.php now puts in request for rTorrent restart after transfer is complete
- addUser optional argument for traffic limit in TBs
- update-step2 now checks, creates and chmods a bunch of required directories
- Added new remote calls to serverApi, had forgotten this
- Dropped traffic logging to 4 min intervals, unfortunately this means showTraffic for 15mins is totally skewed, and maybe noticeable skew on the hourly
- updateQuotas cron now every second minute
- checkInstances now every 10mins from 15mins, making faster 2nd level redundancy for rTorrent
- changed updateQuota cron's API calls to base the call time to modify time of /scripts ie. roughly time the system was installed. This way the requests don't get pooled up at same minute from all servers
Release of 10th of Jan features as well. Several bug fixes in this release.
- showTraffic now prunes erroneous data from the log
- trafficLog cron now checks for erroneous data and logs it
- updateQuotas sends the user quota and df data only once per hour
- Absolute path to iptables on setupNetwork + makeMonitoringRules so it actually works on boot time :)
Waiting for release, pending server side support.
- updateQuotas now reports user quota to API server as well
- updateQuotas reports df to API server
- lib/users.php error message when issues with /home
- setupNetwork won't try to enact empty ruleset anymore
- fileCopy updated help message. This is pretty much useless nowadays in any cas and might be deprecated/removed in future release
One of the DCs changed debian installation template so fixes for that. Issues with rTorrent compilation, lighttpd etc.
- Changes on install.sh package removals (apache2 not getting removed??)
- Removed munin installation from install.sh
- Added installation of pkg-config make openssl
- Fixed on update-step2 rtorrent compilation
- Install.sh now executes /scripts/update.php but does not do API key setup, it's done on the update script
Quick performance related hot-fix, and one performance update.
- trafficLog now deletes the traffic log file from tmp, this was causing slowdowns etc.
- rTorrent peers better configuration, min from 14 to 6 and max from 21 to 32 per "resource block" (Resource block=250Mb of rTorrent ram). This affects only new accounts, reconfigured and recreated.
Work on the new API - note this is still largely untested so far
- API create jobs dir + chmod added
- API function to make calls to server added
- API function to create authorization for remote calls added
- API make call userTraffic added
- trafficLog cron fix users check
- trafficLog reports traffic to server
- serverApi typos fixed (had not been tested before)
- serverApi create dirs bugs fixed
- serverApi logger was missing newline and has been added
- serverApi some commenting added
- fixed timestamp on scriptsInc writeLog
- trimming some elements in serverApi which due to unrelated reasons have newline at end
This update also releases the changes of 7/12/2012 which were postponed due to QA reasons.
- Removal of netcat packages in update-step2 and install script
- Added count checks for users in makeMonitoringRules and recreate lighttpd rules scripts
- Copied some standard packages from update-step2 to install.sh
- Removed some apt packages from update-step2 which has been on install.sh for a *Really* long time
- Removed some irrelevant apt-get lines from install -> duplication
- Added p7zip-full package to update-step2 installation
- Fix showtraffic weekly data, was only considering ~2/5ths of the data
- ShowTraffic compares now user count, not the string returned in order to determine if there is users setup
- More uniform ShowTraffic display output, which is also programmatically easy to parse
This update is pending for release.
- Removal of root.cron.additional config from usage, as it does not conform to good practices
- Removal of deprecated code from update-step2 relating to vnstat and root.cron.additional
- Removing root.cron.additional on update-step2
- Removal of deprecated code from setupRootCron
- Removal of /var/run/screen/S-[username] during user termination
- Executing setupNetwork on user addition
- Added tor repos for debian squeeze
- Update-Step2 now checks squeeze repos against the actual configured, not hard coded sha1 string
- Removal of deprecated apt update from beginning of update-step2
- Some commenting and refactoring on update-step2
- Remove munin if this is a .pulsedmedia.com server
- Adduser now logs to /var/log/pmss
- Create remote api key
- Salt for local api key
- Salt for remote api key
- Enhanced algo for remote and local api key, more factors etc. making it more distinguished
- chmod api keys
- Update-Step2: if no remote api key present, remove local key and execute API key creation
- rename lib/api.php to lib/serverApi.php
- Full rewrite of serverApi, pretty much complete server api infrastructure including command map for: addUser, terminateUser, setupNetwork, recreateUser
- Removed updating from OVH kernel to standard debian kernel
- No fair share / QoS rules done if OVH kernel is present
- Setup network (monitoring, QOS) on update step 2
- Changed root.cron.additional vnstat lines to conform cron.d format
- If debian 6 removal of vnstat -u cronjobs
- setupRootCron both cron force-reload and restart to ensure new cron will be enabled
- Temporarily disable all QoS & Fair share, unintentional effects
- Display traffic used per user on week, daily, hourly and 15min basis. Note: 15min is slightly inaccurate due to datalogging delays (2min interval), hourly is within acceptable error margin
- Fine-tuning of fair share
- QoS is always setup and cleared.
- recreateUser: Added a check if backup dir already exists.
- Fixed var/www/index.php redirection
- Added script to create traffic monitoring iptables rules
- Created /scripts/cron
- moved updateQuotas, checkInstances, checkHttpd to cron dir
- created /var/log/pmss
- Changed checkInstances + checkHttpd logging to /var/log/pmss dir
- Refactored cron tasks to utilize /etc/cron.d NOTE: If you have customized root crontab this may overwrite the changes!
- Removed "tester" from user filtration list and added srvapi, pmcseed, pmcdn to the filtration list
- Beginnings of network management cron
- If an OVH kernel is detected on Deb Squeeze, install standard and set it as default. Note: No Deb5 support yet - only changed IF vanilla kernel is not installed
- Added packages ethtool, elinks, links, lynx
- Added Basic QoS to ensure quality of service and fairness in BW sharing - enabled at boot time. Note: Does not work on OVH kernel - OVH has removed support for these in their kernel
- Cron jobs now also save their error output to log files
- Traffic logging script and /var/log/pmss/traffic directory for traffic log files.
- pulsedBox authentication pruning to filter/fix the most common user errors
- Fixed quota parsin in GUI when using LVM device /dev/mapper/ type addressing
- Updated installer to install rTorrent 0.9.2 and libTorrent 0.13.2
- Fixed updater setup of squeeze repos
- ruTorrent update, does include saving user preferences etc. to the new one
- Fixed a bug relating to .pulsedmedia mgmt features, incorrect order for permissions setting
- Update-step2 mild refactoring
- Removed useless apt-get install from update.php
- Added ffmpeg along with screenshots plugin
- Removed unpack plugin (way too high resource consumption)
- getfile plugin included now
- Applied quota parsing fixed to hddquota plugin and made slightly more dynamic
- Lowered time before displaying welcome page quota information
- Removed proxy from soft.sh as this hasn't been included for sometime now.
- Updated rTorrent to 0.9.2 and libTorrent to 0.13.2 official releases
- PEX + DHT enabled by default. DHT port same as SCGI port for now. Template changed - not the actual code, so in all versions the default has changed. Server specific configuration can disable.
- Quota display bugs fixed: Servers with UUID assignment instead of device and in some cases collecting the total quota limit had last number cut off
- Munin configuration updates for .pulsedmedia.com
- Updated method of checking ruTorrent version to avoid "updates" when none is needed
- More conditions for user space update, if removed user but something remains as backup / as a failure of user termination script
- Refactored a bit update-step2 fixing when .rtorrent.rc is updated
- Compile rTorrent always when version mismatch during update, even if empty/not installed
- Added download speed limit when downloading via ajaxManager
- Changed chat tab to use username instead of random
- Update debian 5 repos to the archive ones
- On install also enable fastcgi-php (Squeeze)
- Get quota from apt repo, and do not compile on install (Lenny support is now limited)
- Updated squeeze repos
- Slightly refactored update-step2 and install
- Removed autotools + cpuload plugin from skel rutorrent
- rTorrent + libtorrent version to be changed to GIT 2011/11/08 which is slightly updated from release 0.8.9, few bug fixes etc. GIT information retained if you want to check validity.
- Removal of cpuload + autotools rutorrent plugins. CPULoad being misleading at best, autotools haven't worked for ages and developer is MIA.
- Changed fetching libmediainfo packages from pulsedmedia.com instead of sourceforge.
- Choosing libmedia info + libs based on debian version. Now Debian 6.0 should be fully supported in updates.
- Creating symlink /usr/local/bin/mktorrent -> /usr/bin/mktorrent thus fixing ruTorrent torrent creation in some Debian 6.0 systems (with updated ruTorrent+rTorrent)
- Cleaning installed libtorrent
- Allow key based authentication on SSH
- Pulsed Media specific management code - not added unless server is for .pulsedmedia.com
- Added srvmgmt to filtered users --- NOTICE: srvadmin user account will be deprecated in a future release
- added scripts inc for files to be updated/copied on update
- Fixed torrent creation from ruTorrent
- Fixed quota plugin (JSON parser has been changed to strict parsing)
- Updated quota plugin version information
- Fixed ajax manager recycle bin
- Made ruTorrent to update browser cache
- Created framework for easy user space files updating during server update (files dependant upon server upgrade)
- Removed recreateLighttpdConfig + lighttpd restart from update step 2 (should by now be in main update in 99.9%+ servers)
- Changed update.php to do lighttpd force-reload instead of restart
- Refactored update-step2 slightly: Moved specific files, and user specific stuff into single loop
- Added several packages to be installed during server installation, which were only on update. They still remain on update as well before better solution can be done (dselect)
- Filtering backup user dirs out from user list
- During scripts update, also update system packages
- Reversing yesterday's update due to security concerns
- Removed installer speedups due to stability concerns
- Fixed typo in install script preventing quota from being compiled
- Lighttpd session "stability" upgrade, fixing issue causing session timeouts/re-requiring authentication
- Added mediainfo
- Added server root document to redirect to pulsedmedia.com
- Added php5-geoip extension to be installed
- Simplified update-step2 scripts being installed :)
- Removed apt dist-upgrade from install
- Simplified (less) apt-get lines during install
- Reordered apt-get commands during install for swifter installation
- Removed some "junk" code from install
- Updated copyright text in install.sh
- Added some information on header of install.sh
- Install.sh some additional comments
- Made installation slightly quicker by usage of background processes (BETA, if your disk is extremely slow this may cause installation to fail)
- Reordering other items in install.sh to make installation faster
- Some preliminary work for supporting whitelabeling
- Removed umask, hash interval, hash max tries rtorrent configures (deprecated)
- Updated rTorrent + ruTorrent to versions 0.9.0/0.13.0
Note: Please report any issues due to the upgrade of rTorrent immediately to Pulsed Media. The patch has been tested on a small group of servers, but all situations are hard to foresee.
- Fixed some typos in update-step2
- Added iotop and cfv to be installed from apt repo.
- Added -m toggle for htpasswd because for some reason this is not default in Debian Lenny
- Added SSL support (self signed cert), just change http to https
- Added Webdav support, accessible from "/webdav-USERNAME/" *** BETA: Permission issues, your mileage will vary
- Removed SSL key creation from install
- Update-step2 creates SSL key automatically utilizing the server hostname, removes old deprecated key
- Added .irssi/config to user dirs, autojoining to #PulsedMedia on Freenode when irssi is launched
- Updated GUI IRC links, Chat tab and Adobe download links, with other small additional information and updates.
- Removed Network Storage tab from GUI because Dropbox is blocking pageviews coming from our system for unknown reason.
- Added Proxy information on GUI
- Update-step2 sees if .irssi/config exists and if it does not copies it there
- Chosen rTorrent SCGI port range increased from 4k to 8k.
- "fractional blocks" for config. Resource calcs are based on number of blocks, and fractions were not allowed prior.
- During update also update user crontabs. Added to both update.php and step2, to be removed from step2 after this update has seen significant adoption.
- Restarting lighttpd during update, also done doubly for now
- Moved setup api key to regular update script. In several months it will potentially be removed from update all together as it's a installation step, and included to update older nodes.
- Scripts permissions update
- updateQuotas.php -> cron to update all user quotas, as discreet user from central cron to ensure it gets updated.
- Updated root & user crontabs to reflect updateQuotas
- quotaFix now removes aquota*new files to avoid collision and thus failed update via quotacheck
- userTorrents.php : Lists the count of torrents each user has, for quicker analysis usage stats
- Permissions setup script added, which is utilized by recreateUser.
- recreateUser.php fixes
- Created recreateUser.php which recreates home dir, preserving data+session if existing. ALPHA
- Fixed saving API Key.
- Suspend and Unsuspend scripts fixed
- recreateLighttpd backup fixed
- Added access format of: servername/user-username/, for example: localhost/user-johndoe/. Thus supporting non FQDN setups
- addUser.php calls recreateLighttpd instead of just adding the hostname, this ensures lighttpd config is always up-to-date.
- Added to both update steps recreateLighttpd. It will remain on step2 for the next ~6months to ensure every system out there will have the update update.php
- Removed the default "testing" torrents
- Upload slots global, by default 6 times the non-global upload slots. It is "forcefully" inserted even if template does not it have for the moment. this forcefull insert will be removed in the future.
- checkInstances now also checks rtorrent configs, and if changed lists them on /root/changedConfigs for admin review
Streamlined installer for faster setups :) First release of API, just one command now. Some things moved to BETA status and considered feature complete. Many bug fixes, additional commenting etc. also added
- fixed userTransfer chowning lacking -R, thus UID was transferred for many files from the other server causing incorrect permissions
- wrapped vnstat install into if !file_exists to see if vnstat is installed already.
- added username 'srvadmin' to filter list on systemUsers
- removed from installer editing munin.conf -> if used can be done manually. Interim solution.
- put install vim as first thing on installer
- setting node hostname straight after installing vim
- moved setting up lighttpd as last thing
- scripts, skel, etc are installed earlier in installation
- SSL cert + quota as last items on setup
- Executing update-step2 on installer (so you don't need to execute updater after setup to get everything in)
- /scripts/util/setupRootCron.php -> creating root conf moved out of update.php
- setupSkelPermissions.php, same reason as root cron setup
- added setupRootCron and setupSkelPermissions to installer
- Idempotent lighttpd configurator feature completed. Backups the config first.
- Terminate user moved to beta status, as using lighttpd configurator now and restarting lighttpd.
- Added for terminate second argument, if 2nd argument is --confirm, straight accepts termination without asking for approval, for making automation easier.
- checkHttpd timer increased to 3 seconds before restarting lighttpd
- terminateUser timer increased to 5 seconds after trying to kill all user processes
- setupApiKey -> creates node key for API. Invoked upon setup.
- added authorization key
- removed /var/www/index.lighttpd.html
- added /var/www/index.php redir to pulsedmedia.com
- added beginnings of remote API for easier remote control management, by default in debug mode for now
- Was not actually completing shell userdeletion
- Added killing user processes (forgotten)
- added sleeping 2 seconds to allow time for rTorrent/other processes by user to die
- Added 2nd attempt to userdel after data removal
- Fixed some typos in texts
- Added check for user actually exists
NOTE: Still Alpha, non feature complete and not recommended for production use.
- checkHttpd.php added sleep between lighttpd kill and restart, to avoid PID file mismatch scenario
- First time being used
- update.php moved cron & ftp config stuff AFTER step2
- Install vnstat + vim (vim not by default on Debian 6)
- Setup interface for vnstat
- Configure vnstat for Debian 6
- Make vnstat cron jobs for Debian 5: twice a minute update (thus no support for 1GigE interface)
- Debian 5 add cron jobs to root.cron.additional config, create if needed
- GUI welcome page checking if proper quota information was passed has been added.
- GUI welcome page malformed serialized data fix
- GUI welcome page quota percentage missing % char
- GUI welcome page quota text styles: White and location
- GUI update script quota checking added (doesn't try to update when user is over quota burst limit, no more blanking GUI when update happens!)
- Users default quota information update rate has been increased to 10mins
- HDD Quota plugin commenting added
- HDD Quota plugin parser bug with bursted amounts fixed
- HDD Quota now shows USED/QUOTA instead of FREE/QUOTA. Makes more sense.
- HDD Quota "title" fixed (showing quota info) to be whole area of the meter
- Welcome page quota meter added :) Basic graph, larger and constantly visible text for quota info :)
- Basic idempotent lighttpd configurator (alpha, not suitable for production, TESTING only)
- terminateUser.php http password deletion fix, text fixes, executability.
- checkHttpd.php output lighttpd output, killall -9 lighttpd to ensure shutdown, http fetch mute removed so error gets logged
- update.php: removed apt updates because soft.sh already does this
- crons: increased check http to 4 minute intervals (avoid http timeout period issues)
Temporary fix to bypass userDb until fully utilized. You may use this update or use /scripts/util/populateUserDb.php to fix the issue.
- Changed listUsers.php to always use systemUsers.php, as fixing userDb saving introduced a bug where ie. checkInstances was not working fully (using userDb, which lacks most users in most servers)
Few bug fixes and minor features introduced.
- Update script order of items.
- Update script apt-get options for additional package installation lacked auto confirm.
- Update script support for "step 2", /scripts/util/update-step2.php is included if present, thus supporting dynamic updates
- Update script execute binary line added, so it can actually be executed simply by ./update.php
- /scripts permission fix, only root should have anykind of access (no execute or read for others)
- Support for root additional items via /etc/seedbox/config/root.cron.additional
- Add user script minor cleanup, additional commenting.
- Suspend script comments
- simple terminate user script, ALPHA -> not feature complete yet.
Updating from 27/03/2011 release or earlier
cd ~; bash soft.sh; php /scripts/update.php
Updating from 15/5/2011 release
Couple important new features introduced, several bug fixes.
- Added lighttpd status checking and auto-restart (very rudimentary)
- Fixed typo in /scripts/util/userConfig.php
- Added /etc/seedbox/config/root.cron
- /scripts/util/quotaFix.php now echoes results (also turns quota off, no need to turn it off first)
- proftpd config update (remote) with MaxClientsPerUser, MaxClientsPerHost, run /scripts/util/ftpConfig.php
- users class now supresses error if runtime db is not found
- users class now saves the user db upon save
- users class deconstructor added to save users db upon exit
- modules support code begun (version for highly dynamic with multiple hooks etc.)
- Changed update.php to a very basic one, as the remote capabilities are not being employed currently
- Rudimentary module /etc/seedbox/module/basic/addUser.php for ultra simplistic user addition module (ie. custom configs, limitations).
- Basic suspend & unsuspend capabilities (untested ALPHA)
- skel permissions fixed
bash soft.sh; php /scripts/update.php
This is primarily a bug fix and code quality release.
- Set shell to /bin/bash upon user creation
- Set shell to /bin/bash when using userConfig
- quotaFix.php now turns quota off before attempting quota check
- quotaFix.php now displays quota info before and after check
- Lots of comments added to all code files touched
- userConfig.php $filesLimitPerGb was undefined - hardcoded 500
- update.php minor changes
- default version now set to 1, in preparation to take it into production
- startRtorrent: codestyle fixes, Made error messages more clear, named rTorrent screen session to "rtorrent"