FormatException: Unexpected character (at character 7) - flutter

I'm getting this error. How to resolve this.
FormatException: Unexpected character (at character 7)
public static final int right_side = 0x7f050036;
flutter pub get
Running "flutter pub get" in shayari_card...
Failed to decode data using encoding 'utf-8', path = '.\pubspec.lock'
---- Log transcript ----
FINE: Pub 2.8.4
IO : Spawning "cmd /c ver" in C:\Users\Mahender\Desktop\FlutterApps\shayari_card\.
IO : Finished ver. Exit code 0.
| stdout:
| |
| | Microsoft Windows [Version 6.1.7601]
| Nothing output on stderr.
MSG : Resolving dependencies...
ERR : Failed to decode data using encoding 'utf-8', path = '.\pubspec.lock'
FINE: Exception type: FileSystemException
FINE: dart:io _File.readAsStringSync
| package:pub/src/io.dart 152:48 readTextFile
| package:pub/src/lock_file.dart 82:38 new LockFile.load
| package:pub/src/entrypoint.dart 96:28 Entrypoint.lockFile
| package:pub/src/entrypoint.dart 222:19 Entrypoint.acquireDependencies.<fn>
| package:pub/src/log.dart 394:18 progress
| package:pub/src/entrypoint.dart 216:24 Entrypoint.acquireDependencies
| package:pub/src/command/get.dart 46:23 GetCommand.run
| package:args/command_runner.dart 197:27 CommandRunner.runCommand
| package:pub/src/command_runner.dart 191:39 PubCommandRunner.runCommand.<fn>
| dart:async new Future.sync
| package:pub/src/utils.dart 113:12 captureErrors.wrappedCallback
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 126:11 captureErrors
| package:pub/src/command_runner.dart 191:13 PubCommandRunner.runCommand
| ===== asynchronous gap ===========================
| dart:async Future.catchError
| package:pub/src/utils.dart 113:52 captureErrors.wrappedCallback
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 126:11 captureErrors
| package:pub/src/command_runner.dart 191:13 PubCommandRunner.runCommand
| dart:async _completeOnAsyncReturn
| package:pub/src/command_runner.dart PubCommandRunner._validatePlatform
| dart:async _completeOnAsyncReturn
| package:pub/src/io.dart runProcess.<fn>
---- End log transcript ----
pub get failed (66; ---- End log transcript ----)
exit code 66

Related

tasklist -v truncation of output

Evidently the Windows dos cmd "tasklist -v " is truncating lines after so many characters.
My perl program is reading in special command processes to compare against processes stored in my database. I am trying to make sure expected processes are running.
Unfortunately the script fails since one of my 50 or so processes is truncated by "tasklist -v".
Is there an alternative command?
Thanks,
Sammy
Following code demonstrates usage of tasklist /fo table command as a pipe input for further processing
Tip: help tasklist
use strict;
use warnings;
my $regex = qr/^(?<name>.*?)\s+(?<pid>\d+)\s+(?<session_name>\S+)\s+(?<session>\d+)\s+(?<mem>.*)/;
$^ = 'STDOUT_TOP';
open my $pipe, 'tasklist /fo table|';
/$regex/ && write for <$pipe>;
close $pipe;
$~ = 'STDOUT_BOTTOM';
write;
exit 0;
format STDOUT_TOP =
+----------------------------------+------------+----------+---------+-----------+
| Name | PID | SessName | Session | Memory |
+----------------------------------+------------+----------+---------+-----------+
.
format STDOUT =
| #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | #>>>>>>>>> | #<<<<<<< | #>>>>>> | #>>>>>>>> |
$+{name}, $+{pid}, $+{session_name}, $+{session}, $+{mem}
.
format STDOUT_BOTTOM =
+----------------------------------+------------+----------+---------+-----------+
.
Output
+----------------------------------+------------+----------+---------+-----------+
| Name | PID | SessName | Session | Memory |
+----------------------------------+------------+----------+---------+-----------+
| System Idle Process | 0 | Services | 0 | 8 K |
| System | 4 | Services | 0 | 7,452 K |
| Registry | 100 | Services | 0 | 28,664 K |
| smss.exe | 412 | Services | 0 | 368 K |
| csrss.exe | 552 | Services | 0 | 2,256 K |
| csrss.exe | 776 | Console | 1 | 2,496 K |
| wininit.exe | 796 | Services | 0 | 1,420 K |
| winlogon.exe | 860 | Console | 1 | 5,084 K |
| services.exe | 940 | Services | 0 | 5,964 K |
..............
| RuntimeBroker.exe | 7392 | Console | 1 | 8,604 K |
| dwm.exe | 1224 | Console | 1 | 70,144 K |
| chrome.exe | 10580 | Console | 1 | 103,584 K |
| svchost.exe | 12152 | Services | 0 | 7,496 K |
| LockApp.exe | 2620 | Console | 1 | 39,392 K |
| RuntimeBroker.exe | 3104 | Console | 1 | 30,508 K |
| chrome.exe | 452 | Console | 1 | 54,088 K |
| svchost.exe | 7460 | Services | 0 | 7,408 K |
| svchost.exe | 5744 | Services | 0 | 11,540 K |
♀+----------------------------------+------------+----------+---------+-----------+
| Name | PID | SessName | Session | Memory |
+----------------------------------+------------+----------+---------+-----------+
| WmiPrvSE.exe | 6200 | Services | 0 | 10,612 K |
| perl.exe | 2520 | Console | 1 | 8,948 K |
| tasklist.exe | 4808 | Console | 1 | 8,940 K |
+----------------------------------+------------+----------+---------+-----------+

Perl catalyst development server not accepting connections

Here is the stdout
[lzhou#localhost script]$ perl dbauthtest_server.pl You are loading Catalyst::Engine::HTTP explicitly.
This is almost certainly a bad idea, as Catalyst::Engine::HTTP has been removed in this version of Catalyst.
Please update your application's scripts with:
catalyst.pl -force -scripts MyApp
to update your scripts to not do this. [debug] Debug messages enabled [debug] Statistics enabled [warn] You are running an old script!
Please update by running (this will overwrite existing files):
catalyst.pl -force -scripts DBAuthTest
or (this will not overwrite existing files):
catalyst.pl -scripts DBAuthTest
[debug] Loaded Config "/home/lzhou/ä¸è¼ /def-guide-to-catalyst-master/4439/catalyst-book-code/Chapter_6/DBAuthTest/dbauthtest.conf" [debug] Loaded plugins: .--------------------------------------------------------------------------------. | Catalyst::Plugin::ConfigLoader 0.34 | '--------------------------------------------------------------------------------'
[debug] Loaded PSGI Middleware: .--------------------------------------------------------------------------------. | Catalyst::Middleware::Stash | | Plack::Middleware::HTTPExceptions | | Plack::Middleware::RemoveRedundantBody 0.06 | | Plack::Middleware::FixMissingBodyInRedirect 0.12 | | Plack::Middleware::ContentLength | | Plack::Middleware::MethodOverride 0.20 | | Plack::Middleware::Head | '--------------------------------------------------------------------------------'
[debug] Loaded Request Data Handlers: .--------------------------------------------------------------------------------. | application/json | | application/x-www-form-urlencoded | '--------------------------------------------------------------------------------'
[debug] Loaded dispatcher "Catalyst::Dispatcher" [debug] Loaded engine "Catalyst::Engine" [debug] Found home "/home/lzhou/ä¸è¼ /def-guide-to-catalyst-master/4439/catalyst-book-code/Chapter_6/DBAuthTest" [debug] Loaded components: .---------------------------------------------------------------------+----------. | Class | Type |
+---------------------------------------------------------------------+----------+ | DBAuthTest::Controller::AuthUsers | instance | | DBAuthTest::Controller::Root | instance | | DBAuthTest::Model::AuthDB | instance | | DBAuthTest::Model::AuthDB::Roles | class | | DBAuthTest::Model::AuthDB::UserRoles | class | | DBAuthTest::Model::AuthDB::Users | class | | DBAuthTest::View::Web | instance | '---------------------------------------------------------------------+----------'
[debug] Loaded Private actions: .----------------------+--------------------------------------+------------------. | Private | Class | Method |
+----------------------+--------------------------------------+------------------+ | /end | DBAuthTest::Controller::Root | end | | /default | DBAuthTest::Controller::Root | default | | /authusers/profile | DBAuthTest::Controller::AuthUsers | profile | | /authusers/base | DBAuthTest::Controller::AuthUsers | base | | /authusers/add | DBAuthTest::Controller::AuthUsers | add | | /authusers/user | DBAuthTest::Controller::AuthUsers | user | '----------------------+--------------------------------------+------------------'
[debug] Loaded Path actions: .---------------------------------------+----------------------------------------. | Path | Private |
+---------------------------------------+----------------------------------------+ | /... | /default | '---------------------------------------+----------------------------------------'
[debug] Loaded Chained actions: .---------------------------------------+----------------------------------------. | Path Spec | Private |
+---------------------------------------+----------------------------------------+ | /authusers/add | /authusers/base (0) | | | => /authusers/add (0) | | /authusers/*/profile | /authusers/base (0) | | | -> /authusers/user (1) | | | => /authusers/profile (0) | '---------------------------------------+----------------------------------------'
[info] DBAuthTest powered by Catalyst 5.90124
But when i visit http://localhost:3000/ , connection is refused . it appears that there is no server running.

Installing Aqueduct for a dart server

I'm trying to build a server using Dart/Aqueduct.
But when i try to set things up i get following error after i type "pub global activate aqueduct" in my command line:
../../runtime/vm/raw_object.cc: 283: error: unreachable code
Dumping native stack trace for thread 33
[0x000000000090efc3] dart::Profiler::DumpStackTrace()
[0x000000000090efc3] dart::Profiler::DumpStackTrace()
[0x000000000068d1a1] dart::DynamicAssertionHelper::Fail(char const*, ...)
[0x00000000009122a0] dart::RawObject::VisitPointers(dart::ObjectPointerVisitor*)
[0x0000000000951b18] dart::Scavenger::ProcessToSpace(dart::ScavengerVisitor*)
[0x000000000095212d] dart::Scavenger::Scavenge(bool)
[0x0000000000768609] dart::Heap::CollectNewSpaceGarbage(dart::Thread*, dart::Heap::ApiCallbacks, dart::Heap::GCReason)
[0x0000000000767692] dart::Heap::AllocateNew(long)
[0x00000000007e715e] dart::Object::Allocate(long, long, dart::Heap::Space)
[0x00000000007ea9e6] dart::Array::New(long, dart::Heap::Space)
[0x00000000009bd031] dart::DRT_AllocateArray(dart::NativeArguments)
[0x00007f77e26a061b] [Stub] CallToRuntime
[0x00007f77e26a16e2] [Stub] AllocateArray
I had to terminate the execution because it got stuck.
it also gets stuck using "pub global activate stagehand" so i guess the problem is with "pub global activate ... "
Hope someone has an idea and can help me.
Thanks in advance
after running "pub global activate -v aqueduct"
FINE: Pub 1.24.0-dev.6.4
MSG : Resolving dependencies...
SLVR: Solving dependencies:
| - aqueduct any from hosted (aqueduct)
IO : Get versions from https://pub.dartlang.org/api/packages/aqueduct.
FINE: HTTP GET https://pub.dartlang.org/api/packages/aqueduct
| Accept: application/vnd.pub.v2+json
| X-Pub-OS: linux
| X-Pub-Command: global activate
| X-Pub-Session-ID: 55613A99-D375-47A9-9088-AAB0A68A7438
| user-agent: Dart pub 1.24.0-dev.6.4
FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/aqueduct
| took 0:00:00.644556
| date: Sat, 03 Jun 2017 19:20:30 GMT
| transfer-encoding: chunked
| via: 1.1 google
| content-type: application/json
| x-frame-options: SAMEORIGIN
| x-xss-protection: 1; mode=block
| x-content-type-options: nosniff
| server: nginx
SLVR: * start at root
IO : Get versions from https://pub.dartlang.org/api/packages/stack_trace.
FINE: HTTP GET https://pub.dartlang.org/api/packages/stack_trace
| Accept: application/vnd.pub.v2+json
| X-Pub-OS: linux
| X-Pub-Command: global activate
| X-Pub-Session-ID: 55613A99-D375-47A9-9088-AAB0A68A7438
| user-agent: Dart pub 1.24.0-dev.6.4
FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/stack_trace
| took 0:00:00.267917
| date: Sat, 03 Jun 2017 19:20:30 GMT
| transfer-encoding: chunked
| via: 1.1 google
| content-type: application/json
| x-frame-options: SAMEORIGIN
| x-xss-protection: 1; mode=block
| x-content-type-options: nosniff
| server: nginx
SLVR: Could not get versions for stack_trace from hosted:
| Connection closed while receiving data
|
| package:pub/src/source/hosted.dart 337 BoundHostedSource._throwFriendlyError
| package:pub/src/source/hosted.dart 139 BoundHostedSource.doGetVersions
| package:pub/src/source.dart 165 BoundSource.getVersions
| package:pub/src/solver/version_solver.dart 230 SolverCache.getVersions.<fn>
| package:pub/src/http.dart 227 withDependencyType
| package:pub/src/solver/version_solver.dart 229 SolverCache.getVersions
| package:pub/src/solver/unselected_package_queue.dart 121 UnselectedPackageQueue._getNumVersions
| package:pub/src/solver/unselected_package_queue.dart 50 UnselectedPackageQueue.add
| package:pub/src/solver/version_selection.dart 68 VersionSelection.select.<fn>
| dart:async Future.forEach
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select
| package:pub/src/solver/backtracking_solver.dart 308 BacktrackingSolver._solve.<fn>
| dart:async Future.doWhile
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve
| package:pub/src/solver/backtracking_solver.dart 176 BacktrackingSolver.solve
| package:pub/src/solver/version_solver.dart 41 resolveVersions.<fn>
| package:pub/src/log.dart 409 progress
| package:pub/src/solver/version_solver.dart 39 resolveVersions
| package:pub/src/global_packages.dart 166 GlobalPackages._installInCache
| package:pub/src/global_packages.dart 116 GlobalPackages.activateHosted
| package:pub/src/command/global_activate.dart 91 GlobalActivateCommand.run
| package:args/command_runner.dart 194 CommandRunner.runCommand
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand.<fn>
| dart:async new Future.sync
| package:pub/src/utils.dart 99 captureErrors.<fn>
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 114 captureErrors
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand
| package:pub/src/command_runner.dart 117 PubCommandRunner.run
| /tmp/tmp5krbLf/dart-1.24.0-dev.6.4/dart/third_party/pkg/pub/bin/pub.dart 8 main
| ===== asynchronous gap ===========================
| dart:async _Completer.completeError
| package:pub/src/source/hosted.dart 152 BoundHostedSource.doGetVersions
| ===== asynchronous gap ===========================
| dart:async _asyncErrorWrapperHelper
| package:pub/src/source/hosted.dart 128 BoundHostedSource.doGetVersions
| package:pub/src/source.dart 165 BoundSource.getVersions
| package:pub/src/solver/version_solver.dart 230 SolverCache.getVersions.<fn>
| package:pub/src/http.dart 227 withDependencyType
| package:pub/src/solver/version_solver.dart 229 SolverCache.getVersions
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/version_solver.dart 203 SolverCache.getVersions
| package:pub/src/solver/unselected_package_queue.dart 121 UnselectedPackageQueue._getNumVersions
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/unselected_package_queue.dart 115 UnselectedPackageQueue._getNumVersions
| package:pub/src/solver/unselected_package_queue.dart 50 UnselectedPackageQueue.add
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/unselected_package_queue.dart 44 UnselectedPackageQueue.add
| package:pub/src/solver/version_selection.dart 68 VersionSelection.select.<fn>
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select.<fn>
| dart:async Future.forEach
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select
| ===== asynchronous gap ===========================
| dart:async Future.forEach
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select
| ===== asynchronous gap ===========================
| dart:async _asyncThenWrapperHelper
| package:pub/src/solver/version_selection.dart 53 VersionSelection.select
| package:pub/src/solver/backtracking_solver.dart 308 BacktrackingSolver._solve.<fn>
| ===== asynchronous gap ===========================
| dart:async _asyncThenWrapperHelper
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve.<fn>
| dart:async Future.doWhile
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve
| ===== asynchronous gap ===========================
| dart:async Future.doWhile
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/backtracking_solver.dart 274 BacktrackingSolver._solve
| package:pub/src/solver/backtracking_solver.dart 176 BacktrackingSolver.solve
| ===== asynchronous gap ===========================
| dart:async _asyncThenWrapperHelper
| package:pub/src/solver/backtracking_solver.dart 157 BacktrackingSolver.solve
| package:pub/src/solver/version_solver.dart 41 resolveVersions.<fn>
| package:pub/src/log.dart 409 progress
| package:pub/src/solver/version_solver.dart 39 resolveVersions
| package:pub/src/global_packages.dart 166 GlobalPackages._installInCache
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/global_packages.dart 160 GlobalPackages._installInCache
| package:pub/src/global_packages.dart 116 GlobalPackages.activateHosted
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/global_packages.dart 114 GlobalPackages.activateHosted
| package:pub/src/command/global_activate.dart 91 GlobalActivateCommand.run
| package:args/command_runner.dart 194 CommandRunner.runCommand
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:args/command_runner.dart 142 CommandRunner.runCommand
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand.<fn>
| dart:async new Future.sync
| package:pub/src/utils.dart 99 captureErrors.<fn>
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 114 captureErrors
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand
SLVR: Could not get versions for stack_trace from hosted:
| Connection closed while receiving data
|
| package:pub/src/source/hosted.dart 337 BoundHostedSource._throwFriendlyError
| package:pub/src/source/hosted.dart 139 BoundHostedSource.doGetVersions
| package:pub/src/source.dart 165 BoundSource.getVersions
| package:pub/src/solver/version_solver.dart 230 SolverCache.getVersions.<fn>
| package:pub/src/http.dart 227 withDependencyType
| package:pub/src/solver/version_solver.dart 229 SolverCache.getVersions
| package:pub/src/solver/unselected_package_queue.dart 121 UnselectedPackageQueue._getNumVersions
| package:pub/src/solver/unselected_package_queue.dart 50 UnselectedPackageQueue.add
| package:pub/src/solver/version_selection.dart 68 VersionSelection.select.<fn>
| dart:async Future.forEach
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select
| package:pub/src/solver/backtracking_solver.dart 308 BacktrackingSolver._solve.<fn>
| dart:async Future.doWhile
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve
| package:pub/src/solver/backtracking_solver.dart 176 BacktrackingSolver.solve
| package:pub/src/solver/version_solver.dart 41 resolveVersions.<fn>
| package:pub/src/log.dart 409 progress
| package:pub/src/solver/version_solver.dart 39 resolveVersions
| package:pub/src/global_packages.dart 166 GlobalPackages._installInCache
| package:pub/src/global_packages.dart 116 GlobalPackages.activateHosted
| package:pub/src/command/global_activate.dart 91 GlobalActivateCommand.run
| package:args/command_runner.dart 194 CommandRunner.runCommand
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand.<fn>
| dart:async new Future.sync
| package:pub/src/utils.dart 99 captureErrors.<fn>
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 114 captureErrors
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand
| package:pub/src/command_runner.dart 117 PubCommandRunner.run
| /tmp/tmp5krbLf/dart-1.24.0-dev.6.4/dart/third_party/pkg/pub/bin/pub.dart 8 main
| ===== asynchronous gap ===========================
| dart:async _Completer.completeError
| package:pub/src/source/hosted.dart 152 BoundHostedSource.doGetVersions
| ===== asynchronous gap ===========================
| dart:async _asyncErrorWrapperHelper
| package:pub/src/source/hosted.dart 128 BoundHostedSource.doGetVersions
| package:pub/src/source.dart 165 BoundSource.getVersions
| package:pub/src/solver/version_solver.dart 230 SolverCache.getVersions.<fn>
| package:pub/src/http.dart 227 withDependencyType
| package:pub/src/solver/version_solver.dart 229 SolverCache.getVersions
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/version_solver.dart 203 SolverCache.getVersions
| package:pub/src/solver/unselected_package_queue.dart 121 UnselectedPackageQueue._getNumVersions
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/unselected_package_queue.dart 115 UnselectedPackageQueue._getNumVersions
| package:pub/src/solver/unselected_package_queue.dart 50 UnselectedPackageQueue.add
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/unselected_package_queue.dart 44 UnselectedPackageQueue.add
| package:pub/src/solver/version_selection.dart 68 VersionSelection.select.<fn>
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select.<fn>
| dart:async Future.forEach
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select
| ===== asynchronous gap ===========================
| dart:async Future.forEach
| package:pub/src/solver/version_selection.dart 61 VersionSelection.select
| ===== asynchronous gap ===========================
| dart:async _asyncThenWrapperHelper
| package:pub/src/solver/version_selection.dart 53 VersionSelection.select
| package:pub/src/solver/backtracking_solver.dart 308 BacktrackingSolver._solve.<fn>
| ===== asynchronous gap ===========================
| dart:async _asyncThenWrapperHelper
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve.<fn>
| dart:async Future.doWhile
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve
| ===== asynchronous gap ===========================
| dart:async Future.doWhile
| package:pub/src/solver/backtracking_solver.dart 276 BacktrackingSolver._solve
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/solver/backtracking_solver.dart 274 BacktrackingSolver._solve
| package:pub/src/solver/backtracking_solver.dart 176 BacktrackingSolver.solve
| ===== asynchronous gap ===========================
| dart:async _asyncThenWrapperHelper
| package:pub/src/solver/backtracking_solver.dart 157 BacktrackingSolver.solve
| package:pub/src/solver/version_solver.dart 41 resolveVersions.<fn>
| package:pub/src/log.dart 409 progress
| package:pub/src/solver/version_solver.dart 39 resolveVersions
| package:pub/src/global_packages.dart 166 GlobalPackages._installInCache
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/global_packages.dart 160 GlobalPackages._installInCache
| package:pub/src/global_packages.dart 116 GlobalPackages.activateHosted
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:pub/src/global_packages.dart 114 GlobalPackages.activateHosted
| package:pub/src/command/global_activate.dart 91 GlobalActivateCommand.run
| package:args/command_runner.dart 194 CommandRunner.runCommand
| ===== asynchronous gap ===========================
| dart:async new Future.microtask
| package:args/command_runner.dart 142 CommandRunner.runCommand
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand.<fn>
| dart:async new Future.sync
| package:pub/src/utils.dart 99 captureErrors.<fn>
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 114 captureErrors
| package:pub/src/command_runner.dart 168 PubCommandRunner.runCommand
IO : Get versions from https://pub.dartlang.org/api/packages/pub_semver.
FINE: HTTP GET https://pub.dartlang.org/api/packages/pub_semver
| Accept: application/vnd.pub.v2+json
| X-Pub-OS: linux
| X-Pub-Command: global activate
| X-Pub-Session-ID: 55613A99-D375-47A9-9088-AAB0A68A7438
| user-agent: Dart pub 1.24.0-dev.6.4
FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/pub_semver
| took 0:00:00.280514
| date: Sat, 03 Jun 2017 19:24:31 GMT
| transfer-encoding: chunked
| via: 1.1 google
| content-type: application/json
| x-frame-options: SAMEORIGIN
| x-xss-protection: 1; mode=block
| x-content-type-options: nosniff
| server: nginx
IO : Get versions from https://pub.dartlang.org/api/packages/safe_config.
FINE: HTTP GET https://pub.dartlang.org/api/packages/safe_config
| Accept: application/vnd.pub.v2+json
| X-Pub-OS: linux
| X-Pub-Command: global activate
| X-Pub-Session-ID: 55613A99-D375-47A9-9088-AAB0A68A7438
| user-agent: Dart pub 1.24.0-dev.6.4
FINE: HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/safe_config
| took 0:00:00.157651
| date: Sat, 03 Jun 2017 19:24:31 GMT
| transfer-encoding: chunked
| via: 1.1 google
| content-type: application/json
| x-frame-options: SAMEORIGIN
| x-xss-protection: 1; mode=block
| x-content-type-options: nosniff
| server: nginx
after that it got stuck.
Don't really know what to do with this information tbh.

nova diagnostics in devstack development

In ssh, when I run this command
nova diagnostics 2ad0dda0-072d-46c4-8689-3c487a452248
I got all the resources in devstack
+---------------------------+----------------------+
| Property | Value |
+---------------------------+----------------------+
| cpu0_time | 3766640000000 |
| hdd_errors | 18446744073709551615 |
| hdd_read | 111736 |
| hdd_read_req | 73 |
| hdd_write | 0 |
| hdd_write_req | 0 |
| memory | 2097152 |
| memory-actual | 2097152 |
| memory-available | 1922544 |
| memory-major_fault | 2710 |
| memory-minor_fault | 10061504 |
| memory-rss | 509392 |
| memory-swap_in | 0 |
| memory-swap_out | 0 |
| memory-unused | 1079468 |
| tap5a148e0f-b8_rx | 959777 |
| tap5a148e0f-b8_rx_drop | 0 |
| tap5a148e0f-b8_rx_errors | 0 |
| tap5a148e0f-b8_rx_packets | 8758 |
| tap5a148e0f-b8_tx | 48872 |
| tap5a148e0f-b8_tx_drop | 0 |
| tap5a148e0f-b8_tx_errors | 0 |
| tap5a148e0f-b8_tx_packets | 615 |
| vda_errors | 18446744073709551615 |
| vda_read | 597230592 |
| vda_read_req | 31443 |
| vda_write | 164690944 |
| vda_write_req | 18422 |
+---------------------------+----------------------+
How can I get this in devstack user interfaces.
Please help..
Thanks in advance
its not available in openstack icehouse/juno version though it can be edited in juno to retrieve in devstack.
I didn't use openstack Kilo. In juno, if your hypervisor is libvirt, Vsphere or XenAPI then you can retrive this statistics in devstack UI. for this you have to do this:
For Libvirt
In this location ceilometer/compute/virt/libvirt/inspector.py, add this:
from oslo.utils import units
from ceilometer.compute.pollsters import util
def inspect_memory_usage(self, instance, duration=None):
instance_name = util.instance_name(instance)
domain = self._lookup_by_name(instance_name)
state = domain.info()[0]
if state == libvirt.VIR_DOMAIN_SHUTOFF:
LOG.warn(_('Failed to inspect memory usage of %(instance_name)s, '
'domain is in state of SHUTOFF'),
{'instance_name': instance_name})
return
try:
memory_stats = domain.memoryStats()
if (memory_stats and
memory_stats.get('available') and
memory_stats.get('unused')):
memory_used = (memory_stats.get('available') -
memory_stats.get('unused'))
# Stat provided from libvirt is in KB, converting it to MB.
memory_used = memory_used / units.Ki
return virt_inspector.MemoryUsageStats(usage=memory_used)
else:
LOG.warn(_('Failed to inspect memory usage of '
'%(instance_name)s, can not get info from libvirt'),
{'instance_name': instance_name})
# memoryStats might launch an exception if the method
# is not supported by the underlying hypervisor being
# used by libvirt
except libvirt.libvirtError as e:
LOG.warn(_('Failed to inspect memory usage of %(instance_name)s, '
'can not get info from libvirt: %(error)s'),
{'instance_name': instance_name, 'error': e})
for more details you can check the following link:
https://review.openstack.org/#/c/90498/

Perl Mechanize run into error: failed connecting to "localhost", port 4242: so what?

[first of all; i run linux opensuse 11.4 ]
i try to run this little programme on a linux box.
Update: Hmmm well i guess that i have damned serious issues with the installation of
MECHA::FireFox Hmm - i should have to work through the steps in WWW::Mechanize::Firefox::Troubleshooting! But believe me - this is pretty damned hard to do: Especially the "Installation" section seems particularly applicable to my situation here!
There might some terrible things -happened. What should i do now!!?
#!/usr/bin/perl
use WWW::Mechanize::Firefox;
my $mech = WWW::Mechanize::Firefox->new();
open(INPUT, "urls.txt") or die "Can't open file: $!";
while (<INPUT>) {
chomp;
$mech->get($_);
my $png = $mech->content_as_png();
}
close(INPUT);
exit;
prerequisites:
i have a collection of ursl - stored in urls.txt
i have installed mechanize and WWW::Mechanize::Firefox
If i run the script i get fatal errors -
linux-vi17:/home/martin/bin # perl get_shots.pl
Failed to connect to , problem connecting to "localhost", port 4242:
connecting to the denied at /usr/lib/perl5/site_perl/5.12.3/MozRepl/Client.pm line 144
but wait - i also have installed the mozlRepl ....
K
Running make test
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Class::Accessor::Fast,0,Module::Pluggable::Fast,0,Template,0,Template::Provider::FromDATA,0,UNIVERSAL::require,0
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-load.t t/10-plugin-repl-enter.t t/11-plugin-repl-search.t t/12-plugin-repl-inspect.t t/13-plugin-repl-load.t t/14-plugin-repl-rename.t t/15-plugin-repl-print.t t/16-plugin-repl-home.t t/17-plugin-repl-back.t t/18-plugin-repl-util-help_url_for.t t/19-plugin-repl-util-doc_for.t t/20-plugin-json.t t/pod-coverage.t t/pod.t
t/00-load.t ........................... 1/3 # Testing MozRepl 0.06
t/00-load.t ........................... ok
t/10-plugin-repl-enter.t .............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/10-plugin-repl-enter.t .............. ok
t/11-plugin-repl-search.t ............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/11-plugin-repl-search.t ............. ok
t/12-plugin-repl-inspect.t ............ [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/12-plugin-repl-inspect.t ............ ok
t/13-plugin-repl-load.t ............... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/13-plugin-repl-load.t ............... ok
t/14-plugin-repl-rename.t ............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/14-plugin-repl-rename.t ............. ok
t/15-plugin-repl-print.t .............. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/15-plugin-repl-print.t .............. ok
t/16-plugin-repl-home.t ............... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/16-plugin-repl-home.t ............... ok
t/17-plugin-repl-back.t ............... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/17-plugin-repl-back.t ............... ok
t/18-plugin-repl-util-help_url_for.t .. [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/18-plugin-repl-util-help_url_for.t .. ok
t/19-plugin-repl-util-doc_for.t ....... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/19-plugin-repl-util-doc_for.t ....... ok
t/20-plugin-json.t .................... [DEBUG] MozRepl logging enabled
[DEBUG]
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name | client_arg_value |
+----------------------+------------------------------------------+
| host | localhost |
| port | 4242 |
| timeout | 10 |
| extra_client_args | {} |
'----------------------+------------------------------------------'
t/20-plugin-json.t .................... ok
t/pod-coverage.t ...................... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t ............................... skipped: Test::Pod 1.14 required for testing POD
All tests successful.
Files=14, Tests=42, 7 wallclock secs ( 0.14 usr 0.08 sys + 2.98 cusr 0.36 csys = 3.56 CPU)
Result: PASS
ZIGOROU/MozRepl-0.06.tar.gz
make test -- OK
Running make install
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Class::Accessor::Fast,0,Module::Pluggable::Fast,0,Template,0,Template::Provider::FromDATA,0,UNIVERSAL::require,0
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Log.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Client.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Util.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Base.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/JSON.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Search.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Load.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Rename.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Inspect.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Home.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Enter.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Print.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Back.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Util/DocFor.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Util/HelpUrlFor.pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Util::DocFor.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Print.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Inspect.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Back.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Rename.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Util::HelpUrlFor.3pm
Installing /usr/share/man/man3/MozRepl::Client.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::JSON.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Base.3pm
Installing /usr/share/man/man3/MozRepl::Log.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Load.3pm
Installing /usr/share/man/man3/MozRepl::Util.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Home.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Search.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Enter.3pm
Installing /usr/share/man/man3/MozRepl.3pm
Appending installation info to /usr/lib/perl5/5.12.3/i586-linux-thread-multi/perllocal.pod
ZIGOROU/MozRepl-0.06.tar.gz
make install -- OK
Update: Hmmm well i guess that i have damned serious issues with the installation of
MECHA::FireFox Hmm - i should have to work through the steps in WWW::Mechanize::Firefox::Troubleshooting! But believe me - this is pretty damned hard to do: Especially the "Installation" section seems particularly applicable to my situation here!
plz let me know what goes wrong here... !? Do not let me out in the dark
Presumably you haven't turned mozlRepl on. It doesn't listen all the time.