activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhanu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-4603) Errors while creating directory tmp_storage
Date Wed, 26 Jun 2013 12:07:21 GMT

    [ https://issues.apache.org/jira/browse/AMQ-4603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13693932#comment-13693932
] 

Bhanu commented on AMQ-4603:
----------------------------

2013-06-24 02:00:22,114 | ERROR | Caught an IO Exception getting the DiskList 29184_TopicSubscription:29127[ID:duke.hyd..com-31932-1370775167622-0:2:-1:1]
| org.apache.activemq.broker.region.cursors.FilePendingMessageCursor | ActiveMQ Transport:
tcp:///10.77.31.20:44101@61613
java.io.IOException: Failed to create directory 'activemq-data/amqProdBroker/tmp_storage'
	at org.apache.activemq.util.IOHelper.mkdirs(IOHelper.java:294)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.intialize(PListStoreImpl.java:278)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.getPList(PListStoreImpl.java:223)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.getPList(PListStoreImpl.java:49)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.getDiskList(FilePendingMessageCursor.java:463)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.flushToDisk(FilePendingMessageCursor.java:441)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.tryAddMessageLast(FilePendingMessageCursor.java:228)
	at org.apache.activemq.broker.region.TopicSubscription.add(TopicSubscription.java:149)
	at org.apache.activemq.broker.region.policy.SimpleDispatchPolicy.dispatch(SimpleDispatchPolicy.java:48)
	at org.apache.activemq.broker.region.Topic.dispatch(Topic.java:688)
	at org.apache.activemq.broker.region.Topic.doMessageSend(Topic.java:499)
	at org.apache.activemq.broker.region.Topic.send(Topic.java:435)
	at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:406)
	at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:392)
	at org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:282)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:550)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:481)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:476)
	at org.apache.activemq.advisory.AdvisoryBroker.addDestinationInfo(AdvisoryBroker.java:195)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223)
	at org.apache.activemq.broker.util.LoggingBrokerPlugin.addDestinationInfo(LoggingBrokerPlugin.java:476)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223)
	at org.apache.activemq.broker.TransportConnection.processAddDestination(TransportConnection.java:527)
	at org.apache.activemq.command.DestinationInfo.visit(DestinationInfo.java:122)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
	at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:45)
	at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:288)
	at org.apache.activemq.transport.stomp.StompTransportFilter.sendToActiveMQ(StompTransportFilter.java:84)
	at org.apache.activemq.transport.stomp.ProtocolConverter.sendToActiveMQ(ProtocolConverter.java:195)
	at org.apache.activemq.transport.stomp.ProtocolConverter.createTempDestination(ProtocolConverter.java:898)
	at org.apache.activemq.transport.stomp.LegacyFrameTranslator.convertDestination(LegacyFrameTranslator.java:195)
	at org.apache.activemq.transport.stomp.ProtocolConverter.onStompSubscribe(ProtocolConverter.java:554)
	at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommand(ProtocolConverter.java:245)
	at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:73)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
	at java.lang.Thread.run(Thread.java:722)
2013-06-24 02:00:22,114 | ERROR | Caught an Exception adding a message: Message ID:txnref1.nyc..com-57965-1370699365762-1:1:0:0:1635050
dropped=false acked=false locked=false first to FilePendingMessageCursor  | org.apache.activemq.broker.region.cursors.FilePendingMessageCursor
| ActiveMQ Transport: tcp:///10.77.31.20:44101@61613
java.lang.RuntimeException: java.io.IOException: Failed to create directory 'activemq-data/amqProdBroker/tmp_storage'
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.getDiskList(FilePendingMessageCursor.java:466)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.flushToDisk(FilePendingMessageCursor.java:441)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.tryAddMessageLast(FilePendingMessageCursor.java:228)
	at org.apache.activemq.broker.region.TopicSubscription.add(TopicSubscription.java:149)
	at org.apache.activemq.broker.region.policy.SimpleDispatchPolicy.dispatch(SimpleDispatchPolicy.java:48)
	at org.apache.activemq.broker.region.Topic.dispatch(Topic.java:688)
	at org.apache.activemq.broker.region.Topic.doMessageSend(Topic.java:499)
	at org.apache.activemq.broker.region.Topic.send(Topic.java:435)
	at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:406)
	at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:392)
	at org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:282)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:550)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:481)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:476)
	at org.apache.activemq.advisory.AdvisoryBroker.addDestinationInfo(AdvisoryBroker.java:195)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223)
	at org.apache.activemq.broker.util.LoggingBrokerPlugin.addDestinationInfo(LoggingBrokerPlugin.java:476)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223)
	at org.apache.activemq.broker.TransportConnection.processAddDestination(TransportConnection.java:527)
	at org.apache.activemq.command.DestinationInfo.visit(DestinationInfo.java:122)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
	at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:45)
	at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:288)
	at org.apache.activemq.transport.stomp.StompTransportFilter.sendToActiveMQ(StompTransportFilter.java:84)
	at org.apache.activemq.transport.stomp.ProtocolConverter.sendToActiveMQ(ProtocolConverter.java:195)
	at org.apache.activemq.transport.stomp.ProtocolConverter.createTempDestination(ProtocolConverter.java:898)
	at org.apache.activemq.transport.stomp.LegacyFrameTranslator.convertDestination(LegacyFrameTranslator.java:195)
	at org.apache.activemq.transport.stomp.ProtocolConverter.onStompSubscribe(ProtocolConverter.java:554)
	at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommand(ProtocolConverter.java:245)
	at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:73)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Failed to create directory 'activemq-data/amqProdBroker/tmp_storage'
	at org.apache.activemq.util.IOHelper.mkdirs(IOHelper.java:294)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.intialize(PListStoreImpl.java:278)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.getPList(PListStoreImpl.java:223)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.getPList(PListStoreImpl.java:49)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.getDiskList(FilePendingMessageCursor.java:463)
	... 37 more
2013-06-24 02:00:22,114 | WARN  | Async error occurred: java.lang.RuntimeException: java.lang.RuntimeException:
java.io.IOException: Failed to create directory 'activemq-data/amqProdBroker/tmp_storage'
| org.apache.activemq.broker.TransportConnection.Service | ActiveMQ Transport: tcp:///10.77.31.20:44101@61613
java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Failed to create
directory 'activemq-data/amqProdBroker/tmp_storage'
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.tryAddMessageLast(FilePendingMessageCursor.java:241)
	at org.apache.activemq.broker.region.TopicSubscription.add(TopicSubscription.java:149)
	at org.apache.activemq.broker.region.policy.SimpleDispatchPolicy.dispatch(SimpleDispatchPolicy.java:48)
	at org.apache.activemq.broker.region.Topic.dispatch(Topic.java:688)
	at org.apache.activemq.broker.region.Topic.doMessageSend(Topic.java:499)
	at org.apache.activemq.broker.region.Topic.send(Topic.java:435)
	at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:406)
	at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:392)
	at org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:282)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:550)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:481)
	at org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:476)
	at org.apache.activemq.advisory.AdvisoryBroker.addDestinationInfo(AdvisoryBroker.java:195)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223)
	at org.apache.activemq.broker.util.LoggingBrokerPlugin.addDestinationInfo(LoggingBrokerPlugin.java:476)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223)
	at org.apache.activemq.broker.TransportConnection.processAddDestination(TransportConnection.java:527)
	at org.apache.activemq.command.DestinationInfo.visit(DestinationInfo.java:122)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
	at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:45)
	at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:288)
	at org.apache.activemq.transport.stomp.StompTransportFilter.sendToActiveMQ(StompTransportFilter.java:84)
	at org.apache.activemq.transport.stomp.ProtocolConverter.sendToActiveMQ(ProtocolConverter.java:195)
	at org.apache.activemq.transport.stomp.ProtocolConverter.createTempDestination(ProtocolConverter.java:898)
	at org.apache.activemq.transport.stomp.LegacyFrameTranslator.convertDestination(LegacyFrameTranslator.java:195)
	at org.apache.activemq.transport.stomp.ProtocolConverter.onStompSubscribe(ProtocolConverter.java:554)
	at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommand(ProtocolConverter.java:245)
	at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:73)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: java.io.IOException: Failed to create directory 'activemq-data/amqProdBroker/tmp_storage'
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.getDiskList(FilePendingMessageCursor.java:466)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.flushToDisk(FilePendingMessageCursor.java:441)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.tryAddMessageLast(FilePendingMessageCursor.java:228)
	... 35 more
Caused by: java.io.IOException: Failed to create directory 'activemq-data/amqProdBroker/tmp_storage'
	at org.apache.activemq.util.IOHelper.mkdirs(IOHelper.java:294)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.intialize(PListStoreImpl.java:278)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.getPList(PListStoreImpl.java:223)
	at org.apache.activemq.store.kahadb.plist.PListStoreImpl.getPList(PListStoreImpl.java:49)
	at org.apache.activemq.broker.region.cursors.FilePendingMessageCursor.getDiskList(FilePendingMessageCursor.java:463)
	... 37 more
                
> Errors while creating directory tmp_storage
> -------------------------------------------
>
>                 Key: AMQ-4603
>                 URL: https://issues.apache.org/jira/browse/AMQ-4603
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.8.0
>         Environment: Linux
>            Reporter: Bhanu
>
> Hi,
> I am time and again running into this error which says that Failed to create directory
'activemq-data/amqProdBroker/tmp_storage'.
> I went into the code and it seems like a bug to me. In IOHelper.mkdirs, broker simply
throws an exception based on the return value of Java.io.File.mkdirs function. The java mkdirs
returns false if the directory is already present. In my case activemq-data/<broker-name>/tmp_storage
is already present. So I run into this exception. Can this be handled more gracefully please.
> Attaching detailed error log in a moment.
> Thanks,
> Bhanu

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message