| View previous topic :: View next topic |
| Author |
Message |
NateZ n00b

Joined: 04 Feb 2004 Posts: 9 Location: not found.
|
Posted: Sat Jan 28, 2006 12:53 pm Post subject: SWAT Problems |
|
|
So I was going to set up my samba shares with the web interface, as I have before, but on this clean build of Gentoo, it doesn't want to build nicely for me.
Here is my /etc/xinetd.d/swat file:
| Code: | # default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
# $Header: /var/cvsroot/gentoo/src/patchsets/samba/configs/swat.xinetd,v 1.1 20$
service swat
{
port = 901
socket_type = stream
wait = no
only_from = 192.168.1.0/24 localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
|
However when I try to login to Swat at http://localhost:901 on firefox on my Gentoo box, it's a weird error i get, its not a login error - it's this:
| Code: |
500 Server Error
chdir failed - the server is not configured correctly
|
If anyone can help, it'd be greatly appreciated. |
|
| Back to top |
|
 |
geforce l33t


Joined: 29 Dec 2003 Posts: 649 Location: Canada
|
Posted: Sat Jan 28, 2006 2:24 pm Post subject: |
|
|
dont' chdir mean change directory ? Be sure that the directory swat try to look for exists first, and if you have the permissions, but this should not be a problem as far as it is running as root . _________________
| rodoke wrote: | | this is the Internet, where the men are men, the women are men, and the children are FBI agents. |
Last edited by geforce on Tue Mar 14, 2006 12:37 am; edited 1 time in total |
|
| Back to top |
|
 |
Xamindar Veteran


Joined: 02 Oct 2004 Posts: 1033 Location: California
|
Posted: Mon Mar 13, 2006 9:40 pm Post subject: |
|
|
| I'm having this problem too. It is a recent problem on all my machines. What is wrong with swat? Has anyone found a fix? |
|
| Back to top |
|
 |
geforce l33t


Joined: 29 Dec 2003 Posts: 649 Location: Canada
|
|
| Back to top |
|
 |
Xamindar Veteran


Joined: 02 Oct 2004 Posts: 1033 Location: California
|
Posted: Tue Mar 14, 2006 3:34 am Post subject: |
|
|
| Thanks, I'll try it out......Shouldn't the ebuild do that for us? |
|
| Back to top |
|
 |
NateZ n00b

Joined: 04 Feb 2004 Posts: 9 Location: not found.
|
Posted: Tue Mar 14, 2006 5:51 pm Post subject: |
|
|
Hrm. well this didn't actually work for me....:-/
Also, this is a very old build that you linked as a solution. |
|
| Back to top |
|
 |
MankyD n00b

Joined: 08 Jul 2003 Posts: 55
|
Posted: Tue Mar 14, 2006 7:17 pm Post subject: |
|
|
| I've got this same problem. Has anyone had any luck? |
|
| Back to top |
|
 |
breetie n00b

Joined: 27 May 2004 Posts: 45 Location: Atlanta
|
Posted: Sun Mar 19, 2006 11:58 am Post subject: |
|
|
Yes, same issue. Saw this, though:
| Code: | Section6 samba # strings /usr/sbin/swat | grep "/swat"
/swat/
<BODY background="/swat/images/background.jpg">
<A HREF="/swat/help/manpages/smb.conf.5.html#%s" target="docs"> %s</A> %s <br><span class="i18n_translated_parm">%s</span>
<A HREF="/swat/help/manpages/smb.conf.5.html#%s" target="docs"> %s</A> %s
<A HREF="%s/%s"><img border="0" src="/swat/%s" alt="%s"></A>
<A HREF="/swat/help/smb.conf.5.html#printcapname" target="docs">%s</A>
/usr/share/doc/samba-3.0.21b/swat |
I don't have any of these files, nor are the directories there. No doubt the problem is that these directories did not get created during installation. Perhaps it is a bug with 3.0.21b? It may be possible that my options may have adversely affected this, but I can't imagine what. Anyone have any additions to add to this? And, since the files and folders needed are definitely not there (at least in my case, even after a re-emerge), where can I download the files I need? The repositories don't seem to have any of these available. I'm still Google'ing though... _________________ "There has been an alarming increase in the things you know nothing about."
--fortune |
|
| Back to top |
|
 |
breetie n00b

Joined: 27 May 2004 Posts: 45 Location: Atlanta
|
Posted: Sun Mar 19, 2006 12:15 pm Post subject: |
|
|
Um, okay, sorry folks, was playing with it. I made some progress when I created the directory 'swat' in /usr/share/doc/samba-3.0.21b (seeing as how the directory isn't there). It...kind of...works. Since none of the documents are there, I'm going to have to manually hunt them down. I'm having some trouble tracking down why, exactly, these seemingly necessary files would be omitted. I'm trying to see what options I have that may have affected this. In the meantime, I will keep ya'll posted.  _________________ "There has been an alarming increase in the things you know nothing about."
--fortune |
|
| Back to top |
|
 |
breetie n00b

Joined: 27 May 2004 Posts: 45 Location: Atlanta
|
Posted: Sun Mar 19, 2006 12:24 pm Post subject: |
|
|
Okay, um...
Here is how I fixed this. First, the error message:
'chgdir failed - server error' etc. etc. and so forth.
In my case, this was because...well...a directory and files were missing in /usr/share/doc/samba-3.0.21b/. This, namely, was the directory 'swat' and all the html pages enclosed within it. So, since I really didn't feel like hunting all day on the 'net (unless I got lucky and found a repository with all the files I needed), I simply scp'd the required files from another server I have running 3.0.7-r1. Works now. Er, well...not exactly a 'fix', but it works. As to where the proper html is, I have no idea. Why was that omitted? _________________ "There has been an alarming increase in the things you know nothing about."
--fortune |
|
| Back to top |
|
 |
geforce l33t


Joined: 29 Dec 2003 Posts: 649 Location: Canada
|
Posted: Sun Mar 19, 2006 1:04 pm Post subject: |
|
|
Looks like the ebuild don't create the directory and put the files in ?
Have you posted this as a bug ? _________________
| rodoke wrote: | | this is the Internet, where the men are men, the women are men, and the children are FBI agents. |
|
|
| Back to top |
|
 |
NateZ n00b

Joined: 04 Feb 2004 Posts: 9 Location: not found.
|
Posted: Mon Mar 20, 2006 1:50 pm Post subject: |
|
|
I started this topic, but thanks so much breetie for looking into it so much. it'd be cool if you wanted to email me all of the appropriate files for that sometime ...
As for this being in a bug report, no - i haven't yet, i'll let someone more experienced in doing so to submit that if they could  |
|
| Back to top |
|
 |
dfelicia Apprentice


Joined: 11 May 2005 Posts: 278 Location: Southwestern Connecticut
|
Posted: Mon Mar 20, 2006 2:59 pm Post subject: |
|
|
Just add the doc use flag for samba.
/etc/portage/package.use:
| Code: |
emerge --newuse samba
|
|
|
| Back to top |
|
 |
MarkH n00b

Joined: 11 Feb 2004 Posts: 25
|
Posted: Thu Mar 30, 2006 7:07 am Post subject: |
|
|
| dfelicia wrote: | Just add the doc use flag for samba.
/etc/portage/package.use:
| Code: |
emerge --newuse samba
|
|
I get this problem too - the above caused a complete rebuild but didn't work for me. |
|
| Back to top |
|
 |
dfelicia Apprentice


Joined: 11 May 2005 Posts: 278 Location: Southwestern Connecticut
|
Posted: Thu Mar 30, 2006 9:30 am Post subject: |
|
|
| Code: |
dfelicia@rtfm swat $ equery belongs /usr/share/doc/samba-3.0.21b/swat
[ Searching for file(s) /usr/share/doc/samba-3.0.21b/swat in *... ]
net-fs/samba-3.0.21b (/usr/share/doc/samba-3.0.21b/swat)
dfelicia@rtfm swat $ emerge -pv samba
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] net-fs/samba-3.0.21b +acl -async -automount +cups +doc -examples -kerberos +ldap -ldapsam +libclamav +mysql -oav +pam -postgres +python -quotas +readline (-selinux) +swat -syslog +winbind +xml +xml2 0 kB
|
Clearly the swat files are part of teh ebuild. Can you emerge -pv swat and make sure +doc is in the USE variable list? Is your portage snapshot up to date?
Last edited by dfelicia on Thu Mar 30, 2006 10:06 am; edited 1 time in total |
|
| Back to top |
|
 |
essdeeay n00b


Joined: 21 Feb 2006 Posts: 60
|
Posted: Thu Mar 30, 2006 9:50 am Post subject: |
|
|
In addition to the doc flag, you also need the swat flag. Recompile net-fs/samba with --newuse and you should be okay.
Steve  |
|
| Back to top |
|
 |
Xamindar Veteran


Joined: 02 Oct 2004 Posts: 1033 Location: California
|
Posted: Sat Apr 01, 2006 2:13 am Post subject: |
|
|
Im recompiling it now, I hope it works.
Who would make an ebuild that didn't even work right when a certain use flag was turned off? Why not just not have that use flag for the samba ebuild? |
|
| Back to top |
|
 |
dfelicia Apprentice


Joined: 11 May 2005 Posts: 278 Location: Southwestern Connecticut
|
Posted: Sat Apr 01, 2006 8:59 am Post subject: |
|
|
| Quote: | | Why not just not have that use flag for the samba ebuild? |
b/c not everyone wants/needs doc and [especially] swat. |
|
| Back to top |
|
 |
Xamindar Veteran


Joined: 02 Oct 2004 Posts: 1033 Location: California
|
Posted: Sat Apr 01, 2006 2:50 pm Post subject: |
|
|
| dfelicia wrote: | | Quote: | | Why not just not have that use flag for the samba ebuild? |
b/c not everyone wants/needs doc and [especially] swat. |
Yes, but it seems that even without the "swat" use flag swat is still being built. |
|
| Back to top |
|
 |
linuxbum Tux's lil' helper


Joined: 19 Dec 2003 Posts: 131 Location: USA
|
Posted: Fri Sep 01, 2006 12:25 pm Post subject: |
|
|
Following the above USE flag changes and emerge --newuse --update --verbose
Fixed my three SAMBA servers after emerge world -pv. broke them
| Code: |
USE="doc swat" emerge samba --newuse --verbose --update
|
Swat now works again on local machines...
Bryan |
|
| Back to top |
|
 |
jbpros Tux's lil' helper


Joined: 05 May 2004 Posts: 133 Location: Brussels, Belgium
|
Posted: Sat Sep 02, 2006 2:37 pm Post subject: |
|
|
| linuxbum wrote: | Following the above USE flag changes and emerge --newuse --update --verbose
Fixed my three SAMBA servers after emerge world -pv. broke them
| Code: |
USE="doc swat" emerge samba --newuse --verbose --update
|
Swat now works again on local machines...
Bryan |
FYI the --newuse parameter is not necessary, it is used to select packages that have use flag changes since compilation, nothing else. In other words, using it when you explicitly specify the packages to merge is just not necessary.
| Code: | | emerge --newuse world |
The above call shows the interest of the --newuse parameter: select any package within the virtual group "world" that have use flags changed.
In our samba case:
| Code: | | USE="doc swat" emerge samba --verbose --update |
Is sufficient. Though, I don't recommend using the USE= variable as it is lost whenever the package is recompiled without it.
Put swat and doc in package.use or make.conf and do:
| Code: | | emerge -avu --newuse world |
or
|
|
| Back to top |
|
 |
|