antoinemartin / django-windows-tools

Django application providing management commands to host Django projects in Windows environments
BSD 2-Clause "Simplified" License
50 stars 13 forks source link

CommandError: The FastCGI application creation has failed #15

Closed Moataz-E closed 8 years ago

Moataz-E commented 8 years ago

Hi,

I am trying to deploy my django application on windows but I am currently running into an issue when I run this command in an admin-privilaged windows powershell:

C:\Python27\python.exe "C:\manage.py" winfcgi_install --binding="http://localhost:8080"

ERROR ( message:New application object missing required attributes. Cannot add duplicate collection entry of type 'application' with combined key attributes 'fullPath, arguments' respectively set to 'C:\Python27\python.exe, C:\manage.py winfcgi --pythonpath=C:'. )

Can anyone provide help with what might be causing this issue?

mrbean-bremen commented 8 years ago

Try to add a site name for your website (--site-name=), maybe this is causing the problem.

Moataz-E commented 8 years ago

Hi,

I am still getting the same issue. The following is the generated web.config before the program crashes:

`<?xml version="1.0" encoding="UTF-8"?>

`
Moataz-E commented 8 years ago

Also, when I add the --skip-fastcgi option to skip that point of failure, I get the following error:

ERROR ( message:Failed to add duplicate collection element

Seems like it is similar to the duplicate error mentioned earlier, where could these duplicates possibly be?

mrbean-bremen commented 8 years ago

It looks like the site already exists - but I guess you checked that already. Can you check if anything has been added at all in IIS? Ah, and also use the --skip-config option, as the config has been created, obviously - otherwise you have to delete it after each try.

Moataz-E commented 8 years ago

Actually, I found what the issue is. It turns out there is an Application Pools in IIS Manager which already contained records for what I was trying to create, and delete didn't correctly dispose of these records.

mrbean-bremen commented 8 years ago

Ok, good to hear. Can we close this issue, then?

Moataz-E commented 8 years ago

Issue closed, thanks a lot!

lewisMachilika commented 4 years ago

yes issue closed