Author Topic: [HELP] Error in Saving Samba  (Read 1529 times)

blockcircuit03

  • Zen Apprentice
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
[HELP] Error in Saving Samba
« on: November 23, 2016, 04:26:06 am »
Guys i got this error.
Quote
Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/

The following modules failed while saving their changes, their state is unknown: samba


and when i look in the log..

Quote
2016/11/21 23:29:11 [error] 1446#0: *5 open() "/usr/share/zentyal/www/images/package-icons/zentyal-objects.png" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /data/images/package-icons/zentyal-objects.png HTTP/1.1", host: "localhost:8443", referrer: "https://localhost:8443/Software/EBox"
2016/11/21 23:29:11 [error] 1446#0: *29 open() "/usr/share/zentyal/www/images/package-icons/zentyal-services.png" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /data/images/package-icons/zentyal-services.png HTTP/1.1", host: "localhost:8443", referrer: "https://localhost:8443/Software/EBox"
2016/11/21 23:29:11 [error] 1446#0: *5 open() "/usr/share/zentyal/www/images/package-icons/zentyal-cloud-prof.png" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /data/images/package-icons/zentyal-cloud-prof.png HTTP/1.1", host: "localhost:8443", referrer: "https://localhost:8443/Software/EBox"
2016/11/21 23:29:25 [error] 1446#0: *5 open() "/usr/share/zentyal/www/images/package-icons/zentyal-objects.png" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /data/images/package-icons/zentyal-objects.png HTTP/1.1", host: "localhost:8443", referrer: "https://localhost:8443/Software/EBox"
2016/11/21 23:29:25 [error] 1446#0: *5 open() "/usr/share/zentyal/www/images/package-icons/zentyal-services.png" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /data/images/package-icons/zentyal-services.png HTTP/1.1", host: "localhost:8443", referrer: "https://localhost:8443/Software/EBox"
2016/11/21 23:29:25 [error] 1446#0: *5 open() "/usr/share/zentyal/www/images/package-icons/zentyal-cloud-prof.png" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /data/images/package-icons/zentyal-cloud-prof.png HTTP/1.1", host: "localhost:8443", referrer: "https://localhost:8443/Software/EBox"
2016/11/22 00:40:28 [error] 3970#0: *6 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /Dashboard/WidgetJSON?module=network&widget=interfaces HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "localhost:8443", referrer: "https://localhost:8443/"
2016/11/22 00:40:28 [error] 3970#0: *19 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /Dashboard/WidgetJSON?module=remoteservices&widget=ccConnection HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock:", host: "localhost:8443", referrer: "https://localhost:8443/"


I don't really know how to fix this it makes my samba module saving take long almost 15 to 20 minutes.


Another Question.


1. Is there any command or can i change (add or remove) specific folder permission using putty so that i will no longer use my web interface.
2. Is it possible to change folder permission without restarting samba module? Because my colleague shock when the server not respoding because samba restart everytime i change single folder permission.

BerT666

  • Zen Warrior
  • ***
  • Posts: 228
  • Karma: +17/-0
    • View Profile
Re: [HELP] Error in Saving Samba
« Reply #1 on: November 23, 2016, 10:35:17 am »
Howdy,

in this situation, I would do the following:

Check if the given folder exists (/usr/share/zentyal/www/images/package-icons)
If not, set up a VM and copy the files from the VM to the original Server (and set User and group according to your system).
If it exists, check the permissions (cross-check with VM)

Maybe the Zentyal Firewall is blocking the traffic? Try to disable the FW Module and test again.

Are the server processes running? Please confirm with "netstat -tulpen" (as root / with sudo)

Kind Regards

Thomas

blockcircuit03

  • Zen Apprentice
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: [HELP] Error in Saving Samba
« Reply #2 on: November 23, 2016, 10:43:20 am »
Howdy,

in this situation, I would do the following:

Check if the given folder exists (/usr/share/zentyal/www/images/package-icons)
If not, set up a VM and copy the files from the VM to the original Server (and set User and group according to your system).
If it exists, check the permissions (cross-check with VM)

Maybe the Zentyal Firewall is blocking the traffic? Try to disable the FW Module and test again.

Are the server processes running? Please confirm with "netstat -tulpen" (as root / with sudo)

Kind Regards

Thomas

Check if the given folder exists (/usr/share/zentyal/www/images/package-icons)





so it was not there.. :sad:  Can i repair this without installing in VM then copy .. Is there any command to repair this missing objects?

Are the server processes running? Please confirm with "netstat -tulpen" (as root / with sudo)

Quote
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State                                                                                                                            User       Inode       PID/Program name
tcp        0      0 127.0.0.1:445           0.0.0.0:*               LISTEN                                                                                                                           0          809061      5281/smbd
tcp        0      0 127.0.1.1:445           0.0.0.0:*               LISTEN                                                                                                                           0          809059      5281/smbd
tcp        0      0 192.168.1.8:445         0.0.0.0:*               LISTEN                                                                                                                           0          809057      5281/smbd
tcp        0      0 192.168.1.8:1024        0.0.0.0:*               LISTEN                                                                                                                           0          794218      5280/samba
tcp        0      0 127.0.1.1:1024          0.0.0.0:*               LISTEN                                                                                                                           0          794217      5280/samba
tcp        0      0 127.0.0.1:1024          0.0.0.0:*               LISTEN                                                                                                                           0          794216      5280/samba
tcp        0      0 127.0.0.1:20000         0.0.0.0:*               LISTEN                                                                                                                           122        16048       1406/sogod
tcp        0      0 192.168.1.8:3268        0.0.0.0:*               LISTEN                                                                                                                           0          808498      5284/samba
tcp        0      0 127.0.1.1:3268          0.0.0.0:*               LISTEN                                                                                                                           0          808494      5284/samba
tcp        0      0 127.0.0.1:3268          0.0.0.0:*               LISTEN                                                                                                                           0          808490      5284/samba
tcp        0      0 192.168.1.8:3269        0.0.0.0:*               LISTEN                                                                                                                           0          808499      5284/samba
tcp        0      0 192.168.1.8:389         0.0.0.0:*               LISTEN                                                                                                                           0          808496      5284/samba
tcp        0      0 127.0.1.1:3269          0.0.0.0:*               LISTEN                                                                                                                           0          808495      5284/samba
tcp        0      0 127.0.1.1:389           0.0.0.0:*               LISTEN                                                                                                                           0          808492      5284/samba
tcp        0      0 127.0.0.1:3269          0.0.0.0:*               LISTEN                                                                                                                           0          808491      5284/samba
tcp        0      0 127.0.0.1:389           0.0.0.0:*               LISTEN                                                                                                                           0          808488      5284/samba
tcp        0      0 192.168.1.8:135         0.0.0.0:*               LISTEN                                                                                                                           0          804093      5280/samba
tcp        0      0 127.0.1.1:135           0.0.0.0:*               LISTEN                                                                                                                           0          804092      5280/samba
tcp        0      0 127.0.0.1:135           0.0.0.0:*               LISTEN                                                                                                                           0          804091      5280/samba
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN                                                                                                                           105        15919       1119/mysqld
tcp        0      0 127.0.0.1:139           0.0.0.0:*               LISTEN                                                                                                                           0          809062      5281/smbd
tcp        0      0 127.0.1.1:139           0.0.0.0:*               LISTEN                                                                                                                           0          809060      5281/smbd
tcp        0      0 192.168.1.8:139         0.0.0.0:*               LISTEN                                                                                                                           0          809058      5281/smbd
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN                                                                                                                           106        15936       1201/redis-server 1
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN                                                                                                                           112        15907       1129/memcached
tcp        0      0 127.0.0.1:6380          0.0.0.0:*               LISTEN                                                                                                                           107        16046       1429/redis-server 1
tcp        0      0 192.168.1.8:464         0.0.0.0:*               LISTEN                                                                                                                           0          807478      5286/samba
tcp        0      0 127.0.1.1:464           0.0.0.0:*               LISTEN                                                                                                                           0          807474      5286/samba
tcp        0      0 127.0.0.1:464           0.0.0.0:*               LISTEN                                                                                                                           0          807470      5286/samba
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN                                                                                                                           0          33646       5027/apache2
tcp        0      0 192.168.1.8:53          0.0.0.0:*               LISTEN                                                                                                                           111        40939       6671/named
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN                                                                                                                           111        40937       6671/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN                                                                                                                           111        40935       6671/named
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN                                                                                                                           0          40127       5450/sshd
tcp        0      0 192.168.1.8:631         0.0.0.0:*               LISTEN                                                                                                                           0          648990      14974/cupsd
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN                                                                                                                           0          648989      14974/cupsd
tcp        0      0 192.168.1.8:88          0.0.0.0:*               LISTEN                                                                                                                           0          807476      5286/samba
tcp        0      0 127.0.1.1:88            0.0.0.0:*               LISTEN                                                                                                                           0          807472      5286/samba
tcp        0      0 127.0.0.1:88            0.0.0.0:*               LISTEN                                                                                                                           0          807468      5286/samba
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN                                                                                                                           111        40942       6671/named
tcp        0      0 0.0.0.0:538             0.0.0.0:*               LISTEN                                                                                                                           0          13657       1113/gdomap
tcp        0      0 0.0.0.0:8443            0.0.0.0:*               LISTEN                                                                                                                           0          667909      14650/nginx.conf
tcp        0      0 192.168.1.8:636         0.0.0.0:*               LISTEN                                                                                                                           0          808497      5284/samba
tcp        0      0 127.0.1.1:636           0.0.0.0:*               LISTEN                                                                                                                           0          808493      5284/samba
tcp        0      0 127.0.0.1:636           0.0.0.0:*               LISTEN                                                                                                                           0          808489      5284/samba
tcp6       0      0 :::22                   :::*                    LISTEN                                                                                                                           0          40129       5450/sshd
udp        0      0 127.0.0.1:11211         0.0.0.0:*                                                                                                                                                112        15908       1129/memcached
udp        0      0 192.168.1.8:53          0.0.0.0:*                                                                                                                                                111        40938       6671/named
udp        0      0 127.0.1.1:53            0.0.0.0:*                                                                                                                                                111        40936       6671/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                                                                                                                                                111        40934       6671/named
udp        0      0 192.168.1.8:88          0.0.0.0:*                                                                                                                                                0          807477      5286/samba
udp        0      0 127.0.1.1:88            0.0.0.0:*                                                                                                                                                0          807473      5286/samba
udp        0      0 127.0.0.1:88            0.0.0.0:*                                                                                                                                                0          807469      5286/samba
udp        0      0 192.168.1.8:123         0.0.0.0:*                                                                                                                                                0          22538       2835/ntpd
udp        0      0 127.0.1.1:123           0.0.0.0:*                                                                                                                                                0          22537       2835/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                                                                                                                                                0          22536       2835/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*                                                                                                                                                0          22529       2835/ntpd
udp        0      0 192.168.1.8:137         0.0.0.0:*                                                                                                                                                0          783273      5282/samba
udp        0      0 192.168.1.255:137       0.0.0.0:*                                                                                                                                                0          783272      5282/samba
udp        0      0 127.0.1.1:137           0.0.0.0:*                                                                                                                                                0          783269      5282/samba
udp        0      0 127.255.255.255:137     0.0.0.0:*                                                                                                                                                0          783268      5282/samba
udp        0      0 127.0.0.1:137           0.0.0.0:*                                                                                                                                                0          783265      5282/samba
udp        0      0 127.255.255.255:137     0.0.0.0:*                                                                                                                                                0          783264      5282/samba
udp        0      0 192.168.1.8:138         0.0.0.0:*                                                                                                                                                0          783275      5282/samba
udp        0      0 192.168.1.255:138       0.0.0.0:*                                                                                                                                                0          783274      5282/samba
udp        0      0 127.0.1.1:138           0.0.0.0:*                                                                                                                                                0          783271      5282/samba
udp        0      0 127.255.255.255:138     0.0.0.0:*                                                                                                                                                0          783270      5282/samba
udp        0      0 127.0.0.1:138           0.0.0.0:*                                                                                                                                                0          783267      5282/samba
udp        0      0 127.255.255.255:138     0.0.0.0:*                                                                                                                                                0          783266      5282/samba
udp        0      0 192.168.1.8:389         0.0.0.0:*                                                                                                                                                0          783278      5285/samba
udp        0      0 127.0.1.1:389           0.0.0.0:*                                                                                                                                                0          783277      5285/samba
udp        0      0 127.0.0.1:389           0.0.0.0:*                                                                                                                                                0          783276      5285/samba
udp        0      0 192.168.1.8:464         0.0.0.0:*                                                                                                                                                0          807479      5286/samba
udp        0      0 127.0.1.1:464           0.0.0.0:*                                                                                                                                                0          807475      5286/samba
udp        0      0 127.0.0.1:464           0.0.0.0:*                                                                                                                                                0          807471      5286/samba
udp        0      0 0.0.0.0:538             0.0.0.0:*                                                                                                                                                0          13656       1113/gdomap
udp6       0      0 :::123                  :::*                                                                                                                                                     0          22530       2835/ntpd

« Last Edit: November 23, 2016, 10:49:38 am by RAAC »

BerT666

  • Zen Warrior
  • ***
  • Posts: 228
  • Karma: +17/-0
    • View Profile
Re: [HELP] Error in Saving Samba
« Reply #3 on: November 23, 2016, 03:59:07 pm »
Hi,

by now I did not have this error...
The VM thing is a "quick and dirty" solution, but I am sure it will work ;-)
Maybe there is another solution (repairing / reinstalling the right package) but to do this, you have to identify the needed package(s)...

The netstat part looks good, apache and nginx are started.

Kind Regards

Thomas

blockcircuit03

  • Zen Apprentice
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: [HELP] Error in Saving Samba
« Reply #4 on: November 24, 2016, 08:20:23 am »
Hi,

by now I did not have this error...
The VM thing is a "quick and dirty" solution, but I am sure it will work ;-)
Maybe there is another solution (repairing / reinstalling the right package) but to do this, you have to identify the needed package(s)...

The netstat part looks good, apache and nginx are started.

Kind Regards

Thomas

Do you have any idea on how to Repair/Reinstall that package?

How about this?

1. Is there any command or can i change (add or remove) specific folder permission using putty so that i will no longer use my web interface.
2. Is it possible to change folder permission without restarting samba module? Because my colleague shock when the server not respoding because samba restart everytime i change single folder permission.