Maximum user id for this system is reached! And multiple subdomain problems. - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: Maximum user id for this system is reached! And multiple subdomain problems. (/thread-4900.html) |
Maximum user id for this system is reached! And multiple subdomain problems. - prale - 11-11-2008 11:42 PM Hello. Lets start from the beginning. I had the users: sub1.domain1.com sub2.domain1.com sub1.domain2.com sub2.domain2.com (with redirect alias from domain1.com) (I don't use multiple subdomains on accounts because I like the openbasedir rule that every seperate user has) I deleted the user sub2.domain2.com since I couldn't remove the alias (the error keeps saying there are still emailaccounts (indeed there was 1 forward from this alias), but even after I deleted it, still the same error). Then I created a new user domain1.com. After this, domain1.com was working great but I found out that the earlier subdomain users of this domain1.com (sub1.domain1.com and sub2.domain1.com) were not working any more, It shows the content of the user domain1.com. I have other domains where this setup is working correct. But there I first created a domain.com user and then the subdomain users. (So maybe it went wrong because I added the maindomain after the subdomains were already created) Anyway I tried some regeneration of the config files. I tried to disable the subdomains, regenerate config and then activate the subdomains again (since then the maindomain was still there). Also I tried to disable all users and enable the maindomains first and then the subdomains. No luck. :S Even a few sites went down, because they were already reactivated in the UI but the htdocs and all other maps/files were still in a subfolder with a prefix: .disabled I had to copy them one folder back manualy from ssh. (Probably I expect some chmod problems here, since I remember there was some trouble with it) Now domain1.com still works but sub1.domain1.com and sub2.domain1.com not. I upgraded today to the latest nightly. Regenerated config, updated database etc, still no luck. I tried even adding a new user: test.domain1.com but this user cannot be added Here is some error info: check_uid_gid_available() | ERROR: Maximum user id for this system is reached! get_file() | ERROR: File '/etc/ispcp/proftpd/parts/proftpd.conf.tpl' does not exist ! (see attachment) I fixed the userid problem: /etc/ispcp/ispcp.conf was incomplete somehow after the upgrade from nightly to nightly: This was present: APACHE_SUEXEC_MIN_GID = 2000 APACHE_SUEXEC_MIN_UID = 2000 This not: APACHE_SUEXEC_MAX_GID = 29999 APACHE_SUEXEC_MAX_UID = 29999 So the expression: if($sys_uid > $max_uid){ push_el(\@main::el, 'check_uid_gid_available()', "ERROR: Maximum user id for this system is reached!"); return (2, $sys_uid, $sys_gid); } Would always be true, since $max_uid is not defined. Somehow when I check test.domain1.com it gives me a error 404. (At least not the content from domain1.com like sub(1,2).domain1.com still do) When I check the files of this user, there isn't even a htdocs folder. (Only backups, errors, and phptmp) RE: Maximum user id for this system is reached! And multiple subdomain problems. - sci2tech - 11-12-2008 01:57 AM In my next commit I`ll add a patch to check ispcp.conf for missing variable. Problem is that for nightly updates ispcp.conf is not regenerated. RE: Maximum user id for this system is reached! And multiple subdomain problems. - prale - 11-12-2008 02:42 AM Okay, after I deleted the users: sub1.domain1.com sub2.domain1.com and recreated them, both virtual folders were empty. I created the errors, htdocs, cgi-bin, logs, and phptmp folders manually. I had to chmod htdocs tot 777 :S otherwise I cant upload content in it with ftp. Also phptmp needed to be chmodded or I get session errors. Anyway I have the subdomains working again, and also the maindomain still shows the right content. The folders parts and working were missing from /etc/ispcp/proftpd/ I had to create them manualy (as wel als /parts/proftpd.conf.tpl wich I took from SVN), and now the errors on the debug page are gone, as wel as the execute requests. Still I think alot is messed up now, I guess more files are missing, and the chmods I had to do were probally not right to do. What can I do? I'm thinking of reupgrading to the latest nightly tomorrow. And find a way out to regenerate/check al chmods and folders in /var/www/virtual/ without doing damage to the sites currently running. Another way is to backup everything and do a new install, but I have a complicated config and also some trac environments on some domains, so I would like to keep thing the way they are. What can I do? Okay I used your super-lazy automated update script this time. Thanx sci2tech It runned fine, so I guess I have the lastest SVN files now also in /etc The only problem left now is the missing folders and chmods in some parts of /var/www/virtual I have to regenerate/check them somehow RE: Maximum user id for this system is reached! And multiple subdomain problems. - sci2tech - 11-12-2008 03:52 AM (11-12-2008 02:42 AM)prale Wrote: Okay,Please check if user is added to /etc/shadow and /etc/groups (11-12-2008 02:42 AM)prale Wrote: The folders parts and working were missing from /etc/ispcp/proftpd/that the way you suposed to do it (11-12-2008 02:42 AM)prale Wrote: Still I think alot is messed up now, I guess more files are missing, and the chmods I had to do were probally not right to do.It`s not messed up, but we do not have a script to update to nightly versions that work perfectly. Existing one do not update configuration files. A good way to do an upgrade to nightly is to keep your curent installed trunk from svn and do a compare to new version from svn (mostly changes to configuretion files) and manually merge it. I`ll start working on a better update scripting when I`ll finish existing bugs from ispcp (if nobody else will come with a better version ), (11-12-2008 02:42 AM)prale Wrote: What can I do?Won`t solve, only a fresh install of ispcp will help, but you must migrate existing accounts. (11-12-2008 02:42 AM)prale Wrote: And find a way out to regenerate/check al chmods and folders in /var/www/virtual/ without doing damage to the sites currently running.maybe it help this? (nicolas contribute from http://www.isp-control.net/forum/showthread.php?tid=4092&highlight=bash+and+.my.cnf) Code: #!/bin/bash RE: Maximum user id for this system is reached! And multiple subdomain problems. - prale - 11-12-2008 05:36 AM Hmmz this last script you gave me is nice, but I see I also mis .htgroup .htpasswd files in some virtual directories. And who knows what else more. I found out after the update script from you, new accounts are created perfectly again. I found out only 4users have this problem. Im going to backup, delete and re-create this users. Also I will check all config files for changes. I think it's easy since the files are all in trunk/configs/debian/ ohh yes before I forgot. Thanks for your quick and great help! |