Permission deny line

  1. 2 years ago

    /Bin/cd_pull : line 488: /Storage/image/t430_windows7_x64/schema

    An Error has Occured

    Cloud Not Save MBR /GPT / Check Permission

    I have readjusted the permission now i get no error

    chown -R www-data:www-data /tftpboot /cd_dp /var/www/html/clonedeploy /var/www/.mono

  2. logo
    clonedeploy
    Admin
    Logs
    Server Distribution Points Client PXE Multicast Security E-mail Boot Menu Logs Export

    ** Displaying Boot Arguments **

    BOOT_IMAGE=kernels/4.4.3x64 initrd=images/initrd.xz root=/dev/ram0 rw ramdisk_size=156000 web=http://10.1.16.253/clonedeploy/service/client.asmx/ USER_TOKEN= task=ond consoleblank=0 MAC: 00:21:cc:cf:f9:9b
    Linux client_console.localdomain 4.4.3 #1 SMP Mon Feb 29 14:05:45 EST 2016 x86_64 GNU/Linux

    Boot Image Version: 1.0.1

    ** On Demand Enabled **

    image_name=T430_Windows7_X64 profile_id=3 server_ip=10.1.16.253 multicast=false pre_scripts="" post_scripts="" file_copy=False sysprep_tags="" task_completed_action="Reboot" dp_id=1 image_type=Block remove_gpt_structures=true compression_algorithm=lz4 compression_level=-1 task=pull

    ** Mounting SMB Share **

    ...... Success

    ** Looking For Hard Drive(s) **

    ...... Displaying Available Devices
    RO RA SSZ BSZ StartSec Size Device
    rw 256 512 1024 0 159744000 /dev/ram0
    rw 256 512 4096 0 250059350016 /dev/sda
    rw 256 512 4096 2048 209715200 /dev/sda1
    rw 256 512 4096 411648 249847349248 /dev/sda2
    Disk /dev/ram0: 152.4 MiB, 159744000 bytes, 312000 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0xaf7d34a0

    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 411647 409600 200M 7 HPFS/NTFS/exFAT
    /dev/sda2 411648 488394751 487983104 232.7G 7 HPFS/NTFS/exFAT
    Model: ATA Samsung SSD 840 (scsi)
    Disk /dev/sda: 250GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:

    Number Start End Size Type File system Flags
    1 1049kB 211MB 210MB primary ntfs boot
    2 211MB 250GB 250GB primary ntfs



    all_hard_drives: /dev/sda

    disk_label: dos /dev/sda

    partitions: /dev/sda1
    /dev/sda2

    ...... Found Drive(s)

    ...... Drive(s): /dev/sda

    ** Removing All Files For Existing Image: T430_Windows7_X64 **

    ** Creating Image Schema **
    mount: mounting none on /sys/firmware/efi/efivars failed: No such file or directory

    /dev/sda1 Volume Size
    volume_size:210
    used_size:33

    ...... Shrinking NTFS Volume On /dev/sda2 (This May Take A Few Minutes)
    Mounting volume... OK
    Processing of $MFT and $MFTMirr completed successfully.
    Checking the alternate boot sector... OK
    NTFS volume version is 3.1.
    Going to un-mark the bad clusters ($BadClus)... No bad clusters...OK
    NTFS partition /dev/sda2 was processed successfully.
    ntfsresize v2015.3.14 (libntfs-3g)
    Device name : /dev/sda2
    NTFS volume version: 3.1
    Cluster size : 4096 bytes
    Current volume size: 47961997824 bytes (47962 MB)
    Current device size: 249847349248 bytes (249848 MB)
    New volume size : 47955997184 bytes (47956 MB)
    Checking filesystem consistency ...
    Accounting clusters ...
    Space in use : 46560 MB (97.1%)
    Collecting resizing constraints ...
    Needed relocations : 0 (0 MB)
    Schedule chkdsk for NTFS consistency check at Windows boot time ...
    Resetting $LogFile ... (this might take a while)
    Updating $BadClust file ...
    Updating $Bitmap file ...
    Updating Boot record ...
    Syncing device ...
    Successfully resized NTFS on device '/dev/sda2'.
    You can go on to shrink the device for example with Linux fdisk.
    IMPORTANT: When recreating the partition, make sure that you

    1. create it at the same disk sector (use sector as the unit!)
    2. create it with the same partition type (usually 7, HPFS/NTFS)
    3. do not make it smaller than the new NTFS filesystem size
    4. set the bootable flag for the partition if it existed before

    Otherwise you won't be able to access NTFS or can't boot from the disk!
    If you make a mistake and don't have a partition table backup then you
    can recover the partition table by TestDisk or Parted's rescue mode.

    ...... Success

    ...... ntfssize:
    Mounting volume... OK
    Processing of $MFT and $MFTMirr completed successfully.
    Checking the alternate boot sector... FIXED
    NTFS volume version is 3.1.
    Going to un-mark the bad clusters ($BadClus)... No bad clusters...OK
    NTFS partition /dev/sda2 was processed successfully.

    /dev/sda2 Volume Size
    volume_size:48003
    used_size:46617

    ...... image_schema: {"harddrives": [ {"name":"/dev/sda","size":"488397168","table":"mbr","boot":"1","lbs":"512","pbs":"512","guid":"","active":"true","partitions": [ {"number":"1","start":"2048","end":"411647","size":"409600","volumesize":"200","type":"primary","usedmb":"31","fsType":"ntfs","fsid":"7","uuid":"004EEA1D4EEA0AEC","guid":"","active":"true","customsize":"","customsizeunit":"","forcefixedsize":"false","prefix":"","efibootloader":"","volumegroup": { } },{"number":"2","start":"411648","end":"488394751","size":"487983104","volumesize":"45779","type":"primary","usedmb":"44457","fsType":"ntfs","fsid":"7","uuid":"4842EA8F42EA80D4","guid":"","active":"true","customsize":"","customsizeunit":"","forcefixedsize":"false","prefix":"","efibootloader":"","volumegroup": { } }] }] }

    ...... Complete
    mkdir: cannot create directory '/storage/images/T430_Windows7_X64/hd0': Permission denied

    ** Checking For Partition Table Types Before Upload On /dev/sda **

    ...... gpt_status: not present mbr_status:

    ** Saving MBR / GPT On /dev/sda **

    ...... drive: checkPartStart: 2048 toSave: 2047
    dd: failed to open '/storage/images/T430_Windows7_X64/hd0/table': No such file or directory

    ** An Error Has Occurred **

    ...... Could Not Save MBR /GPT . Check Permissions.
    Export Log

  3. clonedeploy

    13 Jun 2016 Administrator

    It looks like your cd_share_rw user doesn't have permission to write to the images folder. Was this an existing image you were overwriting, or was it new. If it was existing try to create a new one.

  4. I haved check the permission of > cd_dp

    4.0K drwxrwsr-x 4 www-data www-data 4.0K Jun 10 12:04 cd_dp

    /cd_dp

    4.0K drwxrwsr-x 3 www-data www-data 4.0K Jun 11 14:58 images
    4.0K drwxrwsr-x 2 www-data www-data 4.0K Jun 10 12:04 resources

    can you tell me where I can check permission

  5. I have readjusted the permission now i get no error

    chown -R www-data:www-data /tftpboot /cd_dp /var/www/html/clonedeploy /var/www/.mono

  6. last year

    I am getting a similar issue on an external SMB share. I have check the permissions and verified that the IIS and the read-write has full permissions. Sometimes I see a folder gets created into the images directory, but then nothing more will be put into it. How can I debug this more?

 

or Sign Up to reply!