How do I get Android Studio virtual devices to run (stop terminating)?
Android Studio Chipmunk (2021.2.1)
This is the first time using Android Studio for me and I'm trying to get the Android emulator to work, to start learning Java. Everytime I try to run an emulator I get the following message:
The emulator process for AVD {device-name} has terminated.
I feel like I've tried everything I could find on the web. Here's what I have tried so far:
Checking my disk space as suggested here and even removing some unnecessary applications, despite having more than enough disk space (well over 80 GB).
Removing every virtual device and re-installing them again one by one using the built in Device Manager.
Removing the Android Emulator entirely and re-installing it from within the SDK Tools tab, found under the Tools > SDK Manager application menu.
Creating an advancedFeatures.ini file under C:\Users\ {name}\ .android\ as suggested here and in other posts with different lines in the file.
Restarting my PC and Android Studio throughout the entire process, after every step mentioned here.
Removing Android Studio completely from my system, then downloading it (from the official website) and installing it again.
Looking at the idea.log file. There's a bunch of errors regarding the emulator, which I cannot make sense of.
Does anybody have an idea what to do?
Here's what the idea.log file says about the emulator:
2022-05-16 10:23:53,804 [ 308433] WARN - alytics.SystemInfoStatsMonitor - CpuInfoFlags.fromExitCode(): unknown flag values '0x80'
2022-05-16 10:24:46,048 [ 360677] INFO - Emulator: Pixel 5 API Tiramisu - C:\Users\{username}\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_5_API_Tiramisu -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
2022-05-16 10:24:47,098 [ 361727] INFO - Emulator: Pixel 5 API Tiramisu - C:\Users\{username}\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_5_API_Tiramisu -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
2022-05-16 10:24:49,548 [ 364177] WARN - Emulator: Pixel 5 API Tiramisu - unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
2022-05-16 10:24:49,564 [ 364193] INFO - Emulator: Pixel 5 API Tiramisu - Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
2022-05-16 10:24:49,564 [ 364193] WARN - Emulator: Pixel 5 API Tiramisu - Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
2022-05-16 10:24:51,046 [ 365675] WARN - Emulator: Pixel 5 API Tiramisu - cannot add library vulkan-1.dll: failed
2022-05-16 10:24:51,046 [ 365675] WARN - Emulator: Pixel 5 API Tiramisu - cannot add library vulkan-1.dll: failed
2022-05-16 10:24:51,073 [ 365702] INFO - Emulator: Pixel 5 API Tiramisu - configAndStartRenderer: setting vsync to 60 hz
2022-05-16 10:24:51,073 [ 365702] INFO - Emulator: Pixel 5 API Tiramisu - Sending adb public key [QAAAAC03lzdbz2r7trf4HeurXGQ9LdN2Kex6Luf2QjY0wlgNvxm+NCxU0TyJXB+NOfqXcglhbuChvc1zyLz57tbnSrH5zzmXMzN4WmbS9BTW5uIuNfLGP+TQRdHvBiWvqgkOSOKqp4NQiclDOfet4EuGUqRvxGuKbEYLWMsVHfMnXWSOuuUr5hQl1s/MPKkthtC0fVTDJMQIV5xAN85Z9pUhUqOdxPyU4X8xvo/nFFOaZLD4h+UyKp4Yn6WXvm+Q0aceAr2YvEirpBUbj2KFoMzFP29kokuZTmtENhEF/WQXjQ8OhecQ99z3NUQdIhWDk3x8xKvkWepxWCtKVGn3jCJObE8c4bGt2OUmsWQkvVP/9/5wh+B0qLTtInXtoQiNman64QEvrZMYOPZxIJ+RNBExu5pJytEK5ntxQhQPUcL3aY+mNNCQotGXyJrxPIvtiEJyUFHfQcM+Ulned9eDGTNN0TcOOWjBcKUoMt9NllZ5/mUCSsf0rgyy4YvtLiqV/1EWxYo96kl+v8MH6jMiJN9MHgzPFZMt8+azTZGDoDIbo7T5aBvv3hvECUCiWwIdbhQmK6bKdNqjd8ovnF0hAcporw0iPC+mNWiC9onVToMgJE7oRwtCi42voElCDTl/+cuEVnBREVjk16I31fuWIewM6pBoSM7F3wwPbjRXbsedpuQ613f+HwEAAQA= #unknown]
2022-05-16 10:24:51,074 [ 365703] INFO - Emulator: Pixel 5 API Tiramisu - added library C:\Users\{username}\AppData\Local\Android\Sdk\emulator\lib64\vulkan\vulkan-1.dll
2022-05-16 10:24:51,074 [ 365703] INFO - Emulator: Pixel 5 API Tiramisu - Rootcanal has been activated.
2022-05-16 10:24:51,074 [ 365703] INFO - Emulator: Pixel 5 API Tiramisu - HAX is working and emulator runs in fast virt mode.
2022-05-16 10:24:51,508 [ 366137] INFO - b.PhysicalDeviceChangeListener - emulator-5554 connected
2022-05-16 10:24:51,510 [ 366139] INFO - Emulator: Pixel 5 API Tiramisu - Started GRPC server at 127.0.0.1:8554, security: Local+token
2022-05-16 10:24:51,511 [ 366140] INFO - Emulator: Pixel 5 API Tiramisu - Advertising in: C:\Users\{username}\AppData\Local\Temp\avd\running\pid_3028.ini
2022-05-16 10:24:51,915 [ 366544] INFO - Emulator: Pixel 5 API Tiramisu - VCPU shutdown request
2022-05-16 10:24:51,915 [ 366544] INFO - Emulator: Pixel 5 API Tiramisu - Deleting snapshot default_boot
2022-05-16 10:24:52,061 [ 366690] INFO - Emulator: Pixel 5 API Tiramisu - Shutting down gRPC endpoint
2022-05-16 10:24:52,062 [ 366691] INFO - Emulator: Pixel 5 API Tiramisu - Shutting down gRPC endpoint
2022-05-16 10:24:52,074 [ 366703] INFO - Emulator: Pixel 5 API Tiramisu - Closing down rootcanal.
2022-05-16 10:24:52,473 [ 367102] ERROR - Emulator: Pixel 5 API Tiramisu - Running multiple emulators with the same AVD
2022-05-16 10:24:52,474 [ 367103] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,485 [ 367114] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,486 [ 367115] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - is an experimental feature.
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,487 [ 367116] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,488 [ 367117] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,488 [ 367117] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:52,488 [ 367117] ERROR - Emulator: Pixel 5 API Tiramisu - Please use -read-only flag to enable this feature.
2022-05-16 10:24:52,489 [ 367118] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,489 [ 367118] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,489 [ 367118] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,490 [ 367119] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:52,491 [ 367120] INFO - Emulator: Pixel 5 API Tiramisu - Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
2022-05-16 10:24:52,588 [ 367217] INFO - Emulator: Pixel 5 API Tiramisu - Process finished with exit code 1
2022-05-16 10:24:52,588 [ 367217] ERROR - Emulator: Pixel 5 API Tiramisu - Emulator terminated with exit code 1
java.lang.Throwable: Emulator terminated with exit code 1
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
at com.android.tools.idea.avdmanager.EmulatorProcessHandler$ConsoleListener.onTextAvailable(EmulatorProcessHandler.kt:89)
at jdk.internal.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:247)
at com.sun.proxy.$Proxy33.onTextAvailable(Unknown Source)
at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:221)
at com.intellij.execution.process.ProcessTerminatedListener.processTerminated(ProcessTerminatedListener.java:54)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:247)
at com.sun.proxy.$Proxy33.processTerminated(Unknown Source)
at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:205)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:280)
at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:188)
at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:184)
at com.intellij.execution.process.BaseProcessHandler.onOSProcessTerminated(BaseProcessHandler.java:61)
at com.intellij.execution.process.BaseOSProcessHandler$1.lambda$startNotified$0(BaseOSProcessHandler.java:99)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$0(ProcessWaitFor.java:45)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$1(ProcessWaitFor.java:23)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
2022-05-16 10:24:52,591 [ 367220] ERROR - Emulator: Pixel 5 API Tiramisu - Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546
2022-05-16 10:24:52,592 [ 367221] ERROR - Emulator: Pixel 5 API Tiramisu - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-05-16 10:24:52,592 [ 367221] ERROR - Emulator: Pixel 5 API Tiramisu - OS: Windows 10
2022-05-16 10:24:52,593 [ 367222] ERROR - Emulator: Pixel 5 API Tiramisu - Last Action:
2022-05-16 10:24:53,887 [ 368516] INFO - Emulator: Pixel 5 API Tiramisu - Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
2022-05-16 10:24:53,950 [ 368579] INFO - Emulator: Pixel 5 API Tiramisu - Process finished with exit code 0
2022-05-16 10:24:54,122 [ 368751] INFO - b.PhysicalDeviceChangeListener - emulator-5554 disconnected
2022-05-16 10:25:38,691 [ 413320] INFO - rationStore.ComponentStoreImpl - Saving appClangTidySettings took 16 ms, NotificationConfiguration took 15 ms, YamlEditorOptions took 16 ms
2022-05-16 10:25:38,769 [ 413398] INFO - rationStore.ComponentStoreImpl - Saving Project(name=Learning_Environment, containerState=COMPONENT_CREATED, componentStore=C:\Users\{username}\AndroidStudioProjects\Learning_Environment)FileEditorManager took 15 ms, ServiceViewManager took 16 ms, Vcs.Log.Tabs.Properties took 16 ms, XDebuggerManager took 15 ms
Try to change the graphic of your emulator from automatic to Software
I don't know an exact cause of this problem - it seems something related to graphics, and happened after last emulator update in my case.
What helped me was running emulator using console and changing graphics settings. I'm using Ubuntu 20.04 so all paths are for linux.
List all your avds: $./emulator -list-avds
Then start avd with software acceleration mode: $./emulator -avd MY_AVD_NAME -gpu swiftshader_indirect - this very line started my avd. This is enough to use the emulator.
(Optional) I wanted to be able to start emulator from Android Studio, so tried different settings in avd, and what works was:
After this you can run your avd from AS or just with $./emulator -avd MY_AVD_NAME
Also it looks like there is an alternative way: change setting in /home/user/.android/avd/MY_AVD_NAME.avd/config.ini file:
hw.gpu.enabled = yes
hw.gpu.mode = swiftshader_indirect
Google link: https://developer.android.com/studio/run/emulator-acceleration#command-gpu
I have tried to install GraphDB standalone server(9.4 and 9.5) on Ubuntu 20.04 while unzipping the zip file. Then, I went to graphdb/bin to execute "graphdb". On both version, I got the message warning below and the GraphDB server never run at localhost:7200. Il seems to have problem with Sprint framwork...?
Any ideas how to by pass this problem?
My java version is :
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
Thank you in advance for your advice.
/graphdb-free-9.5.0/bin$ sudo ./graphdb
./graphdb: line 75: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[INFO ] 2021-01-11 13:03:43,598 [main | c.o.g.Config] Using 'file:/usr/local/graphdb-free-9.5.0/conf/logback.xml' as logback'hdb
[INFO ] 2021-01-11 13:03:44,388 [main | c.o.g.s.GraphDB] Starting GraphDB in workbench mode.
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Home directory: /usr/local/graphdb-free-9.5.0
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Config directory: /usr/local/graphdb-free-9.5.0/conf
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Data directory: /usr/local/graphdb-free-9.5.0/data
[INFO ] 2021-01-11 13:03:56,822 [main | c.o.g.Config] GraphDB Work directory: /usr/local/graphdb-free-9.5.0/work
[INFO ] 2021-01-11 13:03:56,823 [main | c.o.g.Config] GraphDB Logs directory: /usr/local/graphdb-free-9.5.0/logs
[INFO ] 2021-01-11 13:04:03,652 [main | c.o.g.s.GraphDB] Started GraphDB in workbench mode at port 7200.
[WARN ] 2021-01-11 13:05:24,330 [http-nio-7200-exec-1 | o.s.w.s.PageNotFound] No handler found for GET /
[WARN ] 2021-01-11 13:05:24,332 [http-nio-7200-exec-1 | o.s.w.s.m.s.DefaultHandlerExceptionResolver] Resolved [org.springframework.web.servlet.NoHandlerFoundException: No handler found for GET /] ```
It looks like you locale is misconfigured. Could you send the output of "locale" command? GraphDB is using LANG=en_US.UTF-8 and LC_ALL=en_US.UTF-8, so if it fails to set them it could fail to initialize. Whay you could do is chech for typo in ~/.bashrc or the following:
sudo nano /etc/default/locale
LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
I tried to attach to a container from Mac OS X.
I got messages below.
[0 ms] Start: Resolving remote
[1 ms] Setting up container rails_web_1
[43 ms] Start: Check Docker is running
[70 ms] Start: Inspecting container
[123 ms] Start: Run in container: uname -m
[361 ms] x86_64
[361 ms]
[361 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[373 ms] PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[373 ms]
[374 ms] Start: Run in container: cat /etc/passwd
[377 ms] Start: Run in container: test -d /root/.vscode-server
[380 ms]
[380 ms]
[380 ms] Start: Run in container: set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[386 ms]
[386 ms]
[386 ms] Exit code 2
[388 ms] Start: Run in container: # Copy .gitconfig
[391 ms] .gitconfig exists
[391 ms]
[391 ms] Start: Run in container: test -d /root/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0
[393 ms]
[393 ms]
[393 ms] Exit code 1
[393 ms] Installing VS Code Server for commit 26076a4de974ead31f97692a0d32f90d735645c0
[393 ms] Start: Run in container: mkdir -p /root/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0_1580278754058
[398 ms]
[398 ms]
[398 ms] Start: Downloading VS Code Server
[531 ms] Error: Client network socket disconnected before secure TLS connection was established
at connResetException (internal/errors.js:559:14)
at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)
at Object.onceWrapper (events.js:288:20)
at TLSSocket.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
It seems to failed establishing TLS connection.
I checked the version of related tools on the container. But I think it is not too old.
# openssl version
OpenSSL 1.1.0l 10 Sep 2019
# node --version
v10.18.1
What should I do in the next?
This was an issue caused by my firewall setting.
This was solved when I disabled firewall.
The VsCode's debug mode isn't launching the app any more, eiter through the AVD or a real android device. Used to working perfectly on both until yesterday.
I am getting an error
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I ran flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [version 10.0.17134.523], locale fr-FR)
• Flutter version 1.0.0 at F:\flutter_src
• Framework revision 5391447fae (6 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at F:\Android_sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = F:\Android_sdk
• Java binary at: F:\Android_src\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio at F:\Android_src
• Flutter plugin version 31.3.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
I have to say that I have absolutely no idea of what went wrong.
I don't think it is code related, has I haven't made huge impacting change to my project. Other than that error inside the debug console, it isn't throwing me anything else.
Edit
Flutter run -v
[ +128 ms] executing: [F:\flutter_src\] git rev-parse --abbrev-ref --symbolic #{u}
[ +245 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [F:\flutter_src\] git rev-parse --abbrev-ref HEAD
[ +73 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +2 ms] stable
[ ] executing: [F:\flutter_src\] git ls-remote --get-url origin
[ +88 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [F:\flutter_src\] git log -n 1 --pretty=format:%H
[ +99 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] 5391447fae6209bb21a89e6a5a6583cac1af9b4b
[ ] executing: [F:\flutter_src\] git log -n 1 --pretty=format:%ar
[ +80 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 6 weeks ago
[ +1 ms] executing: [F:\flutter_src\] git describe --match v*.*.* --first-parent --long --tags
[ +253 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.0.0-0-g5391447fa
[ +308 ms] executing: F:\Android_sdk\platform-tools\adb devices -l
[+4275 ms] Exit code 0 from: F:\Android_sdk\platform-tools\adb devices -l
[ ] List of devices attached
[ +19 ms] No connected devices.
[ +20 ms] "flutter run" took 4 413ms.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:249:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:379:11)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:335:33)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#5 _rootRun (dart:async/zone.dart:1124:13)
#6 _CustomZone.run (dart:async/zone.dart:1021:19)
#7 _runZoned (dart:async/zone.dart:1516:10)
#8 runZoned (dart:async/zone.dart:1463:12)
#9 AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:326:20)
#11 CommandRunner.runCommand (package:args/command_runner.dart:196:27)
<asynchronous suspension>
#12 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:401:21)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#14 _rootRun (dart:async/zone.dart:1124:13)
#15 _CustomZone.run (dart:async/zone.dart:1021:19)
#16 _runZoned (dart:async/zone.dart:1516:10)
#17 runZoned (dart:async/zone.dart:1463:12)
#18 AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:361:19)
<asynchronous suspension>
#20 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:111:29)
#21 new Future.sync (dart:async/future.dart:224:31)
#22 CommandRunner.run (package:args/command_runner.dart:111:11)
#23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:241:18)
#24 run.<anonymous closure> (package:flutter_tools/runner.dart:60:20)
<asynchronous suspension>
#25 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#26 _rootRun (dart:async/zone.dart:1124:13)
#27 _CustomZone.run (dart:async/zone.dart:1021:19)
#28 _runZoned (dart:async/zone.dart:1516:10)
#29 runZoned (dart:async/zone.dart:1463:12)
#30 AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#31 runInContext (package:flutter_tools/src/context_runner.dart:43:24)
<asynchronous suspension>
#32 run (package:flutter_tools/runner.dart:51:10)
#33 main (package:flutter_tools/executable.dart:51:9)
<asynchronous suspension>
#34 main (file:///E:/b/build/slave/Windows_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#35 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:287:32)
#36 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
EDIT 2 : Thanks to Siavash for speaking about "flutter clean".
It solved the problem !
Still curious about the "why" of this problem tho.
Thank to Siavash : flutter clean, from inside the project folder, solved the issue (or simply by using the VSCode terminal).
here I have a answer. See steps below:-
1- Go to your flutter folder where you saved, go and run the 'flutter_console.bat' file. a console will be open.
2- Type "flutter doctor".:-
3- It will show all the problems in your flutter setup. In my case you can see:-
C:\Users\M A Hafeez>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.19042.685], locale en-US)
flutter_run
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
X No Java Development Kit (JDK) found; You must have the environment variable JAVA_HOME set and the java binary in your PATH. You can download the JDK from https://www.oracle.com/technetwork/java/javase/downloads/.
[!] Android Studio (not installed)
[√] VS Code (version 1.52.1)
[√] Connected device (1 available)
! Doctor found issues in 2 categories.
Basically my error was about Java, that I have no installed before facing this error.
Hope this will be helpful. :)
Enjoy Coding
I installed the only office by using the below command :
docker run --net onlyoffice --name onlyoffice-document-server onlyoffice/documentserver
docker run --net onlyoffice --privileged -i -t -d --name onlyoffice-mail-server -p 25:25 -p 143:143 -p 587:587 -h 10.0.2.37 onlyoffice/mailserver
docker run --net onlyoffice -i -t -d --name onlyoffice-community-server -p 80:80 -p 5222:5222 -p 443:443 --link onlyoffice-mail-server:mail_server --link onlyoffice-document-server:document_server onlyoffice/communityserver
and here are the logs of the mail server :
[root#V37 ~]# docker logs 051df1fda9d6
[ INFO ] Checking configuration file: /usr/src/iRedMail/config ... [FOUND]
[ INFO ] Import installation process status from file: /usr/src/iRedMail/runtime/install.status.
Start iRedMail Configurations
[ INFO ] Create required system accounts: vmail, iredapd.
[ INFO ] Configure Apache web server and PHP.
[ INFO ] Configure PHP.
[ INFO ] Configure MySQL database server.
[ INFO ] Configure Postfix (Message Transfer Agent).
[ INFO ] Configure Cluebringer (postfix policy server).
[ INFO ] Configure Dovecot (pop3/imap/managesieve server).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure OpenDkim.
[ INFO ] Configure Fail2ban (authentication failure monitor).
[ INFO ] Configure Server API.
[ INFO ] Configure SpamTrainer.
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate a strong, unique Diffie Hellman Group with openssl, please > wait.
iRedMail-0.9.2 installation and configuration complete.
[ INFO ] Disable SELinux in /etc/selinux/config.
[ INFO ] Removing package(s): sendmail
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package sendmail.x86_64 0:8.14.4-9.el6_8.1 will be erased
--> Processing Dependency: sendmail = 8.14.4-9.el6_8.1 for package: sendmail-> devel-8.14.4-9.el6_8.1.x86_64
--> Running transaction check
---> Package sendmail-devel.x86_64 0:8.14.4-9.el6_8.1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================
Package Arch Version Repository Size
Removing:
sendmail x86_64 8.14.4-9.el6_8.1 #base 1.5 M
Removing for dependencies:
sendmail-devel x86_64 8.14.4-9.el6_8.1 #base 254 k
Transaction Summary
Remove 2 Package(s)
Installed size: 1.8 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : sendmail-devel-8.14.4-9.el6_8.1.x86_64 1/2
Erasing : sendmail-8.14.4-9.el6_8.1.x86_64 2/2
Verifying : sendmail-devel-8.14.4-9.el6_8.1.x86_64 1/2
Verifying : sendmail-8.14.4-9.el6_8.1.x86_64 2/2
Removed:
sendmail.x86_64 0:8.14.4-9.el6_8.1
Dependency Removed:
sendmail-devel.x86_64 0:8.14.4-9.el6_8.1
Complete!
grep: /etc/ssh/sshd_config: No such file or directory
[ INFO ] Copy firewall sample rules: /etc/sysconfig/iptables.
[ INFO ] Restarting firewall ...
[ INFO ] Copy MySQL sample file: /etc/my.cnf.
[ INFO ] Enable SSL support for MySQL server.
URLs of installed web applications:
Webmail:
Username: postmaster#mailserver.onlyoffice.com, Password: orC61TNQ15
Web admin panel (iRedAdmin):
You can login to above links with same credential:
o Username: postmaster#mailserver.onlyoffice.com
o Password: orC61TNQ15
Congratulations, mail server setup completed successfully. Please
read below file for more information:
/usr/src/iRedMail/iRedMail.tips
And it's sent to your mail account postmaster#mailserver.onlyoffice.com.
********************* WARNING **************************************
*
Rebooting your system is required to enable mail services.
mkdir: cannot create directory /var/log/httpd': File exists rm: cannot > remove/var/run/syslogd.pid': No such file or directory
rm: cannot remove /var/run/cbpolicyd.pid': No such file or directory rm: > cannot remove/var/run/opendkim/opendkim.pid': No such file or directory
Waiting for external MySql response
/usr/src/iRedMail/functions/mysql.sh: line 33: ECHO_INFO: command not found
/usr/src/iRedMail/functions/mysql.sh: line 36: ECHO_DEBUG: command not found
Starting crond: [ OK ]
Starting Dovecot Imap: [ OK ]
Starting system logger: [ OK ]
Starting amavisd: [ OK ]
Starting postfix: [FAILED]
Starting cbpolicyd: [ OK ]
Starting Clam AntiVirus Daemon: LibClamAV Warning: > **************************************************
LibClamAV Warning: * The virus database is older than 7 days!
LibClamAV Warning: Please update it as soon as possible. *
LibClamAV Warning: **************************************************
[ OK ]
Starting clamd.amavisd: LibClamAV Warning: > **************************************************
LibClamAV Warning: * The virus database is older than 7 days!
LibClamAV Warning: Please update it as soon as possible. *
LibClamAV Warning: **************************************************
[ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully > qualified domain name, using 10.0.2.37 for ServerName
[ OK ]
Generating default DKIM keys: [ OK ]
Default DKIM keys for 0.2.37 created in /usr/local/etc/opendkim/keys.
Starting OpenDKIM Milter: [ OK ]
Starting spamd: [ OK ]
Starting fail2ban: [ OK ]
Starting server
[root#V37 ~]#
for more log information you can refer this link :
https://github.com/ONLYOFFICE/Docker-CommunityServer/issues/31
i have a VM with 2gb of RAM and 2gb of swap and 100 gb of storage,
since i am not geting the confirmation mail to my mail id, i am not able to access the fetures in the gui.
help in this....
We do not recommend using --link for connecting the docker containers.
In our installation script we only use docker network
docker network create --driver bridge onlyoffice
I would strongly recommend to install ONLYOFFICE Community Edition using the provided script.
Also note that the default smtp server responsible for the activation mails is notify.onlyoffice.info with sender email address postman#notify.onlyoffice.info