Server on BartPE/WinPE

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
lobanovski
504 Command not implemented
Posts: 6
Joined: 2004-09-24 15:43

Server on BartPE/WinPE

#1 Post by lobanovski » 2004-09-24 16:10

I am trying to install "FileZilla Server" on BartPE without any luck.
( BartPE: http://www.nu2.nu/pebuilder ).

FileZilla-client is working fine. But when running "FileZilla Server" I get
"Can't resolve hostname", "Unable to connect". I even pre-included
the "FileZilla Server"-service in my PE-build (by applying to registry)
but it does not help. Also I installed ms_server/browser-service but
no improvement.
Any hints why it refuses to start?
For instance, are there any special services dependencies? Or needed DLLs?
It must be something that FileZilla needs that is not included in WinPE ...

Thanks,

Lobanovski

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#2 Post by botg » 2004-09-24 18:56

Try running FZS with -compat as first parameter.

lobanovski
504 Command not implemented
Posts: 6
Joined: 2004-09-24 15:43

#3 Post by lobanovski » 2004-09-24 19:43

I just tried:
"filezilla server.exe" -compat
but it did not help. I uninstalled the service and tried again without luck.

What I see with "sc query "filezilla server"" is that it only reaches
"start pending" but never gets started.. .

Is there perhaps a way that FZS shows what it is doing (e.g. what it
is missing) ?

mriolo
550 Permission denied
Posts: 29
Joined: 2004-05-17 16:33
Location: Chicago

#4 Post by mriolo » 2004-09-27 02:39

are you trying to load this as a service?
are you loading network services fully first?
please post your plugin .inf so I can have a looksee.

lobanovski
504 Command not implemented
Posts: 6
Joined: 2004-09-24 15:43

#5 Post by lobanovski » 2004-09-27 06:47

Here is my INF.
When booting my BartPE/WinPE I have IP fully configured and functional
(including lmhosts, server, browser) before FZS is called.
It shows "start pending" when trying to start FSZ.
  • [Version]
    Signature= "$Windows NT$"

    [PEBuilder]
    Name="FileZilla"
    Enable=1

    Help="FileZilla.htm"

    [WinntDirectories]
    a="Programs\FileZilla",2

    [SourceDisksFiles]
    files\FileZilla.exe=a,,1
    files\FzSFtp.exe=a,,1
    files\FzGSS.dll=a,,1
    files\FileZilla.xml=a,,4
    files\FzRes*.dll=a,,4
    "files\FileZilla Server*.*"=a,,4

    [Append]
    nu2menu.xml, FileZilla_nu2menu.xml

    [SetupReg.AddReg]
    0x4,"ControlSet001\Services\FileZilla Server","Type",0x00000110
    0x4,"ControlSet001\Services\FileZilla Server","Start",0x00000003
    0x4,"ControlSet001\Services\FileZilla Server","ErrorControl",0x00000001
    0x1,"ControlSet001\Services\FileZilla Server","DisplayName","FileZilla Server FTP server"
    0x2,"ControlSet001\Services\FileZilla Server","ImagePath","%SystemDrive%\Programs\FileZilla\FileZilla Server.exe"
    0x1,"ControlSet001\Services\FileZilla Server","ObjectName","LocalSystem"
    0x7,"ControlSet001\Services\FileZilla Server\Security","Security",\
    01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\
    00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
    00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\
    05,12,00,00,00,00,00,00,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\
    20,00,00,00,20,02,00,00,00,00,00,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\
    00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\
    00,05,20,00,00,00,23,02,00,00,00,00,00,00,01,01,00,00,00,00,00,05,12,00,00,\
    00,01,01,00,00,00,00,00,05,12,00,00,00
    0x1,"ControlSet001\Services\FileZilla Server\Enum","0","Root\LEGACY_FILEZILLA_SERVER\0000"
    0x4,"ControlSet001\Services\FileZilla Server\Enum","Count",0x00000001
    0x4,"ControlSet001\Services\FileZilla Server\Enum","NextInstance",0x00000001
    0x4,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER","NextInstance",0x00000001
    0x1,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER\0000","ClassGUID","{8ECC055D-047F-11D1-A537-0000F8753ED1}"
    0x1,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER\0000","Class","LegacyDriver"
    0x4,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER\0000","Legacy",0x00000001
    0x4,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER\0000","ConfigFlags",0x00000000
    0x1,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER\0000","Service","FileZilla Server"
    0x1,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER\0000","FileZilla Server FTP server"
    0x1,"ControlSet001\Enum\Root\LEGACY_FILEZILLA_SERVER\0000\Control","ActiveService","FileZilla Server"

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#6 Post by botg » 2004-09-27 08:09

I've no clue why FZS doesn't start. Maybe you need to assign a specifiy user under which the service wil run.

lobanovski
504 Command not implemented
Posts: 6
Joined: 2004-09-24 15:43

#7 Post by lobanovski » 2004-09-27 08:32

That is quite difficult under BartPE/WinPE if not impossible.
You automatically work from SYSTEM account in WinPE and there
is no user-management. WinPE really is a stripped down version
of XP or W2K3 which has been expanded to BartPE by all sort of
enhancement plugins.

Isn't there a verbose mode possible that reveals some indications
why FSZ service never gets past "start pending"?
I launched Regmon/Filemon in the background but that did not show
anything interessant.
BTW I tested on XP Sp2 BartPE.

I think it would be nice for both FileZilla and BartPE users to get this
fixed. FileZilla is opensource so a very welcome and accessible
addition to BartPE. Also when a working plugin has been published
and there is no competition it tends to become a "default" for BartPE
users so this might draw a new audience. If I can do anything to
test something, let me know. In the meantime I will look further for
freeware FTP-server solutions for BartPE.

Botg, mriolo, thanks for thinking with me on this.

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#8 Post by botg » 2004-09-27 10:41

There's no verbose mode (and yet none was needed).

It's hard (if not impossible) to debug service startup problems.

Does FZS have write access to it's own folder? Maybe it can't start because it can't write to its config file.

If it really required to start FZS as service? You could run it as normal application from the autostart:

in HKLM\Software\Microsoft\Windows\CurrentVersion\Run put the key "FileZilla Server" with the value "c:\path\to\FZS\FileZilla Server.exe" -compat -start

lobanovski
504 Command not implemented
Posts: 6
Joined: 2004-09-24 15:43

#9 Post by lobanovski » 2004-09-27 10:51

I tested on a harddisk-setup of BartPE which by nature is read/write.
On final CDROM version this is read-only and one should run the
whole thing from ramdisk (read/write) or redirect only settings/config to
ramdisk. I hope the latter will be possible but as said I did not reach
that point yet.

No, I do not think it is necessary to pre-configure the service. My first
attempt was just a plain setup. It nicely asks if it should install and if
it should start. But since this was failing I figured that it might have
to do with installing the service on the fly. But also the pre-configured
service did fail. So in both ways it fails on same point.

The RUN-key is not processed on WinPE (it is on XPE) but launching
it by hand with same parameters did not work ...

As I said before, I was expecting to fix this by starting/installing
ms_server-service and lmhosts and browser-service but it does not
seem to be a corresponding service that is missing here, since this
did not improve a thing.

mriolo
550 Permission denied
Posts: 29
Joined: 2004-05-17 16:33
Location: Chicago

#10 Post by mriolo » 2004-09-28 02:07

I believe you need to enable support for cryptography services. try add ing this to your build.

Code: Select all

; Crypt.inf
; PE Builder v3 plug-in INF file
;
[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Cryptography Support"
Enable=1
Help=

[SourceDisksFiles]
cryptsvc.dll=2,,1

[SetupReg.AddReg]
0x0, "ControlSet001\Services\CryptSvc"
0x7, "ControlSet001\Services\CryptSvc", "DependOnService", "RpcSs"
0x1, "ControlSet001\Services\CryptSvc", "Description", "Provides three management services: Catalog Database Service, which confirms the signatures of Windows files; Protected Root Service, which adds and removes Trusted Root Certification Authority certificates from this computer; and Key Service, which helps enroll this computer for certificates. If this service is stopped, these management services will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start."
0x1, "ControlSet001\Services\CryptSvc", "DisplayName", "Cryptographic Services"
0x4, "ControlSet001\Services\CryptSvc", "ErrorControl", 0x1

0x2, "ControlSet001\Services\CryptSvc", "ImagePath", "%SystemRoot%\system32\svchost.exe -k netsvcs"
0x1, "ControlSet001\Services\CryptSvc", "ObjectName", "LocalSystem"
0x4, "ControlSet001\Services\CryptSvc", "Start", 0x2
0x4, "ControlSet001\Services\CryptSvc", "Type", 0x20

0x0, "ControlSet001\Services\CryptSvc\Parameters"

0x2, "ControlSet001\Services\CryptSvc\Parameters", "ServiceDll", "%SystemRoot%\System32\cryptsvc.dll"
0x1, "ControlSet001\Services\CryptSvc\Parameters", "ServiceMain", "CryptServiceMain"

0x0, "ControlSet001\Services\CryptSvc\Security"
0x3, "ControlSet001\Services\CryptSvc\Security", "Security", 00,00,0e,00,01

0x0, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC"
0x4, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC", "NextInstance", 0x1

0x0, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC\0000"
0x1, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC\0000", "Service", "CryptSvc"
0x4, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC\0000", "Legacy", 0x1
0x4, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC\0000", "ConfigFlags", 0x20
0x1, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC\0000", "Class", "LegacyDriver"
0x1, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC\0000", "ClassGUID", "{8ECC055D-047F-11D1-A537-0000F8753ED1}"
0x1, "ControlSet001\Enum\Root\LEGACY_CRYPTSVC\0000", "DeviceDesc", "Cryptographic Services"

lobanovski
504 Command not implemented
Posts: 6
Joined: 2004-09-24 15:43

#11 Post by lobanovski » 2004-09-28 10:05

@mriolo

Thanks. I added your service and made shure it was started before
I called FZS. Unfortunately it did not help :(

mriolo
550 Permission denied
Posts: 29
Joined: 2004-05-17 16:33
Location: Chicago

#12 Post by mriolo » 2004-09-28 14:17

bah! don't give up. i'm sure the answer is there. i know that there is a 31 char limitation, or do you think it could be the spaces in the launch? try renaming the files to something shorter (i.e. FZServer.exe). I'm going to try to replicate you efforts in VMware. i'll continue to post what i find. :wink:

mriolo
550 Permission denied
Posts: 29
Joined: 2004-05-17 16:33
Location: Chicago

#13 Post by mriolo » 2004-10-18 19:49

i bet you thought i forgot...

well as it turns out the answer is simple. filezilla seems to want to have write access to both filezilla servier interface.xml and filezilla server.xml (although no changes where made to the files). i moved the folder to a RAM drive and launched the filezilla server.exe executable from there and it fired right up.

botg, i'm not sure if there's a command line parameter that we should use so it won't need to write or what.

more as i find it

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#14 Post by botg » 2004-10-18 20:39

Thx mriolo.

Sigh, appareantly nobody did read what I wrote:
botg wrote:Does FZS have write access to it's own folder? Maybe it can't start because it can't write to its config file.

mriolo
550 Permission denied
Posts: 29
Joined: 2004-05-17 16:33
Location: Chicago

#15 Post by mriolo » 2004-10-18 21:34

:oops: Oops,
Sigh, appareantly nobody did read what I wrote...
listen to the developer??? bah, that would be too easy! :lol:

is it necessary for server to touch the XML files?

Post Reply