Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

we have to installations of AX2012. In the first every tier is installed on it's own machine. In this installation all inbound ports are activated. In the second installation all three tiers are installed on the same machine. In this installation the inbound ports are all deactivated. When I try to activate them I get an infolog with success messages except one errormessage:

System.OperationCanceledException: AIF service group not activated. Service group: [...]. Error: There is already a listener on IP endpoint 0.0.0.0:8201. 

Although the last message says "The port '[...]' was deployed successfully." the port is not activated.


In both installations the Ax32serv.exe is the listener to port 8201.

What can I do to get the inbound ports activated?

Regards
Patrick

*This post is locked for comments

  • Suggested answer
    Chaitan Profile Picture
    Chaitan 50 on at
    RE: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    Raghu,

    Assuming that you may have deleted the XPPIL folder and might have recreated it .

    My suggestion for the point 4 you mentioned above was to delete the content inside the XPPIL folder but not the folder itself, That folder should have some special permissions for AOS Service accounts.

    Looking at the error (“Cannot create a record in SysXppassembly”) you encountered makes me think that either AOS Service account is different between the 2 environments or it doesn't have appropriate permissions to write to that folder.

    Back to the CIL errors : Assuming there could be differences in the Binaries/Hotfixes between your environments, You can have warnings but not errors. Basically CIL error can cripple several functionalities in AX. In short you cannot have even a single error.

    It is very hard to give any suggestions without knowing the facts exactly about your test environment, Did you check if the port was occupied by something else ?

    Post me your reply or mail me.

    Will be glad to hear if its resolved.

    Thanks,

    Venkat Chaitanya Kanumukula

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    I am Facing below Error after Restoring Database, Both Model and transaction Database has been Restored.

    "AIF Service Group Not Activated Error: There is already a listener on end point 0.0.0.0.8201"

    Steps Followed after Restoring  Data Bases

    1. Stopped AOS

    2. Under. C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL  and delete all the content of the XppIL dir

    3. Started AOS and made Compile ( From Build tab.)

    4. Field Mismatch in Union Query Error appeared after doing Full CIL. (Only One Error)which I could not resolve after checking the EDT Relation length. I could not find any mismatch

    5. I ran Full CIL and again the Error  still exists ,

    My Observations

    1. I am unable to open any reports.

    2. I have encountered this Error Long back also, it got resolved on its own after running CIL.

    3. When I am Restoring Live Data to Test Data I will not find this problem but when I am restoring Test Data back to Test server, I am finding this Error.

    4.If I Truncate XPPIL Folder This Server group Error will be Resolved but one more Error Will appear Saying “Cannot create a record in SysXppassembly”

    5.In System administration if I check my Inbound ports they are with red Symbol and they have Error :Port not Started.

    AX  Version:AX 2012 R3

    Kernel Version :6.3.164.0

    Application Version:6.3.1000.473.

    I am Having confusion in above  2 options given by Chaitan.

    I am worried about the risk involved in each of the option . Or Should I work in understanding the basics relating to this changes

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    This is resolved after I restarted AOS server

  • Suggested answer
    Chaitan Profile Picture
    Chaitan 50 on at
    RE: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    If the above solution doesn't work then the best idea would be to follow below steps for the fix. But ideally I wouldn't suggest these steps to be executed in a Production environment.

    Stop AOS.

    Delete the files under XPPIL directory located under Server BIN directory.

    Truncate table (SysXPPAssembly) from SQL.

    Restart the AOS.

    Basically the IL binary files which are saved in this table might have been messed up there! On the AOS restart it produces the binaries freshly and updates the table which should fix the issue.

    regards,

    Chaitan

  • Suggested answer
    Chaitan Profile Picture
    Chaitan 50 on at
    RE: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    TCP port 8201 is basically occupied by something else and will block all the AIF services. AIF services start showing a red circle and would not come back.

    The easy solution to fix and get all the AIF services running would be assigning a new port.

    Steps for this are :

    Edit the Ax32Serv Config file located on the AOS Server under

    "C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\Ax32Serv.exe.config"

    Find  8201 and replace with either 8202 or 8301, Basically It replaces the ServicePort and net.tcp URL's in the file and doesn't require to restart the AOS.

    Go back to AIF Inbounds and click activate. That should show the Infolog with successful deployment.

    But remember to change the AXC connection files through AX Configuration Utility, since the WSDL has to be refreshed as it generates a fresh WSDL settings, If at all you are using the AXC connection files from a remote system to connect to AX Instance.

    Regards,

    Chaitan

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    Hello alltogether,

    regenerating CIL didnn't help, in contrary, in the course of generating the CIL AX tries to activate all inbound ports which resulted again in the error. But the hint of Sebastian did the trick. I had also imported company accounts with the export/import utility (from the Contoso-db) and I had imported all tables. Now I have overwritten all Aif*-tables with an export from a system where the inbound ports are working and now they are also working in the system were they didn't work before.

    Thanks Huzaifa and Sebastian for your help!

    Regards

    Patrick

  • Re: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    I meant full IL

    You can confirm your theory by keeping both database and ax configuration setting try connecting to both db turn by turn

  • Sebastian Aurand Profile Picture
    Sebastian Aurand 1,650 on at
    Re: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    Hello together,

    I did figure out, which must have been the error in my case. I installed a basic version of AX 2012 (DB, AOS, Client) and afterwards imported data via export/import from another 2012 version.

    Unfortunatly also some system tables (including tables AIF) where deleted and reimported from the other system. So the configuration was wrong. I couldn't find out which was the wrong setting in detail.

    As I rolled back the virtual image to the point before importing the data, the installation (prerequesite check) runs without problems.

    Maybe this will help

    Best regards

    Sebastian.

    @Huzaifa Gain: did you mean compilling / generating the CIL?

  • Re: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    Try generating full IL then try again

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Error message when activating inbound port in Aif: "There is already a listener on IP endpoint"

    Hello,

    also thanks for your response.

    In fact I've the same as Sebastian:

    TCP 0.0.0.0:8201 0.0.0.0:0 LISTENING 3044
    TCP [::]:8201 [::]:0 LISTENING 3044

    Process 3044 is Ax32serv.exe

    And here we have also another application were the inbound ports are all activated and port 8201 is listed identically with netstat, i.e. Ax32serv.exe is listener for port 8201.

    The only difference is that the application were it doesn't work is installed completely on one machine, the application were the inbound ports are activated is installed on one machine per tier.

    Hope that helps...

    Regards
    Patrick

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans