running FBCMD.exe from HTTP request

Last Post 03 Aug 2008 08:41 PM by Tate Needham. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages


guyjoules


Posts:26


--
03 Aug 2008 10:25 AM

    I all.

    We are a web-form in which we gather build information and we create ini file with that information.

    We then want to run FBCMD.exe with that ini file as an argument.

    We have successfully running other application using that method but it seems that the IIS user which invoke that action, need permission to run FBCMD.

    This is what we get when trying to run FBCMD from HTTP. It's quite a long log.

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    An error occurred in the application.

    date/time         : 2008-08-03, 18:21:22, 630ms
    computer name     : BUILD-XPPC
    user name         : IUSR_BUILD-XPPC
    operating system  : Windows XP Service Pack 2 build 2600
    system language   : English
    system up time    : 3 days 2 hours
    program up time   : 83 milliseconds
    processors        : 4x Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
    physical memory   : 2877/3582 MB (free/total)
    free disk space   : (C 33.60 GB
    display mode      : 1280x1024, 16 bit
    process id        : $65c
    allocated memory  : 7.81 MB
    command line      : C:\Progra~1\finalb~2\FBCMD.exe /ViniFileLocation="C:\WINDOWS\TEMP\temp.ini" /PE:\p4client\BuildMachine\Win\Scripts\BuildAll.fbp5
    executable        : FBCMD.exe
    exec. date/time   : 2007-08-01 11:22
    version           : 5.5.0.348
    madExcept version : 3.0b
    callstack crc     : will be calculated soon
    exception number  : 1
    exception class   : Exception
    exception message : Error getting Documents and Settings\\Application Data folder. Access is denied.

    main thread ($ab4):
    004ec5b5 fb50coreapi.bpl FBUtils 1367 GetUserAppDataFolder
    >> stack will be calculated soon

    modules:
    >> will be calculated soon

    processes:
    >> will be calculated soon

    hardware:
    >> will be calculated soon

    cpu registers:
    >> will be calculated soon

    stack dump:
    >> will be calculated soon

    disassembling:
    >> will be calculated soondate/time         : 2008-08-03, 18:21:22, 630ms
    computer name     : BUILD-XPPC
    user name         : IUSR_BUILD-XPPC
    operating system  : Windows XP Service Pack 2 build 2600
    system language   : English
    system up time    : 3 days 2 hours
    program up time   : 83 milliseconds
    processors        : 4x Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
    physical memory   : 2877/3582 MB (free/total)
    free disk space   : (C 33.60 GB
    display mode      : 1280x1024, 16 bit
    process id        : $65c
    allocated memory  : 7.81 MB
    command line      : C:\Progra~1\finalb~2\FBCMD.exe /ViniFileLocation="C:\WINDOWS\TEMP\temp.ini" /PE:\p4client\BuildMachine\Win\Scripts\BuildAll.fbp5
    executable        : FBCMD.exe
    exec. date/time   : 2007-08-01 11:22
    version           : 5.5.0.348
    madExcept version : 3.0b
    callstack crc     : $bcc6d16e, $e57c736e, $e57c736e
    exception number  : 1
    exception class   : Exception
    exception message : Error getting Documents and Settings\\Application Data folder. Access is denied.

    main thread ($ab4):
    004ec5b0 fb50coreapi.bpl FBUtils           1365 GetUserAppDataFolder
    006f44cb fb50coreapi.bpl FBCoreUtils        271 GetFBUserVariablesIniFileName
    00739353 fb50coreapi.bpl FBOptionsAPI_Impl  635 TFBOptionsStore.Create
    0073e23e fb50coreapi.bpl FBVariablesImpl   1077 TFBGlobalVariablesNameSpace.ReloadUserVariables
    0073de33 fb50coreapi.bpl FBVariablesImpl    984 TFBGlobalVariablesNameSpace.Create
    007ccc2b fb50coreapi.bpl FBVariablesImpl   2284 initialization
    51f273b2 rtl100.bpl      System                 @StartExe

    modules:
    00320000 vclx100.bpl          10.0.2151.25345 C:\Progra~1\finalb~2
    00360000 VSMessageAPI100R.bpl 1.0.0.0         C:\Progra~1\finalb~2
    00380000 dbrtl100.bpl         10.0.2288.42451 C:\Progra~1\finalb~2
    003d0000 FBIndySystem100.bpl  2.5.0.502       C:\Progra~1\finalb~2
    00400000 FBCMD.exe            5.5.0.348       C:\Progra~1\finalb~2
    004c0000 fb50coreapi.bpl      5.5.0.348       C:\Progra~1\finalb~2
    00a90000 FBDream100.bpl       1.0.0.0         C:\Progra~1\finalb~2
    00ba0000 fbindycore100.bpl    2.5.0.502       C:\Progra~1\finalb~2
    51f20000 rtl100.bpl           10.0.2288.42451 C:\Progra~1\finalb~2
    52000000 vcl100.bpl           10.0.2288.42451 C:\Progra~1\finalb~2
    52340000 xmlrtl100.bpl        10.0.2151.25345 C:\Progra~1\finalb~2
    5b860000 NETAPI32.dll         5.1.2600.2976   C:\WINDOWS\system32
    5d090000 COMCTL32.dll         5.82.2900.2982  C:\WINDOWS\system32
    5dac0000 rdpsnd.dll           5.1.2600.2180   C:\WINDOWS\system32
    629c0000 LPK.DLL              5.1.2600.2180   C:\WINDOWS\system32
    71aa0000 WS2HELP.dll          5.1.2600.2180   C:\WINDOWS\system32
    71ab0000 WS2_32.dll           5.1.2600.2180   C:\WINDOWS\system32
    71ad0000 wsock32.dll          5.1.2600.2180   C:\WINDOWS\system32
    71b20000 mpr.dll              5.1.2600.2180   C:\WINDOWS\system32
    73000000 winspool.drv         5.1.2600.2180   C:\WINDOWS\system32
    74c80000 oleacc.dll           4.2.5406.0      C:\WINDOWS\system32
    74d90000 USP10.dll            1.420.2600.2180 C:\WINDOWS\system32
    76080000 MSVCP60.dll          6.2.3104.0      C:\WINDOWS\system32
    76360000 WINSTA.dll           5.1.2600.2180   C:\WINDOWS\system32
    76380000 msimg32.dll          5.1.2600.2180   C:\WINDOWS\system32
    76390000 IMM32.DLL            5.1.2600.2180   C:\WINDOWS\system32
    763b0000 comdlg32.dll         6.0.2900.2180   C:\WINDOWS\system32
    76b40000 winmm.dll            5.1.2600.2180   C:\WINDOWS\system32
    76bf0000 PSAPI.DLL            5.1.2600.2180   C:\WINDOWS\system32
    76c90000 IMAGEHLP.DLL         5.1.2600.2180   C:\WINDOWS\system32
    76f50000 wtsapi32.dll         5.1.2600.2180   C:\WINDOWS\system32
    77120000 oleaut32.dll         5.1.2600.3266   C:\WINDOWS\system32
    773d0000 comctl32.dll         6.0.2900.2982   C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03
    774e0000 ole32.dll            5.1.2600.2726   C:\WINDOWS\system32
    77920000 SETUPAPI.dll         5.1.2600.2180   C:\WINDOWS\system32
    77c00000 version.dll          5.1.2600.2180   C:\WINDOWS\system32
    77c10000 msvcrt.dll           7.0.2600.2180   C:\WINDOWS\system32
    77dd0000 ADVAPI32.dll         5.1.2600.2180   C:\WINDOWS\system32
    77e70000 RPCRT4.dll           5.1.2600.3173   C:\WINDOWS\system32
    77f10000 GDI32.dll            5.1.2600.3316   C:\WINDOWS\system32
    77f60000 SHLWAPI.dll          6.0.2900.3354   C:\WINDOWS\system32
    77fe0000 Secur32.dll          5.1.2600.2180   C:\WINDOWS\system32
    7c800000 kernel32.dll         5.1.2600.3119   C:\WINDOWS\system32
    7c900000 ntdll.dll            5.1.2600.2180   C:\WINDOWS\system32
    7c9c0000 shell32.dll          6.0.2900.3241   C:\WINDOWS\system32
    7df70000 oledlg.dll           5.1.2600.3016   C:\WINDOWS\system32
    7e410000 USER32.dll           5.1.2600.3099   C:\WINDOWS\system32

    processes:
    000 Idle                       0
    004 System                     0
    3f8 smss.exe                   0
    454 csrss.exe                  0
    474 winlogon.exe               0
    4a0 services.exe               0
    4ac lsass.exe                  0
    560 ati2evxx.exe               0
    574 svchost.exe                0
    5b8 svchost.exe                0
    6c8 svchost.exe                0
    798 svchost.exe                0
    7f0 svchost.exe                0
    138 ati2evxx.exe               0
    1c8 spoolsv.exe                0
    618 APAMasterService.exe       0
    680 avp.exe                    0
    6b0 Compuware.Diff.Service.exe 0
    724 MMERefresh.exe             0
    73c DNTUS26.EXE                0
    74c DPInjCfgService.exe        0
    780 FBLoggingServer.exe        0
    7cc FinalBuilderServer.exe     0
    0a4 inetinfo.exe               0
    0ac klnagent.exe               0
    240 mdm.exe                    0
    26c NCS.exe                    0
    298 p4s.exe                    0
    41c wdfmgr.exe                 0
    8a8 explorer.exe               0
    92c UPSMON_Service.exe         0
    998 RTHDCPL.exe                0
    9a8 TaskAdmin.exe              0
    9ec SchedSrv.exe               0
    a30 BuildService.exe           0
    a34 avp.exe                    0
    a60 jusched.exe                0
    a6c UPSMON.exe                 0
    af8 MOM.exe                    0
    b14 SchedInd.exe               0
    b34 xgTrayIcon.exe             0
    b44 ctfmon.exe                 0
    b58 GoogleToolbarNotifier.exe  0
    d08 CCC.exe                    0
    d04 alg.exe                    0
    1a4 dllhost.exe                0
    f74 davcdata.exe               0
    7ec cmd.exe                    0
    660 notepad++.exe              0
    f48 taskmgr.exe                0
    ca0 csrss.exe                  3
    644 winlogon.exe               3
    e68 rdpclip.exe                0
    f4c ati2evxx.exe               3
    bcc logon.scr                  3
    b60 perl.exe                   0 normal c:\perl\bin
    3c0 cmd.exe                    0 normal E:\p4client\BuildMachine\Common\BM_Automation
    65c FBCMD.exe                  0 normal C:\Progra~1\finalb~2

    hardware:
    + Computer
      - ACPI Multiprocessor PC
    + Disk drives
      - ST3250410AS
      - WDC WD5000AAKS-75A7B0
    + Display adapters
      - SAPPHIRE Radeon X1550 Series (driver 8.493.0.0)
      - SAPPHIRE Radeon X1550 Series Secondary  (driver 8.493.0.0)
    + Dongles
      - USB iLok Driver (driver 5.8.3.3162)
    + DVD/CD-ROM drives
      - Optiarc DVD RW AD-7170A SCSI CdRom Device
    + Human Interface Devices
      - HID-compliant consumer control device
      - HID-compliant device
      - USB Human Interface Device
      - USB Human Interface Device
      - USB Human Interface Device
    + IDE ATA/ATAPI controllers
      - Intel(R) ICH9 2 port Serial ATA Storage Controller 1 - 2921
      - Intel(R) ICH9 2 port Serial ATA Storage Controller 2 - 2926
      - Primary IDE Channel
      - Primary IDE Channel
      - Secondary IDE Channel
      - Secondary IDE Channel
    + Keyboards
      - HID Keyboard Device
    + Mice and other pointing devices
      - HID-compliant mouse
    + Monitors
      - Plug and Play Monitor
    + Network adapters
      - Intel(R) PRO/1000 GT Desktop Adapter (driver 8.10.1.0)
      - Realtek RTL8168/8111 PCI-E Gigabit Ethernet NIC (driver 5.666.301.2007)
    + Ports (COM & LPT)
      - Communications Port (COM1)
      - Printer Port (LPT1)
    + Processors
      - Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
      - Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
      - Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
      - Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
    + SCSI and RAID controllers
      - GIGABYTE GBB36X Controller (driver 1.17.13.1)
    + Sound, video and game controllers
      - Audio Codecs
      - Digidesign HD Core (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign HD DSP (driver 7.4.0.309)
      - Digidesign MBox (driver 7.4.0.309)
      - Legacy Audio Drivers
      - Legacy Video Capture Devices
      - Media Control Devices
      - Realtek High Definition Audio (driver 5.10.0.5392)
      - Video Codecs
    + Syncrosoft Protection Device
      - USB Protection Device (driver 3.5.2.1)
    + System devices
      - ACPI Fixed Feature Button
      - ACPI Power Button
      - Direct memory access controller
      - Intel 21154 PCI to PCI bridge
      - Intel(R) 82801 PCI Bridge - 244E
      - Intel(R) 82802 Firmware Hub Device
      - Intel(R) G33/G31/P35 Express Chipset PCI Express Root Port - 29C1
      - Intel(R) G33/G31/P35 Express Chipset Processor to I/O Controller - 29C0
      - Intel(R) ICH9 Family PCI Express Root Port 1 - 2940
      - Intel(R) ICH9 Family PCI Express Root Port 4 - 2946
      - Intel(R) ICH9 Family PCI Express Root Port 5 - 2948
      - Intel(R) ICH9 Family SMBus Controller - 2930 (driver 8.3.0.1008)
      - ISAPNP Read Data Port
      - Logical Disk Manager
      - Microcode Update Device
      - Microsoft ACPI-Compliant System
      - Microsoft System Management BIOS Driver
      - Microsoft UAA Bus Driver for High Definition Audio
      - Motherboard resources
      - Motherboard resources
      - Motherboard resources
      - Numeric data processor
      - PCI bus
      - PCI standard ISA bridge
      - Plug and Play Software Device Enumerator
      - Printer Port Logical Interface
      - Programmable interrupt controller
      - System board
      - System CMOS/real time clock
      - System speaker
      - System timer
      - Terminal Server Device Redirector
      - Terminal Server Keyboard Driver
      - Terminal Server Mouse Driver
      - Volume Manager
    + Universal Serial Bus controllers
      - Generic USB Hub
      - Intel(R) ICH9 Family USB Universal Host Controller - 2934
      - Intel(R) ICH9 Family USB Universal Host Controller - 2935
      - Intel(R) ICH9 Family USB Universal Host Controller - 2936
      - Intel(R) ICH9 Family USB Universal Host Controller - 2937
      - Intel(R) ICH9 Family USB Universal Host Controller - 2938
      - Intel(R) ICH9 Family USB Universal Host Controller - 2939
      - Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A
      - Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293C
      - USB Composite Device
      - USB Root Hub
      - USB Root Hub
      - USB Root Hub
      - USB Root Hub
      - USB Root Hub
      - USB Root Hub
      - USB Root Hub
      - USB Root Hub

    cpu registers:
    eax = 017ce1c0
    ebx = 0012fe48
    ecx = 017ce1c0
    edx = 004ec5b5
    esi = 01804070
    edi = 00000000
    eip = 004ec5b5
    esp = 0012fde4
    ebp = 0012fe30

    stack dump:
    0012fde4  b5 c5 4e 00 de fa ed 0e - 01 00 00 00 07 00 00 00  ..N.............
    0012fdf4  f8 fd 12 00 b5 c5 4e 00 - c0 e1 7c 01 48 fe 12 00  ......N...|.H...
    0012fe04  70 40 80 01 00 00 00 00 - 30 fe 12 00 14 fe 12 00  p@......0.......
    0012fe14  38 fe 12 00 4c 6e f2 51 - 30 fe 12 00 88 fe 12 00  8...Ln.Q0.......
    0012fe24  00 00 00 00 00 00 00 00 - 00 00 00 00 50 fe 12 00  ............P...
    0012fe34  d0 44 6f 00 58 fe 12 00 - 4c 6e f2 51 50 fe 12 00  .Do.X...Ln.QP...
    0012fe44  00 00 00 00 00 00 00 00 - 00 00 00 00 8c fe 12 00  ................
    0012fe54  58 93 73 00 64 fe 12 00 - 4c 6e f2 51 8c fe 12 00  X.s.d...Ln.Q....
    0012fe64  98 fe 12 00 e3 6f f2 51 - 8c fe 12 00 70 40 80 01  .....o.Q....p@..
    0012fe74  f4 01 00 00 d0 29 81 01 - 01 33 80 01 00 00 00 00  .....)...3......
    0012fe84  00 00 00 01 00 00 00 00 - d8 fe 12 00 43 e2 73 00  ............C.s.
    0012fe94  00 00 00 00 e0 fe 12 00 - 4c 6e f2 51 d8 fe 12 00  ........Ln.Q....
    0012fea4  f4 01 00 00 d0 29 81 01 - 01 33 80 01 00 00 00 00  .....)...3......
    0012feb4  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................
    0012fec4  d0 29 81 01 00 00 00 00 - 00 00 00 00 00 00 00 00  .)..............
    0012fed4  00 00 00 00 f8 fe 12 00 - 38 de 73 00 10 ff 12 00  ........8.s.....
    0012fee4  e3 6f f2 51 f8 fe 12 00 - d0 29 81 01 2c 54 45 00  .o.Q.....)..,TE.
    0012fef4  b1 00 00 00 08 ff 12 00 - 30 cc 7c 00 84 b0 73 00  ........0.|...s.
    0012ff04  d0 b5 73 00 2c ff 12 00 - 5f 72 f2 51 58 ff 12 00  ..s.,..._r.QX...
    0012ff14  e3 6f f2 51 2c ff 12 00 - 12 03 3c 01 ce 48 48 00  .o.Q,.....<..HH.

    disassembling:
    [...]
    004ec59c         call    -$2b251 ($4c1350)      ; System.@LStrCat3 (rtl100.bpl)
    004ec5a1         mov     ecx, [ebp-8]
    004ec5a4         mov     dl, 1
    004ec5a6         mov     eax, [$820a50]
    004ec5ab         call    -$297e8 ($4c2dc8)      ; Sysutils.Exception.Create (rtl100.bpl)
    004ec5b0       > call    -$2b335 ($4c1280)      ; System.@RaiseExcept (rtl100.bpl)
    004ec5b5 01367   xor     eax, eax
    004ec5b7         pop     edx
    004ec5b8         pop     ecx
    004ec5b9  

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

     

    It seems that FBCMD trying to read / write something from Document & Settings.

    We gave this folder full permission to do everything, but it didn't help.

     

    Yes, we know, we are using quite old version of FB, but we can't upgrade at this time.

    Please advise.

     

    Thanks.

    Guy.



    Tate Needham
    Forum Administrator

    Posts:1060


    --
    03 Aug 2008 08:41 PM
    Hi Guy,

    It's likely that the user that you're using doesn't have a Documents & Settings folder - try a different user and see if that works.

    btw. we'd strongly recommend that you use FinalBuilder Server to run FBCMD via a web page
    You are not authorized to post a reply.