Getting the following exception when tried to upload a file.
[2015-05-27 10:36:17,640] INFO com.oidev.ftp.server.BGFileReceipt – Exception connection to BG Server Could not obtain connection to any of these urls: fe80:0:0:0:241a:9771:5f8:7c08%15:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
[2015-05-27 10:36:17,701] INFO com.oidev.ftp.server.BGPluginLogin – start of upload detected
[2015-05-27 10:36:17,701] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:17 EDT 2015! [41:ftps411387:96.243.230.33] WROTE: *150 Opening BINARY mode data connection. Ready to write file upload test – Copy (20).csv. (“/ftps411387/upload test – Copy (20).csv”) S T O R*
[2015-05-27 10:36:17,984] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:17 EDT 2015! [41:ftps411387:96.243.230.33] WROTE: *226-Upload File Size:82940 bytes @ 80K/sec.*
[2015-05-27 10:36:17,985] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:17 EDT 2015! [41:ftps411387:96.243.230.33] WROTE: *226 Transfer complete. CRC32=A1A3D86E (“/ftps411387/upload test – Copy (20).csv”) STOR*
[2015-05-27 10:36:17,990] INFO com.oidev.ftp.server.BGPluginLogin – end of upload detected
[2015-05-27 10:36:17,990] INFO com.oidev.ftp.server.BGFileReceipt – RealTimeMonitor called for file = /ftps411387/upload test – Copy (20).csv user = ftps411387
[2015-05-27 10:36:18,000] DEBUG org.jnp.interfaces.NamingContext – Failed to connect to fe80:1099
javax.naming.CommunicationException: Failed to connect to server fe80:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server fe80:1099 [Root exception is java.net.UnknownHostException: fe80]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.oidev.bridgegate.SystemManager.getBridgeGateWorkFlow(SystemManager.java:196)
at com.oidev.ftp.server.BGFileReceipt.endUpload(BGFileReceipt.java:46)
at com.oidev.ftp.server.BGPluginLogin.endUpload(BGPluginLogin.java:200)
at com.oidev.ftp.server.STOR_handler.run(STOR_handler.java:847)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server fe80:1099 [Root exception is java.net.UnknownHostException: fe80]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
… 9 more
Caused by: java.net.UnknownHostException: fe80
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
… 9 more
[2015-05-27 10:36:18,112] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:18 EDT 2015! [41:ftps411387:96.243.230.33] READ : *PASV *
[2015-05-27 10:36:18,112] INFO com.oidev.ftp.server.BGPluginLogin – doCommand
[2015-05-27 10:36:18,112] INFO com.oidev.ftp.server.BGPluginLogin – PASV
[2015-05-27 10:36:18,112] INFO com.oidev.ftp.server.BGPluginLogin –
[2015-05-27 10:36:18,615] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:18 EDT 2015! [41:ftps411387:96.243.230.33] WROTE: *227 Entering Passive Mode (10,67,59,14,12,38)*
[2015-05-27 10:36:18,719] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:18 EDT 2015! [41:ftps411387:96.243.230.33] READ : *STOR upload test – Copy (21).csv*
[2015-05-27 10:36:18,719] INFO com.oidev.ftp.server.BGPluginLogin – doCommand
[2015-05-27 10:36:18,719] INFO com.oidev.ftp.server.BGPluginLogin – STOR
[2015-05-27 10:36:18,719] INFO com.oidev.ftp.server.BGPluginLogin – upload test – Copy (21).csv
[2015-05-27 10:36:23,001] INFO com.oidev.ftp.server.BGFileReceipt – Exception connection to BG Server Could not obtain connection to any of these urls: fe80:0:0:0:241a:9771:5f8:7c08%15:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
[2015-05-27 10:36:23,031] INFO com.oidev.ftp.server.BGPluginLogin – start of upload detected
[2015-05-27 10:36:23,031] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:23 EDT 2015! [41:ftps411387:96.243.230.33] WROTE: *150 Opening BINARY mode data connection. Ready to write file upload test – Copy (21).csv. (“/ftps411387/upload test – Copy (21).csv”) S T O R*
[2015-05-27 10:36:23,366] INFO com.oidev.ftp.server.ServerSession – !Wed May 27 10:36:23 EDT 2015! [41:ftps411387:96.243.230.33] WROTE: *226-Upload File Size:82940 bytes @ 80K/sec.*
— Answer –
It looks like it is be trying to use IPv6 addresses. If you can, disable IPv6 on that system. If you cannot, you will need to update the BridgeGate services to prefer IPv4. To do that, add the following option to the bg_*.conf files (pick an unused number where it says “XX”):
wrapper.java.additional.XX=-Djava.net.preferIPv4Stack=true