Comments (5)
@p3trur0 what do you think?
from freedomotic.
@mcicolella this seems a little abstract scenario. What do you specifically mean with startup problem? The front end part or the engine itself?
One proposal could be to send either an e-mail or to display a basic GUI prompt.
However, we should evaluate how much each of those approaches could be feasible according to the failure scenario (e.g.: if the JVM goes down it'd be difficult to perform any notification from freedomotic itself).
from freedomotic.
@p3trur0
I agree with you. If you start Freedomotic manually from command line you can see any log message about startup problems: environment file not found, network not available, other missing files etc
But an unmanned/headless installation requires a notification system. The same if you start FD by .exe or .sh file: the spash screen disappears and you don't know what happened.
from freedomotic.
Another notification: when the network is not available (e.g. PC not connected to a LAN/WLAN) FD stops with a lot of error messages
ERROR [main] - Failed to start Apache ActiveMQ ([ba0cb4d7-8aa8-4ad6-8241-7264de82a50f, ID:emmecilab-42086-1486394041702-0:2], java.net.SocketException: bad argument for IP_MULTICAST_IF2) INFO [main] - Apache ActiveMQ 5.14.1 (ba0cb4d7-8aa8-4ad6-8241-7264de82a50f, ID:emmecilab-42086-1486394041702-0:2) is shutting down INFO [main] - Network Connector DiscoveryNetworkConnector:NC:BrokerService[ba0cb4d7-8aa8-4ad6-8241-7264de82a50f] stopped ERROR [main] - Failed to advertise our service: freedomotic-commander.ActiveMQ-4.dead.%localhost%tcp://emmecilab:41678 java.io.IOException: Network is unreachable at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:693) at org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.doAdvertizeSelf(MulticastDiscoveryAgent.java:446)
from freedomotic.
Maybe the nicest way to notify the user about Freedomotic startup failure is an alert icon in the traybar. It is a quite universal GUI element whatever OS you are using. If you can add a baloon with critical last ActiveMQ warnings too, perhaps it would be perfect ;)
from freedomotic.
Related Issues (20)
- Create a Zigbee plugin
- Make Freedomotic compatible with Java 11 HOT 13
- Add icons with transparent background to Mailer plugin HOT 3
- Add icons with transparent background to Scheduler plugin HOT 2
- Changing object's label name causes problems in Freedomotic HOT 1
- Update Swagger to the latest version HOT 7
- Directory listing (Most)
- Add ObjectHasChanged event HOT 2
- Investigate why RestAPI tests fail HOT 4
- Add/update a translation for your language HOT 24
- Failure in building freedomotic-model 5.6-SNAPSHOT HOT 2
- Freedomotic should have an univocal instance UUID in p2p
- Swagger should point to univocal Freedomotic’s instance (UUID) in p2p
- Complete connections between Freedomotic API and PhPMyDomo HOT 1
- Dependency conflicts on org.apache.httpcomponents:httpclient, leading to inconsistent program behaviors HOT 4
- Fix icon position in Plugin card HOT 1
- Import/export customized environment configuration file HOT 1
- Add a workflow for CI with Github Actions HOT 1
- Review Dockerfile to manage Github CI dailybuilds HOT 1
- Enable dailybuilds publishing on GitHub HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freedomotic.