General NAS-Central Forums

Welcome to the NAS community
It is currently Mon Oct 23, 2017 7:52 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Dec 12, 2013 4:21 pm 
Offline

Joined: Sun Dec 08, 2013 8:14 am
Posts: 14
Hi everyone my ps3 is fixed and ready to continue getting my nas setup, help is greatly appreciated.

Im running into the following problem when i try to connect to my nas "read socket error during negotiation". This only happens when i use showtime mediaplayer (https://showtimemediacenter.com/). I can acces my samba fine from windows7 or android using es file explorer.
I've also read that showtime is compatible with samba3 or higher (?), does this mean the nas drive (medion P89660 md 86979) runs an older samba version? Anyone can help me with this please.


Top
 Profile  
 
PostPosted: Thu Dec 12, 2013 7:02 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
According to the GPL sources, the box runs Samba 3.0.32.


Top
 Profile  
 
PostPosted: Fri Dec 13, 2013 7:58 am 
Offline

Joined: Sun Dec 08, 2013 8:14 am
Posts: 14
Is there anyway to upgrade to a higer samba version?


Top
 Profile  
 
PostPosted: Fri Dec 13, 2013 8:49 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
Possibly. There is a Samba 3.6.6 in my repository. To get that working you'll have to kill the firmware samba. I'm not sure if it is (easy) possible to use the webinterface for Samba administration in that case.
But of course you can first test if upgrading Samba solves your problem, before jumping through hoops.


Top
 Profile  
 
PostPosted: Fri Dec 13, 2013 9:02 am 
Offline

Joined: Sun Dec 08, 2013 8:14 am
Posts: 14
thank you for the feedback is there any place i kind find information on how to upgrade samba? Preferably in layman's terms?

Thanks in advance


Top
 Profile  
 
PostPosted: Fri Dec 13, 2013 12:06 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
Basically it's installing the package, killing the firmware daemons:
Code:
killall smbd
killall nmbd
and starting the FFP one:
Code:
sh /ffp/start/samba.sh start
You'll need to provide a smb.conf, but I guess you can start with copying the firmware generated configurations:
Code:
mkdir -p /ffp/etc/samba
cp /etc/samba/smb.conf /ffp/etc/samba/


Top
 Profile  
 
PostPosted: Fri Dec 13, 2013 12:32 pm 
Offline

Joined: Sun Dec 08, 2013 8:14 am
Posts: 14
I first used the commands:
killall smbd
killall nmbd

then i used slacker -Ui scrolled to mz (allready added your repository from the sabnzb wiki) then selected install mz:samba-3.6.6-arm-2.txz
it installed. Then sh /ffp/start/samba.sh start it returned:
/ffp/etc/samba/smb.conf: Required file not found or not readable

so i followed your step on copying the firmware generated one:
mkdir -p /ffp/etc/samba
cp /etc/samba/smb.conf /ffp/etc/samba/

Then sh /ffp/start/samba.sh start it returned:

Starting /ffp/sbin/smbd -D
Starting /ffp/sbin/nmbd -D
then entered reboot in terminal

Booted up showtime mediaplayer on the ps3 and got connection refused. First of all thanks for your help getting me to run this.
Could you please help me into getting it running, my copied firmware smb config :

[global]
workgroup = WORKGROUP
server string = NAS-SERVER
netbios name = Ziggo
dos charset = UTF8
display charset = UTF8
unix charset = UTF8
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
guest account = pc-guest
map to guest = Bad User
write ok = yes
force create mode = 777
force directory mode = 777
force security mode = 777
force directory security mode = 777
auth methods = guest sam_ignoredomain
max log size = 50
host msdfs = yes
lanman auth = yes
smb ports = 139
printing = cups
printcap = /etc/printcap
load printers = yes
use sendfile = yes
passdb backend = smbpasswd
peek command type = yes

Is it still the nas blocking the connection or showtime, help is appreciated.

edit: showtime log shows it tries to connect to port 445 i tried changing the smb ports in my nas config to 445 and rebooted, but still getting connection refused.


Top
 Profile  
 
PostPosted: Fri Dec 13, 2013 1:44 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
Quote:
then entered reboot in terminal
This is wrong. After reboot the firmware Samba is active again. You should test your mediaplayer after having started the FFP samba.

I'm not sure about that port 445. AFAIK that is a default samba port. You can check which ports are open by Samba by executing (as root)
Code:
netstat -lptn | grep mbd
I just checked on my server, it has port 445 open, and 'smb ports' is not in my smb.conf. So maybe you should just remove the line. After that you can execute
Code:
sh /ffp/start/samba.sh stop
sh /ffp/start/samba.sh start
to get it active


Top
 Profile  
 
PostPosted: Fri Dec 13, 2013 9:58 pm 
Offline

Joined: Sun Dec 08, 2013 8:14 am
Posts: 14
Tried the command to see which ports are open on samba
netstat -lptn | grep mbd
but it just returns with an empty line

Still getting connection refused, after removing the smb ports line. For now im using twonky to server my video file's. Seems to be related to showtime only, can still connect to my share via windows7 or android. Well off for a goodnights rest maybe ill have more luck to morrow.


Top
 Profile  
 
PostPosted: Sat Dec 14, 2013 12:03 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
zoejoe wrote:
Tried the command to see which ports are open on samba
netstat -lptn | grep mbd
but it just returns with an empty line
Did you execute the command as root? Using this flags netstat is supposed to tell which process has the port open, but it fails when it's not running as root.
Anyway, you can skip the grep part:
Code:
netstat -lptn


Top
 Profile  
 
PostPosted: Sat Dec 14, 2013 1:45 pm 
Offline

Joined: Sun Dec 08, 2013 8:14 am
Posts: 14
I am logged in as root but netstat -lptn | grep mbd first showed an empty line but after i used netstat -lptn it worked. netstat -lptn | grep mbd now returns:
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1946/smbd

I'm guessing the 0 0.0.0.0:139 port should be 445? I tried editting that line from the smb.config to 445 and also complety removing it, but no luck will try it again.

edit: to add. Once i reboot the nas and the native smb starts netstat -lptn | grep mbd shows:
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1946/smbd

then i use sh /ffp/start/samba.sh stop to stop the native samba it returns
Stopping smbd
Stopping nmbd

then i use sh /ffp/start/samba.sh start to start the ffp samba it returns
Starting /ffp/sbin/smbd -D
Starting /ffp/sbin/nmbd -D

then when ffp samba has started and i use netstat -lptn | grep mbd i get and empty field in return but netstat -lptn will return
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:514 0.0.0.0:* LISTEN 1553/syslog-ng
tcp 0 0 192.168.178.24:9443 0.0.0.0:* LISTEN 1911/twonkyserver
tcp 0 0 127.0.0.1:9443 0.0.0.0:* LISTEN 1911/twonkyserver
tcp 0 0 192.168.178.24:9001 0.0.0.0:* LISTEN 1911/twonkyserver
tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1911/twonkyserver
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1816/pure-ftpd (SER
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3106/sshd
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 1457/cupsd
tcp 0 0 0.0.0.0:38008 0.0.0.0:* LISTEN 3108/ps3netsr
tcp 0 0 :::80 :::* LISTEN 3165/httpd
tcp 0 0 :::8082 :::* LISTEN 3165/httpd
tcp 0 0 :::21 :::* LISTEN 1816/pure-ftpd (SER
tcp 0 0 :::22 :::* LISTEN 3106/sshd
tcp 0 0 :::443 :::* LISTEN 3165/httpd

i dont see samba running anymore.

Edit: I have succes runnign the native samba and filling in the bookmark in showtime mediaplayer smb://192.168.178.24:139/share
it will now pop up to fill in user name and password. Thank you mijzelf for guiding and also helping me learn new things. Working finaly :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group