today I wanted to advance on the development of my application but I have some problem when i want start.
I'm on Zorin OS 16 (Linux) and when I want start electron application I can't and I get this error
[ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[ERROR:env.cc(255)] The platform failed to initialize. Exiting.
The futex facility returned an unexpected error code.
/usr/local/lib/node_modules/electron/dist/electron exited with signal SIGABRT
I have try to set "DISPLAY" with export DISPLAY=127.0.0.1:3000 but that doesn't change anything.
Anyone got the solution?
Related
After cloning my Ionic React project to my server, I ran npm install and all dependencies were installed as expected.
But when I tried to build my app running sudo ionic build --verbose, it tooks much more time than usual and ended like this :
eslint:lint-result-cache Persisting cached results: /var/www/html/ms-users-front/node_modules/.cache/.eslintcache +0ms
eslint:cli-engine Linting complete in: 4827ms +48ms
//It stay here for at least 10min before to failed while it tooks 1min in my local machine.
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
[ERROR] An error occurred while running subprocess react-scripts.
react-scripts build exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +1ms
ionic:utils-process processExit: exiting (exit code: 1) +44ms
My server is an ec2 instance with httpd installed and everything was working great before I tried to build a new version yesterday.
With exactly the same process, the app is building perfectly on my local machine...
I tried npm update, delete eslint cache, and build but without success.
I tried to downgrade Typescript to 4.1 because I had a warning saying that Typescript should be >4.5 and it was 4.7. But after some tests on local, it looks like this has no incidence on the build process.
I'm totally stuck and I absolutly don't know what to try.
I executed flutter update but I accidentally performed a ctrl-C during the operation and the update was interrupted. Since I had a message with a java problem, I ran flutter -doctor telling me that the JDK is missing. I downloaded jdk 14.0.2 installed, and declared the path in the .profile .
Now flutter -doctor asks me to run 'flutter doctor --android-licenses' but I get an error message:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 5 more
I faced same issue. I had to kill terminal app because it was not showing any progress for long time.
After that when I started terminal again, I tried running command flutter doctor and it resumed completing upgrade (like downloading/installing files) and after that it showed status like installation version, status of XCode, Android Studio, Simulator/Emulator etc.
So, running flutter doctor worked for me.
While running Azure DevOps tasks for cordova to build android getting following error, but the same code build fine in local machine!
[ERROR] An error occurred while running subprocess cordova.
cordova platform add android#8.0.0 --verbose exited with exit code 1.
Even including --verbose doesnt give any more insights into whats went wrong! Any clues on resolving this?
Log :
2020-06-10T12:07:08.9595670Z Updating icons at platforms/android/app/src/main/res
2020-06-10T12:07:08.9595970Z Updating splash screens at platforms/android/app/src/main/res
2020-06-10T12:07:08.9596290Z This app does not have additional resource files defined
2020-06-10T12:07:08.9596560Z Prepared android project successfully
2020-06-10T12:07:08.9597390Z Executing script found in plugin cordova-plugin-add-swift-support for hook "after_prepare": plugins/cordova-plugin-add-swift-support/add-swift-support.js
2020-06-10T12:07:08.9597890Z Resolving module name for glob => glob
2020-06-10T12:07:08.9598130Z Saving android#8.0.0 into platforms.json
2020-06-10T12:07:08.9598640Z --save flag or autosave detected
2020-06-10T12:07:08.9598910Z Saving android#~8.0.0 into config.xml file ...
2020-06-10T12:07:08.9599200Z adding android to cordova.platforms array in package.json
2020-06-10T12:07:08.9599480Z No scripts found for hook "after_platform_add".
2020-06-10T12:07:08.9599780Z [ERROR] An error occurred while running subprocess cordova.
2020-06-10T12:07:08.9600000Z
2020-06-10T12:07:08.9600570Z cordova platform add android#8.0.0 --verbose exited with exit code 1.
2020-06-10T12:07:08.9600850Z
2020-06-10T12:07:08.9601610Z Re-running this command with the --verbose flag may provide more information.
2020-06-10T12:07:08.9602390Z 2020-06-10T12:07:08.134Z ionic:utils-process onBeforeExit handler: 'process.exit' received
2020-06-10T12:07:08.9603200Z 2020-06-10T12:07:08.134Z ionic:utils-process onBeforeExit handler: running 1 functions
2020-06-10T12:07:08.9603970Z 2020-06-10T12:07:08.162Z ionic:utils-process processExit: exiting (exit code: 1)
2020-06-10T12:07:08.9604510Z [0m]
I have been playing around with the Cloud9 web-based IDE learning PHP
Today I went to run my project, and was presented with this error:
(20014)Internal error: AH00058: Error retrieving pid file /home/ubuntu/lib/apache2/run/apache2.pid
AH00059: Remove it before continuing if it is corrupted.
I have since been able to migrate my work using XAMPP, but would like to resolve my Cloud9 issue. Does anyone know how to resolve this in the Cloud9 environment?
Well, I feel rather dumb...resolved the issue myself by using Cloud9's terminal to navigate to the directory and then removed the corrupt file.
I got Same type problem & solution as follows. Hope someone may helpfull
Problem:
Started apache2
(20014)Internal error: AH00058: Error retrieving pid file
/home/ubuntu/lib/apache2/run/apache2.pid
AH00059: Remove it before continuing if it is corrupted.
Solution:
sudo rm /home/ubuntu/lib/apache2/run/apache2.pid then
sudo /home/ubuntu/lib/apache2/run/apache2.pid restart
I am getting error "Error:device" on blackberry 10 developers device. I get this error when I am installing the unsigned .bar file to the device.
It was working fine earlier but suddenly it started showing this error.
I tried to reboot the device, but still getting same error.
Which development environment/SDK are you using to get this error? Native/WebWorks/Air/Android.
Please tag your question according to the SDK to ensure you get a prompt response. Example (blackberry-webworks)
had to disable Automatic in USB mode to deploy from a linux host ...