• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Capturar imagen en un segundo disco que he montado

Scheduled Pinned Locked Moved Solved
FOG Problems
4
23
2.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    oliver
    last edited by Oct 11, 2019, 7:04 AM

    Buenos dias, he montado un segundo disco para mi servidor FOG con la particion y demas.
    He configurado el nodo de storage y el grupo de storage.
    Al capturar una imagen, al final me da el siguiente error
    Actualizando la base de datos … Falló
    Error devuelto: Tipo 2, Archivo: /var/www/html/fog/lib/fog/fogftp.class.php, Línea 104, Mensaje: ftp_login (): Inicio de sesión incorrecto. * Intentando actualizar la base de datos … Falló
    He cambiado e lusuario y la pass del usuario y sigue haciendo lo mismo
    Si la captura la hago en el primer diaco no me da el error
    Alguien me puede ayudar?

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Oct 11, 2019, 9:42 AM

      I have some comments.

      1. Make sure the directory structure on this new disk matches /images directory including the hidden files.

      2. From the error message make sure the permissions are correct on the new mounted directory.

      3. Make sure you have the correct management user ID and password for this new storage node. Since its on the same fog server as the original “default” storage node the user ID and Password should be the same.

      The problem is there is a permission problem trying to move the uploaded files from the upload directory to the correct location.

      If you can’t find the problem, we will need more information on how you installed this new disk.

      1. What version of FOG are you using.
      2. The results of these commands lsblk and df -h
      3. A screen shot of how you configured the new storage node

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • O
        oliver
        last edited by Oct 11, 2019, 10:23 AM

        @george1421 said in Capturar imagen en un segundo disco que he montado:

        The problem is there is a permission problem trying to move the uploaded files from the upload directory to the correct location.

        9a77797c-e889-4465-9d51-30f67e96a752-image.png

        lsblk
        [root@KbfogAlcobendas ~]# lsblk
        NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
        sdb 8:16 0 465.8G 0 disk
        └─sdb1 8:17 0 450.1G 0 part /images2
        sda 8:0 0 465.8G 0 disk
        ├─sda1 8:1 0 500M 0 part /boot
        └─sda2 8:2 0 465.3G 0 part
        ├─vg_kbfogalcobend-lv_root (dm-0) 253:0 0 461.5G 0 lvm /
        └─vg_kbfogalcobend-lv_swap (dm-1) 253:1 0 3.8G 0 lvm [SWAP]
        df -h
        Filesystem Size Used Avail Use% Mounted on
        /dev/mapper/vg_kbfogalcobend-lv_root
        455G 341G 91G 79% /
        tmpfs 1.9G 0 1.9G 0% /dev/shm
        /dev/sda1 477M 128M 324M 29% /boot
        /dev/sdb1 443G 84M 421G 1% /images2

        nodo
        83179841-8783-430b-b309-3f2d8a06d44e-image.png
        fcca1994-acd3-44a9-950e-1ec69dcc62f9-image.png

        G 1 Reply Last reply Oct 11, 2019, 10:43 AM Reply Quote 0
        • G
          george1421 Moderator @oliver
          last edited by Oct 11, 2019, 10:43 AM

          @oliver OK it looks like you have everything configured correctly.

          Please check the “Management Password” should match the password field in the hidden file /opt/fog/.fogsettings file.

          Now that I have more information lets check a few more items.

          1. Make sure the management password is correct. The Management password is not the web ui password for the default web ui admin fog but its the password for the linux user fog. In version 1.5.6 and later the linux user service account was changed to fogproject to reduce confusion with the default web ui admin fog

          2. Make sure the permissions of /images2 match the permissions of /images

          The capture is failing is where the FOS Linux Engine (running on the target computer) will move the upload from /images2/dev/<mac_address> to /images2/<image_name> It does this via FTP using the Management Username and Password values. The error is related to the Management Username not having permissions to move the file. If you look in /images2/dev there should be a directory with the name that matches the mac address on the target computer. If that directory is there, then it is a problem with directory permissions for the linux user fog

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          O 1 Reply Last reply Oct 11, 2019, 10:57 AM Reply Quote 0
          • O
            oliver @george1421
            last edited by george1421 Oct 11, 2019, 5:57 AM Oct 11, 2019, 10:57 AM

            @george1421
            la contraseña del fichero .fogsettings esta cifrada, el usuario que aparece es fog debo poner la misma que el usuario fog de la web?
            la contraseña del usuario por defecto fog es la misma que la del usuario linux fog

            los permisos de las 2 carpetas sonlos mismos, aunque en /iamges ya hay imagenes metidas mientas en images2 no hay

            [root@KbfogAlcobendas images]# ls -l
            total 80
            drwxrwxrwx   2 root root 4096 Apr  8  2019 CAMPOFRIO1709W10
            drwxrwxrwx. 14 fog  root 4096 Oct 11 11:25 dev
            drwxrwxrwx   2 root root 4096 Oct 11 11:24 LenovoM73W10
            drwxrwxrwx   2 fog  root 4096 May  7  2018 PER4300W10CIRBE
            drwxrwxrwx   2 fog  root 4096 Sep 12  2017 PER_BUENA_BT_M900
            drwxrwxrwx   2 root root 4096 Jun 25 22:33 PER_FUJI_W7_64BITS_FULL
            drwxrwxrwx   2 root root 4096 Jun 10 14:13 PER_FUTJI_W7_64BITS_IMAIBERICA
            drwxrwxrwx   2 fog  root 4096 Feb 10  2017 PER_GESDOC_W7
            drwxrwxrwx   2 root root 4096 Sep 20 13:43 PER_LENOVOL460_64BITS_W10
            drwxrwxrwx   2 root root 4096 Oct  2 18:05 PER_LENOVO_M73_FULL_64BITS
            drwxrwxrwx   2 fog  root 4096 Feb  7  2019 PER_LENOVO_M900_FULL_1809
            drwxrwxrwx   2 root root 4096 May 29 13:40 PER_LENOVO_M910_BASICA
            drwxrwxrwx   2 root root 4096 Sep 16 16:16 PER_LENOVO_M910_FULL_1809
            drwxrwxrwx   2 root root 4096 Jun 19 14:30 PER_LENOVO_M920_DESARROLLO
            drwxrwxrwx   2 root root 4096 Jun 13 16:48 PER_Lenovom920q_W10
            drwxrwxrwx   2 root root 4096 Aug 30 14:23 PER_M920Q_POSTVENTA-CONSUMO_W10_1903
            drwxrwxrwx   2 root root 4096 Jun 26 21:21 PER_POSTVENTA_HP8300_64
            drwxrwxrwx   2 fog  root 4096 Feb 14  2018 PER_SAMSUNG_M73_SSD
            drwxrwxrwx   2 fog  root 4096 May 19  2017 PER_WACOM_HP_8300
            drwxrwxrwx.  2 fog  root 4096 Dec  9  2016 postdownloadscripts
            
            [root@KbfogAlcobendas images2]# ls -l
            total 24
            drwxrwxrwx 4 fog root  4096 Oct 10 15:24 dev
            drwxrwxrwx 2 fog root 16384 Oct 10 13:38 lost+found
            drwxrwxrwx 2 fog root  4096 Oct 10 13:44 postdownloadscripts
            

            la mac de la maquina a capturar y la mac que aparece en mac_address es la misma

            parece un problema con los permisos de directorio para la niebla del usuario de Linux

            1 Reply Last reply Reply Quote 0
            • F
              Fernando Gietz Developer
              last edited by Oct 11, 2019, 11:23 AM

              Hola @oliver!

              Es mejor que te expreses en inglés ya que la mayoría de los usuarios de la comunidad de FOG project no sabe hablar español o tiene conocimientos muy pequeños de él.

              Hay dos usuarios fog, uno usuario del sistema linux y otro que es el administrador de la consolo web. son usuarios diferentes con claves diferentes. El usuario fog de linux, llamado fogproject en versiones superiores a la 1.5.5, se encarga de mover y copiar los ficheros de /images usando FTP. La contraseña que aparece en /opt/fog/.fogsettings no está encriptada, parece pero no, es un churro bien largo creado aleatoriamente. Tienes que comprobar que el usuario fog en esa maquina accede con esa contraseña.

              Comprueba que /images2, el directorio, tiene permisos 777 para que el usuario fog de linux pueda acceder a él.

              O G 2 Replies Last reply Oct 11, 2019, 11:37 AM Reply Quote 1
              • O
                oliver @Fernando Gietz
                last edited by Oct 11, 2019, 11:37 AM

                @Fernando-Gietz
                muchas gracias.
                Cuando dices que compruebe que el usuario fog en esa maquina accede con esa contraseña, te refieres al servidor de fog?
                los permisos que tiene la carpeta images2 son

                [root@KbfogAlcobendas images2]# ls -l
                total 24
                drwxrwxrwx 4 fog root 4096 Oct 10 15:24 dev
                drwxrwxrwx 2 fog root 16384 Oct 10 13:38 lost+found
                drwxrwxrwx 2 fog root 4096 Oct 10 13:44 postdownloadscripts

                G 1 Reply Last reply Oct 11, 2019, 12:06 PM Reply Quote 0
                • G
                  george1421 Moderator @Fernando Gietz
                  last edited by Oct 11, 2019, 12:02 PM

                  @Fernando-Gietz said in Capturar imagen en un segundo disco que he montado:

                  Hay dos usuarios fog, uno usuario del sistema linux y otro que es el administrador de la consolo web. son usuarios diferentes con claves diferentes.

                  Comprueba que /images2, el directorio, tiene permisos 777 para que el usuario fog de linux pueda acceder a él.

                  Thank you! Well said.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                  O 1 Reply Last reply Oct 11, 2019, 12:09 PM Reply Quote 0
                  • G
                    george1421 Moderator @oliver
                    last edited by Oct 11, 2019, 12:06 PM

                    @oliver said in Capturar imagen en un segundo disco que he montado:

                    Cuando dices que compruebe que el usuario fog en esa maquina accede con esa contraseña, te refieres al servidor de fog?
                    los permisos que tiene la carpeta images2 son

                    To test this you should log into the fog server using the ftp client on a microsoft windows computer. FTP to the fog server, use the user ID of fog and the password found in the .fogsettings file (yes it will be long random characters).

                    When you log into the ftp server on the fog server change to the /images2 directory. And then create a test directory.

                    cd /images2
                    mkdir /images2/test
                    

                    I will guess it will error because the fog linux user does not have rights to make files in /images2 or does not have rights to delete files in /images2/dev directory. But directory permissions is the problem. You can check with the ftp program.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    O 1 Reply Last reply Oct 14, 2019, 6:14 AM Reply Quote 0
                    • O
                      oliver @george1421
                      last edited by Oct 11, 2019, 12:09 PM

                      @george1421 said in Capturar imagen en un segundo disco que he montado:

                      Comprueba que /images2, el directorio, tiene permisos 777 para que el usuario fog de linux pueda acceder a él.

                      pero en el pantallazo anterior e muestra que el usuario fog tiene todos los permisos no?

                      1 Reply Last reply Reply Quote 0
                      • F
                        Fernando Gietz Developer
                        last edited by Oct 11, 2019, 3:22 PM

                        Los directorios que cuelgan de /images2 pueden tener todos los permisos habilitados pero si /images2 no los tiene, no puede acceder

                        drwxrwxrwx  284 fog  root 16384 oct 11 14:11 images
                        
                        O 1 Reply Last reply Oct 14, 2019, 6:24 AM Reply Quote 0
                        • O
                          oliver @george1421
                          last edited by Oct 14, 2019, 6:14 AM

                          @george1421 said in Capturar imagen en un segundo disco que he montado:

                          But directory permissions is the problem. You can check with the ftp program.

                          Good morning, I entered with the user fog de linux in ftp and let me create the test directory in \ images2 and another one in \ images2 \ dev with which I understand that it is not a permissions problem

                          1 Reply Last reply Reply Quote 0
                          • O
                            oliver @Fernando Gietz
                            last edited by Oct 14, 2019, 6:24 AM

                            @Fernando-Gietz
                            buenos dias, yo no veo ninguna diferencia

                            33122456-bbc0-4466-ac28-baaaaed5db7e-image.png

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Oct 14, 2019, 6:40 AM

                              @oliver Is this CentOS? Please Run getenforce and post output here!

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              O 2 Replies Last reply Oct 14, 2019, 7:21 AM Reply Quote 0
                              • O
                                oliver @Sebastian Roth
                                last edited by Oct 14, 2019, 7:21 AM

                                @Sebastian-Roth said in Capturar imagen en un segundo disco que he montado:

                                Is this CentOS? Please Run getenforce and post output here

                                good morning

                                when running getenforce disable appears

                                1 Reply Last reply Reply Quote 0
                                • O
                                  oliver @Sebastian Roth
                                  last edited by Oct 14, 2019, 8:16 AM

                                  @Sebastian-Roth
                                  [Mon Oct 14 09:19:37 2019] [error] [client 172.95.21.34] PHP Warning: ftp_login(): Login incorrect. in /var/www/html/fog/lib/fog/fogftp.class.php on line 464

                                  [11-Oct-2019 10:42:38] NOTICE: Terminating …
                                  [11-Oct-2019 10:42:38] NOTICE: exiting, bye-bye!
                                  [11-Oct-2019 10:43:30] NOTICE: fpm is running, pid 2045
                                  [11-Oct-2019 10:43:30] NOTICE: ready to handle connections

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by Oct 14, 2019, 8:45 AM

                                    @oliver Check the FTP password in /var/www/html/fog/lib/fog/config.class.php!

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    O 1 Reply Last reply Oct 14, 2019, 8:50 AM Reply Quote 0
                                    • O
                                      oliver @Sebastian Roth
                                      last edited by Oct 14, 2019, 8:50 AM

                                      @Sebastian-Roth
                                      hi.

                                      the password is correct, it is the same one with which I opened the ftp with a client (filezilla)

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sebastian Roth Moderator
                                        last edited by Oct 14, 2019, 7:12 PM

                                        @oliver Username fog or fogproject? Which version of FOG do you have?

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        O 1 Reply Last reply Oct 15, 2019, 6:41 AM Reply Quote 0
                                        • O
                                          oliver @Sebastian Roth
                                          last edited by Oct 15, 2019, 6:41 AM

                                          @Sebastian-Roth
                                          user fog
                                          version 1.5.5

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            8/23
                                            Last post

                                          248

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project