Author Topic: Ugen needed help Zentyal: status module samba: [ STOPPED ]  (Read 5395 times)

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #45 on: February 05, 2016, 04:18:38 am »
Dear all,

We are getting stuck in this sudo status when do something.

root@phnhnpdczty:~# sudo dpkg --configure -a
Setting up zentyal-core (4.2.2) ...
sudo:
Another thing is we try to restore backup but we got the error message like this
Could not extract the requested backup files: date description type
So please!!!!!!!!!!!!
Thank you!
Thy Ly

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #46 on: February 05, 2016, 07:48:47 am »
Dear All,

Another thing more we could start anything due to sudoers
root@phnhnpdczty:~# sudo service zentyal start
>>> /etc/sudoers: syntax error near line 42 <<<
sudo: parse error in /etc/sudoers near line 42
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

thank you!
Thy Ly

julio

  • Guest
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #47 on: February 05, 2016, 03:05:51 pm »
Dear All,

Another thing more we could start anything due to sudoers
root@phnhnpdczty:~# sudo service zentyal start
>>> /etc/sudoers: syntax error near line 42 <<<
sudo: parse error in /etc/sudoers near line 42
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

thank you!
Thy Ly

Please post the output of the following command:
Code: [Select]
cat /etc/sudoers

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #48 on: February 06, 2016, 09:02:29 am »
Hello! Thank you so much for your help, the Server now back only but not proper yet.
Here is the result.
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Defaults timestamp_timeout=-1

Defaults timestamp_timeout=10

Defaults timestamp_timeout=10

Defaults timestamp_timeout=10

Defaults timestamp_timeout=-1

root@phnhnpdczty:~#

Thank you!
Thy Ly

julio

  • Guest
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #49 on: February 06, 2016, 12:04:02 pm »
open the sudoers file with visudo and delete all junk line after the "#includedir /etc/sudoers.d" line:
Code: [Select]
EDITOR=nano sudo -E visudo
« Last Edit: February 06, 2016, 12:08:58 pm by julio »

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #50 on: February 07, 2016, 11:55:26 am »
Hello!

Thank you for your advices
Here are the result after editing

# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


root@phnhnpdczty:~#

The samba in now OK, smdb ok, but still get error with element not found for some alias page.

The result with the last boot below:
root@phnhnpdczty:~# /etc/init.d/smbd status
 * smbd is running
root@phnhnpdczty:~# ls -lah /boot
total 33M
drwxr-xr-x  4 root root 3.0K Feb  5 12:31 .
drwxr-xr-x 24 root root 4.0K Feb  5 12:31 ..
-rw-r--r--  1 root root 1.2M Jan 20 21:53 abi-3.16.0-60-generic
-rw-r--r--  1 root root 168K Jan 20 21:53 config-3.16.0-60-generic
drwxr-xr-x  5 root root 1.0K Feb  5 12:31 grub
-rw-r--r--  1 root root 3.0M Nov 20 15:36 initrd.img-3.16.0-30-generic
-rw-r--r--  1 root hope  20M Feb  2 05:08 initrd.img-3.16.0-60-generic
drwx------  2 root root  12K Jul  5  2015 lost+found
-rw-------  1 root root 3.4M Jan 20 21:53 System.map-3.16.0-60-generic
-rw-------  1 root root 6.1M Jan 20 21:53 vmlinuz-3.16.0-60-generic

Thank you!
Thy Ly

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #51 on: February 09, 2016, 05:04:31 am »
Hello!

We got error again now  :'(
FATAL: Could not connect to samba LDAP server: connect: No such file or directory

root@phnhnpdczty:~# dpkg -l zentyal*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                 Version                 Architecture            Description
+++-====================================-=======================-=======================-=============================================================================
ii  zentyal                              4.2                     all                     Zentyal - Core metapackage
ii  zentyal-common                       4.2                     all                     Zentyal - Common Library
iF  zentyal-core                         4.2.2                   all                     Zentyal - Core
iU  zentyal-dns                          4.2.1                   all                     Zentyal - DNS Server
ii  zentyal-firewall                     4.2                     all                     Zentyal - Firewall
iU  zentyal-network                      4.2.2                   all                     Zentyal - Network Configuration
ii  zentyal-ntp                          4.2                     all                     Zentyal - NTP Service
ii  zentyal-objects                      4.2                     all                     Zentyal - Network Objects
iU  zentyal-samba                        4.2.2                   all                     Zentyal - Domain Controller and File Sharing
ii  zentyal-services                     4.2                     all                     Zentyal - Network Services
ii  zentyal-software                     4.2                     all                     Zentyal - Software Management

root@phnhnpdczty:~# sudo /etc/init.d/zentyal samba restart
 * Restarting Zentyal module: samba                                      [fail]

How to disable automatically update?.
Thy Ly

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #52 on: February 23, 2016, 11:29:11 am »
Based on your output, you have zentyal-samba uninstallled

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #53 on: February 26, 2016, 07:01:38 am »
So, how to close this ticket?.

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #54 on: March 18, 2016, 09:40:55 am »
Dear Our Zentyal Server keep crashing every day after upgrading to 4.2 and we checking on the smbstatus found as below:
root@phnhnpdczty:~# smbstatus

Samba version 4.3.1-UNKNOWN-Zentyal
PID     Username      Group         Machine            Protocol Version
------------------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           Share                                                                                        Path   Name   Time

and also the it take too long to be rebooted.

Please give advices for these issue, we are using the license one.

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #55 on: March 18, 2016, 12:01:54 pm »
here all our system process, any suggestion?..
PID TTY          TIME CMD
    1 ?        00:00:02 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 ksoftirqd/0
    5 ?        00:00:00 kworker/0:0H
    7 ?        00:00:07 rcu_sched
    8 ?        00:00:02 rcuos/0
    9 ?        00:00:02 rcuos/1
   10 ?        00:00:01 rcuos/2
   11 ?        00:00:00 rcuos/3
   12 ?        00:00:00 rcu_bh
   13 ?        00:00:00 rcuob/0
   14 ?        00:00:00 rcuob/1
   15 ?        00:00:00 rcuob/2
   16 ?        00:00:00 rcuob/3
   17 ?        00:00:00 migration/0
   18 ?        00:00:00 watchdog/0
   19 ?        00:00:00 watchdog/1
   20 ?        00:00:00 migration/1
   21 ?        00:00:00 ksoftirqd/1
   23 ?        00:00:00 kworker/1:0H
   24 ?        00:00:00 watchdog/2
   25 ?        00:00:00 migration/2
   26 ?        00:00:00 ksoftirqd/2
   28 ?        00:00:00 kworker/2:0H
   29 ?        00:00:00 watchdog/3
   30 ?        00:00:00 migration/3
   31 ?        00:00:00 ksoftirqd/3
   32 ?        00:00:00 kworker/3:0
   33 ?        00:00:00 kworker/3:0H
   34 ?        00:00:00 khelper
   35 ?        00:00:00 kdevtmpfs
   36 ?        00:00:00 netns
   37 ?        00:00:00 khungtaskd
   38 ?        00:00:00 writeback
   39 ?        00:00:00 ksmd
   40 ?        00:00:00 khugepaged
   41 ?        00:00:00 crypto
   42 ?        00:00:00 kintegrityd
   43 ?        00:00:00 bioset
   44 ?        00:00:00 kblockd
   45 ?        00:00:00 ata_sff
   46 ?        00:00:00 khubd
   47 ?        00:00:00 md
   48 ?        00:00:00 devfreq_wq
   50 ?        00:00:00 kworker/1:1
   51 ?        00:00:00 kworker/2:1
   52 ?        00:00:00 kworker/3:1
   53 ?        00:00:00 kworker/u8:1
   54 ?        00:00:02 kswapd0
   55 ?        00:00:00 fsnotify_mark
   56 ?        00:00:00 ecryptfs-kthrea
   68 ?        00:00:00 kthrotld
   69 ?        00:00:00 acpi_thermal_pm
   70 ?        00:00:02 vballoon
   71 ?        00:00:00 scsi_eh_0
   72 ?        00:00:00 scsi_tmf_0
   73 ?        00:00:00 scsi_eh_1
   74 ?        00:00:00 scsi_tmf_1
   76 ?        00:00:00 ipv6_addrconf
   77 ?        00:00:00 kworker/u8:3
   96 ?        00:00:00 deferwq
   97 ?        00:00:00 charger_manager
  149 ?        00:00:00 kpsmoused
  160 ?        00:00:00 kdmflush
  161 ?        00:00:00 bioset
  163 ?        00:00:00 kdmflush
  164 ?        00:00:00 bioset
  178 ?        00:00:00 kworker/0:1H
  179 ?        00:00:00 jbd2/dm-0-8
  180 ?        00:00:00 ext4-rsv-conver
  323 ?        00:00:00 kworker/2:1H
  344 ?        00:00:00 ext4-rsv-conver
  351 ?        00:00:00 jbd2/vdb1-8
  352 ?        00:00:00 ext4-rsv-conver
  458 ?        00:00:00 upstart-udev-br
  464 ?        00:00:00 systemd-udevd
  505 ?        00:00:00 ttm_swap
  644 ?        00:00:00 upstart-socket-
  691 ?        00:00:00 upstart-file-br
  694 ?        00:00:01 rsyslogd
  703 ?        00:00:00 dbus-daemon
  713 ?        00:00:00 systemd-logind
  777 ?        00:00:00 winbindd
  780 ?        00:00:00 vsftpd
  820 ?        00:00:00 winbindd
  821 ?        00:00:00 kworker/1:1H
  822 ?        00:00:00 kworker/3:1H
  888 tty4     00:00:00 getty
  890 tty5     00:00:00 getty
  896 tty2     00:00:00 getty
  897 tty3     00:00:00 getty
  900 tty6     00:00:00 getty
  927 ?        00:00:00 lxdm-binary
  938 ?        00:00:00 atd
  939 ?        00:00:00 cron
  960 ?        00:00:00 acpid
  987 ?        00:00:02 redis-server
 1000 tty7     00:00:05 Xorg
 1009 ?        00:00:01 mysqld
 1057 ?        00:00:00 kauditd
 1064 ?        00:00:00 console-kit-dae
 1137 ?        00:00:00 polkitd
 1148 ?        00:00:00 lxsession
 1189 ?        00:00:00 ssh-agent
 1194 ?        00:00:00 dbus-launch
 1195 ?        00:00:00 dbus-daemon
 1220 ?        00:00:00 openbox
 1224 ?        00:00:00 xscreensaver
 1225 ?        00:00:02 lxpanel
 1226 ?        00:00:00 pcmanfm
 1237 ?        00:00:00 ssh-agent
 1245 ?        00:00:00 menu-cached
 1293 ?        00:00:00 gconfd-2
 1295 ?        00:00:00 at-spi-bus-laun
 3704 tty1     00:00:00 getty
 4153 ?        00:00:00 kworker/1:2
 4610 ?        00:00:00 sudo
 4613 ?        00:00:02 redis-server
 4750 ?        00:00:00 sshd
 5427 ?        00:00:25 named
 5586 ?        00:00:00 ntpd
 6743 ?        00:01:16 uwsgi
 6755 ?        00:00:00 nginx
 6757 ?        00:00:00 nginx
 6758 ?        00:00:00 nginx
 6759 ?        00:00:00 nginx
 6760 ?        00:00:00 nginx
 7031 ?        00:00:00 ntpd
 8135 ?        00:01:24 global-action <defunct>
13494 ?        00:00:00 samba
13496 ?        00:00:00 samba
13497 ?        00:00:00 samba
13498 ?        00:00:00 smbd
13499 ?        00:00:00 samba
13500 ?        00:00:00 samba
13501 ?        00:01:44 samba
13502 ?        00:00:00 samba
13503 ?        00:00:00 samba
13504 ?        00:00:19 samba
13505 ?        00:00:00 samba
13506 ?        00:00:00 samba
13507 ?        00:00:00 samba
13512 ?        00:00:00 smbd
13515 ?        00:00:00 smbd
13541 ?        00:00:00 sssd
13553 ?        00:00:00 sssd_be
13567 ?        00:00:00 sssd_nss
13568 ?        00:00:00 sssd_pam
13573 ?        00:01:29 perl
13583 ?        00:00:00 winbindd
13854 ?        00:00:01 loggerd
14464 ?        00:00:03 smbd
15170 ?        00:00:00 kworker/2:2
15171 ?        00:00:01 kworker/0:2
15614 ?        00:00:00 kworker/0:0
18146 ?        00:00:00 sshd
18219 ?        00:00:00 kworker/2:0
18280 pts/8    00:00:00 bash
18303 ?        00:00:00 smbd
18304 ?        00:00:00 smbd
18317 pts/8    00:00:00 ps

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #56 on: March 19, 2016, 02:55:48 pm »
I forgot to send you this

root@phnhnpdczty:~# cat /proc/version_signature
Ubuntu 3.16.0-60.80~14.04.1-generic 3.16.7-ckt22
root@phnhnpdczty:~# uname -a
Linux phnhnpdczty 3.16.0-60-generic #80~14.04.1-Ubuntu SMP Wed Jan 20 13:37:48 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

root@phnhnpdczty:~# tail /proc/cpuinfo
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl pni cx16 x2apic hypervisor lahf_lm
bogomips        : 4799.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual
power management:

« Last Edit: March 19, 2016, 03:01:02 pm by thy.ly »

thy.ly

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Ugen needed help Zentyal: status module samba: [ STOPPED ]
« Reply #57 on: March 20, 2016, 08:10:28 am »
Our Zentyal Kernel:

root@phnhnpdczty:~# uname -r
3.16.0-60-generic
Any idea?.