मैं अपनी बिल्ड प्रक्रिया में MSDeploy को एकीकृत कर रहा हूं, और समस्याएं प्रमाणीकरण कर रहा हूं। निम्न आदेश ठीक काम करता है:MSDeploy.exe व्यवस्थापक के रूप में कनेक्ट हो सकता है, लेकिन कोई अन्य Windows खाता
msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=Administrator,password=secret -dest:package=c:\DeployTest\KPC.zip
हालांकि, यह काम नहीं करता:
msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=kpcpublish,password=secret -dest:package=c:\DeployTest\KPC.zip
और त्रुटि पैदावार:
Error Code: ERROR_USER_NOT_ADMIN
More Information: Connected to '192.168.0.11' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administ
rator on '192.168.0.11'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
मैं कड़ी में उपरोक्त निर्देश का पालन किया है, और कोई other docs I could find, जो कि बहुत कुछ एक ही बात कहता है:
- मैं बुलाया MSDepSvcUsers एक खाता kpcpublish
- कहा जाता है मैं एक समूह के लिए इस खाते जोड़ा बनाया - ओह, मैं भी व्यवस्थापकों के लिए खाता जुड़े
- मैं सही साइट पर क्लिक किया और चयनित Deploy-> कॉन्फ़िगर वेब परिनियोजन प्रकाशन और सूची में केपीसी प्रकाशित करें। यह निम्नलिखित है:
।
Publish enabled for 'SERVER\kpcpublish' Granted 'SERVER\kpcpublish' full control on 'C:\Website' Successfully created settings file 'C:\Users\Administrator\Desktop\SERVER_kpcpublish_KitchenPC.PublishSettings'
वहाँ कुछ कदम मैं याद कर रहा हूँ होना चाहिए, लेकिन मैं तो बस समझ नहीं क्या हो सकता है।
अद्यतन:
Error Code: ERROR_DESTINATION_NOT_REACHABLE More Information: Could not connect to the remote computer ("192.168.0.3"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DES TINATION_NOT_REACHABLE. Error: Unable to connect to the remote server Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection fa iled because connected host has failed to respond 192.168.0.3:8192 Error count: 1.
मैं देख लिया है और वेब प्रबंधन सेवा वास्तव में चल रहा है:
computerName
संपत्ति के लिए पूरे HTTP पथ का उपयोग करना, मैं त्रुटि मिलती है।
एक और अद्यतन:
मैं पूरी तरह से प्रणाली प्रशस्त किया और खरोंच से फिर से इसे सेट अप किया है। मैंने सामान्य से कुछ भी नहीं किया है, बस आईआईएस भूमिका स्थापित की है और प्रबंधन उपकरण के तहत "प्रबंधन सेवा" की जांच करना सुनिश्चित किया है, जो WMSVC चलाने के लिए आवश्यक है। मैंने फिर वेब पीआई स्थापित किया, और "होस्टिंग प्रदाता के लिए अनुशंसित विन्यास" स्थापित किया, जो वेब परिनियोजन 3.0 स्थापित करेगा। हालांकि, मैंने देखा कि इसे स्थापित करते समय एक त्रुटि हुई थी (मुझे विश्वास है कि मुझे पिछली बार भी यह त्रुटि मिली है)। ऐसा लगता है कि:
मैं भी लॉग फाइल here संलग्न किया है।
फिर मैंने वेब परिनियोजन 3.0 मैन्युअल रूप से स्थापित करने का प्रयास किया, हालांकि यह कहता है कि यह पहले से स्थापित है। इसके बाद, मैंने सीधे एमएसआई को http://www.iis.net/download/webdeploy से डाउनलोड किया और इसे "मरम्मत" मोड में चलाया। ऐसा लगता है कि काम किया है। मैंने यह भी देखा कि WMSVC सेवा ऊपर और चल रही है। तो यह अच्छा लग रहा है।
फिर भी, एमएसडीईपी कनेक्ट नहीं होगा। मैंने सोचा कि यह फ़ायरवॉल मुद्दे का कुछ प्रकार हो सकता है, इसलिए मैंने इसे स्थानीय रूप से चलाया। मैंने कनेक्ट करने के लिए दोनों HTTPS और HTTP का उपयोग करने का प्रयास किया है।एचटीटीपीएस मुझे एक त्रुटि देता है, HTTP 2-3 मिनट के बाद बस बाहर।
HTTPS:
msdeploy -verb:sync -source:appHostConfig="Default Web Site",computerName=https://STAGING:8172/msdeploy.axd,userName=Administrator,password=Khorf123 -dest:package=c:\DeleteMe.zip
Info: Using ID 'f3a54096-adc4-4f54-9e4f-ad8fde12edb6' for connections to the remote server.
Error Code: ERROR_CERTIFICATE_VALIDATION_FAILED
More Information: Connected to the remote computer ("staging") using the specified process ("Web Management Service"), but could not verify the server's certifi
cate. If you trust the server, connect again and allow untrusted certificates.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.
Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Error: The remote certificate is invalid according to the validation procedure.
Error count: 1.
HTTP:
msdeploy -verb:sync -source:appHostConfig="Default Web Site",computerName=http://STAGING:8172/msdeploy.axd,userName=Administrator,password=Khorf123 -dest:package=c:\DeleteMe.zip
Info: Using ID 'ebee66f0-08e5-4d9d-98ea-0c2e59784895' for connections to the remote server.
Error: Could not complete the request to remote agent URL 'http://staging:8172/msdeploy.axd'.
Error: The operation has timed out
Error count: 1.
सिर्फ एक विचार: फ़ाइल 'SERVER_kpcpublish_KitchenPC.PublishSettings' फ़ाइल को तैनात फ़ोल्डर में कहीं भी संग्रहीत नहीं किया जाना चाहिए, न कि आपके डेस्कटॉप में? – SearchAndResQ
@ फ़्लेक्स - अनुसरण नहीं किया जा रहा है। समय के लिए, मैं बस काम करने के लिए सुनिश्चित करने के लिए वेब सर्वर से स्थानीय ज़िप संग्रह में सिंक करने की कोशिश कर रहा हूं। मुझे वास्तव में यकीन नहीं है कि * PublishSettings फ़ाइल के साथ क्या करना है, मैंने सोचा था कि यह बस इतना था कि आपको कमांड लाइन पर सभी कनेक्शन जानकारी टाइप करने की आवश्यकता नहीं थी। –
सेटिंग्स फ़ाइल केवल तभी प्रासंगिक है जब आप इसे तैनाती के समय अपनी कॉन्फ़िगरेशन फ़ाइलों में मान इंजेक्ट करने के लिए उपयोग कर रहे हैं। – ulty4life