Admin page not loading when connected to mysql database - strapi

I'm trying to use strapi with mysql. Connections with the database have been successful and the server too starts successfully.
But the admin page never loads.
Here is what my console displays,
λ strapi start
[2019-04-15T13:15:56.904Z] info File changed: E:\Workspace\ship-n-shore-api
s\users-permissions\config\actions.json
[2019-04-15T13:15:56.961Z] info Time: Mon Apr 15 2019 18:45:56 GMT+0530 (In
ndard Time)
[2019-04-15T13:15:56.962Z] info Launched in: 5425 ms
[2019-04-15T13:15:56.963Z] info Environment: development
[2019-04-15T13:15:56.964Z] info Process PID: 5444
[2019-04-15T13:15:56.965Z] info Version: 3.0.0-alpha.25.2 (node v10.15.1)
[2019-04-15T13:15:56.966Z] info To shut down your server, press <CTRL> + C
time
[2019-04-15T13:15:56.968Z] info ☄️ Admin panel: http://localhost:1337/admi
[2019-04-15T13:15:56.969Z] info ⚡️ Server: http://localhost:1337
[2019-04-15T13:17:08.546Z] debug GET index.html (34 ms)
[2019-04-15T13:17:08.579Z] debug GET vendor.dll.js (13 ms)
[2019-04-15T13:17:08.580Z] debug GET main.js (6 ms)
[2019-04-15T13:17:08.872Z] debug GET plugins.json (9 ms)
[2019-04-15T13:17:08.945Z] debug GET /admin/gaConfig (38 ms)
[2019-04-15T13:17:08.956Z] debug GET /admin/strapiVersion (9 ms)
[2019-04-15T13:17:08.962Z] debug GET /admin/currentEnvironment (3 ms)
[2019-04-15T13:17:08.972Z] debug GET /admin/layout (8 ms)
[2019-04-15T13:17:08.983Z] debug GET main.js (8 ms)
[2019-04-15T13:17:08.991Z] debug GET main.js (12 ms)
[2019-04-15T13:17:08.997Z] debug GET /favicon.ico (4 ms)
[2019-04-15T13:17:09.031Z] debug GET main.js (25 ms)
[2019-04-15T13:17:09.034Z] debug GET main.js (25 ms)
[2019-04-15T13:17:09.037Z] debug GET main.js (24 ms)
[2019-04-15T13:17:09.040Z] debug GET main.js (20 ms)
[2019-04-15T13:17:09.370Z] debug GET /content-type-builder/autoReload (28 m
[2019-04-15T13:17:09.404Z] debug GET /users-permissions/init (15 ms)
[2019-04-15T13:17:09.503Z] debug GET /settings-manager/autoReload (17 ms)
Edit:
I am using node v10.15.1.
Also note that I used the custom setup when creating a new strapi project.

Related

Android Studio: The emulator process for AVD Nexus_6_API 30 has terminated

I'm a newbie to Android Studio and I install Android Studio 2021.1.1 from scratch on Windows 10, but when I want to run the emulator, it just can't be launched with this error:
in the log located at C:\Users\xxx\AppData\Local\Google\AndroidStudio2021.1\log, I got some info as below. So can anyone help to figure it out?
2022-03-24 16:09:10,973 [ 826150] INFO - testKnownPluginVersionProvider - 'gradle' plugin missing from the offline Maven repo, will use default 7.1.2
2022-03-24 16:09:11,368 [ 826545] INFO - ativeWorkspaceModificationTask - NDK support for project 'Demo1' is disabled because the project doesn't contain any valid native configurations.
2022-03-24 16:09:27,095 [ 842272] WARN - vdmanager.AvdManagerConnection - Error setting permissions for C:\Users\xxx\temp\emu.tmp
2022-03-24 16:09:29,433 [ 844610] INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\xxx\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -studio-params C:\Users\xxx\temp\emu.tmp -avd Nexus_6_API_30 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
2022-03-24 16:09:39,317 [ 854494] INFO - manager.EmulatorProcessHandler - Emulator: WARNING | Crash service did not start
2022-03-24 16:09:39,317 [ 854494] INFO - manager.EmulatorProcessHandler - Emulator:
2022-03-24 16:09:39,471 [ 854648] INFO - manager.EmulatorProcessHandler - Emulator: WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
2022-03-24 16:09:45,515 [ 860692] INFO - manager.EmulatorProcessHandler - Emulator: INFO | Android emulator version 31.2.9.0 (build_id 8316981) (CL:N/A)
2022-03-24 16:09:45,515 [ 860692] INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code -1073741819 (0xC0000005)
2022-03-24 16:09:45,515 [ 860692] WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code -1073741819
2022-03-24 16:09:55,157 [ 870334] WARN - com.intellij.util.xmlb.Binding - no accessors for com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginAdvertiserExtensionsStateService$State
2022-03-24 16:09:55,188 [ 870365] INFO - rationStore.ComponentStoreImpl - Saving appClangTidySettings took 16 ms, FileTypeManager took 15 ms, PluginFeatureService took 15 ms, VcsApplicationSettings took 16 ms
2022-03-24 16:09:55,701 [ 870878] INFO - rationStore.ComponentStoreImpl - Saving Project(name=Demo1, containerState=COMPONENT_CREATED, componentStore=C:\N-20L6PF1KPTJU-Data\xxx\Documents\99.Self.Learning\00.Android)XDebuggerManager took 30 ms
For the permission under C:\Users\xxx\temp*, it has no difference if I set it to full-control or read-only.
I don't know exactly what's the rc, but when I tried Nexus 6 API 28, it works.

docker installation of openproject: Phusion passenger fails to start after installation

I am trying to install openproject using docker on centos7.6 but Phusion passenger fails to start after installation. Error is suggesting it failed to parse response.
The preloader process sent an unparseable response:. I don't know how to fix this issue.
stdout:
-----> Database setup finished.
On first installation, the default admin credentials are login: admin, password: admin
-----> Launching supervisord...
2019-05-08 08:14:46,313 CRIT Supervisor running as root (no user in config file)
2019-05-08 08:14:46,318 INFO supervisord started with pid 1
2019-05-08 08:14:47,321 INFO spawned: 'postgres' with pid 155
2019-05-08 08:14:47,325 INFO spawned: 'apache2' with pid 156
2019-05-08 08:14:47,328 INFO spawned: 'web' with pid 157
2019-05-08 08:14:47,331 INFO spawned: 'worker' with pid 158
2019-05-08 08:14:47,351 INFO spawned: 'postfix' with pid 159
2019-05-08 08:14:47,360 INFO spawned: 'memcached' with pid 160
2019-05-08 08:14:47.634 UTC [172] LOG: database system was shut down at 2019-05-08 08:14:44 UTC
2019-05-08 08:14:47,634 INFO success: postfix entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-05-08 08:14:47.649 UTC [172] LOG: MultiXact member wraparound protections are now enabled
2019-05-08 08:14:47.653 UTC [155] LOG: database system is ready to accept connections
2019-05-08 08:14:47.663 UTC [177] LOG: autovacuum launcher started
2019-05-08 08:14:48,670 INFO success: postgres entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-05-08 08:14:48,670 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-05-08 08:14:48,670 INFO success: web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-05-08 08:14:48,670 INFO success: worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-05-08 08:14:48,670 INFO success: memcached entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
2019-05-08 08:14:50,198 INFO exited: postfix (exit status 0; expected)
--> Downloading a Phusion Passenger agent binary for your platform
--> Installing Nginx 1.15.8 engine
--------------------------
[passenger_native_support.so] trying to compile for the current user (app) and Ruby interpreter...
(set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
Compilation successful. The logs are here:
/tmp/passenger_native_support-15tsfhk.log
[passenger_native_support.so] successfully loaded.
=============== Phusion Passenger Standalone web server started ===============
PID file: /app/tmp/pids/passenger.8080.pid
Log file: /app/log/passenger.8080.log
Environment: production
Accessible via: http://0.0.0.0:8080/
You can stop Phusion Passenger Standalone by pressing Ctrl-C.
Problems? Check https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
===============================================================================
[ N 2019-05-08 08:15:01.7338 404/Tb age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
Forcefully loading the application. Use :environment to avoid eager loading.
[auth_saml] Missing settings from '/app/config/plugins/auth_saml/settings.yml', skipping omniauth registration.
hook registered
App 439 output: [auth_saml] Missing settings from '/app/config/plugins/auth_saml/settings.yml', skipping omniauth registration.
App 439 output: hook registered
Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
App 439 output: Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
[Worker(host:d0b3748f627a pid:158)] Starting job worker
2019-05-08T08:15:45+0000: [Worker(host:d0b3748f627a pid:158)] Starting job worker
App 439 output: /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:108:in `fork': Cannot allocate memory - fork(2) (Errno::ENOMEM)
App 439 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:108:in `handle_spawn_command'
App 439 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:78:in `accept_and_process_next_client'
App 439 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:167:in `run_main_loop'
App 439 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:207:in `<module:App>'
App 439 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
App 439 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:29:in `<main>'
[ E 2019-05-08 08:15:46.6971 404/Tc age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /app: The preloader process sent an unparseable response:
Error ID: d7825364
Error details saved to: /tmp/passenger-error-wjSTKF.html
[ E 2019-05-08 08:15:46.7028 404/T8 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is d7825364. Please see earlier logs for details about the error.
[ W 2019-05-08 08:34:24.7967 404/Tk age/Cor/Spa/SmartSpawner.h:572 ]: An error occurred while spawning an application process: Cannot connect to Unix socket '/tmp/passenger.PKROzbY/apps.s/preloader.hyl9g8': No such file or directory (errno=2)
[ W 2019-05-08 08:34:24.7968 404/Tk age/Cor/Spa/SmartSpawner.h:574 ]: The application preloader seems to have crashed, restarting it and trying again...
App 543 output: [auth_saml] Missing settings from '/app/config/plugins/auth_saml/settings.yml', skipping omniauth registration.
App 543 output: hook registered
App 543 output: Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
App 543 output: /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:108:in `fork': Cannot allocate memory - fork(2) (Errno::ENOMEM)
App 543 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:108:in `handle_spawn_command'
App 543 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:78:in `accept_and_process_next_client'
App 543 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:167:in `run_main_loop'
App 543 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:207:in `<module:App>'
App 543 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
App 543 output: from /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/helper-scripts/rack-preloader.rb:29:in `<main>'
[ E 2019-05-08 08:34:52.2521 404/Tk age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /app: The preloader process sent an unparseable response:
Error ID: c2ce0823
Error details saved to: /tmp/passenger-error-bpsfAC.html
[ E 2019-05-08 08:34:52.2570 404/T8 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is c2ce0823. Please see earlier logs for details about the error.
Thanks.
The import line in the log is this one:
App 439 output: /app/vendor/bundle/ruby/2.6.0/gems/passenger-6.0.1/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb:108:in `fork': Cannot allocate memory - fork(2) (Errno::ENOMEM)
This means your container is unable to allocate necessary memory. It could be that your system is in a OOM state and things are being killed or due to some other restriction on the daemon that prevents it from allocating additional memory
For reference:
https://success.docker.com/article/docker-daemon-error-cannot-allocate-memory

messageExchange.getTimestamp() maven overwriting value

when using messageExchange.getTimestamp() directely friom soapui .
im getting the right values back. so the response time is around 50ms.
However, if i use maven to trigger the same project. then the time which is log for getTimestamp becomes 500ms.
so question is, is the "messageExchange.getTimestamp()" calcuiting the actual response time or the run time to trigger the request and get response ?
also, if the project contains more than one file. so 3 requests to be sent.
the first one takes 500ms
second one takes 50ms
and third takes 45ms
so the times for the second the third request are right. not the first.
how to fix this ?
logs below showing the time difference. keeping in mind its the same request. if this is run directly from soapui, issues isnt there. issue only comes up when we run this throguh maven.
T E S T S
-------------------------------------------------------
Running com.test.app.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- soapui-maven-plugin:5.2.1:test (soapUI4) # projectNAme ---
SoapUI 5.2.1 Maven2 TestCase Runner
2017-02-27 10:44:57,239 [BuilderThread 0] INFO com.eviware.soapui.tools.SoapUITestCaseRunner - Setting global property [enviroment] to [Enviroment]
2017-02-27 10:44:57,239 [BuilderThread 0] INFO com.eviware.soapui.tools.SoapUITestCaseRunner - Setting global property [projectname] to [projectNAme]
10:44:57,939 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\test\soapui-settings.xml]
10:45:02,071 INFO [PluginManager] 0 plugins loaded in 2 ms
10:45:02,071 INFO [DefaultSoapUICore] All plugins loaded
10:45:03,427 INFO [WsdlProject] Loaded project from [file:/C:/automation/soapui-project.xml]
10:45:03,437 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [#resposnetimeAutomation]
10:45:03,439 INFO [SoapUITestCaseRunner] Running Project [#resposnetimeAutomation], runType = SEQUENTIAL
10:45:05,637 INFO [log] =============START=============
10:45:05,669 INFO [SoapUITestCaseRunner] Running SoapUI testcase [Projecttest]
10:45:05,677 INFO [SoapUITestCaseRunner] running step [setProperties]
10:45:05,743 INFO [SoapUITestCaseRunner] running step [GetRequests]
10:45:05,829 INFO [SoapUITestCaseRunner] running step [assignPropertyValues]
10:45:06,078 INFO [log] Assign prop about to send file name: tc_01_tst.xml
10:45:06,202 INFO [SoapUITestCaseRunner] running step [TriggerRequest]
10:45:06,818 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
10:45:06,818 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /endpoint/test HTTP/1.0
10:45:06,851 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
10:45:06,868 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
10:45:06,912 INFO [SoapUITestCaseRunner] running step [verificationStep]
10:45:08,222 INFO [log] response Time in ms: ==================== 445
10:45:08,222 INFO [log] responsegetTimestamp Time in ms: ==================== 1488152706869
10:45:08,222 INFO [log] ==================================================================================
10:45:08,222 INFO [log] HTTP status code: 200
10:45:08,223 INFO [log] ==================================================================================
10:45:09,262 INFO [SoapUITestCaseRunner] running step [triggerrequest]
10:45:09,285 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
10:45:09,285 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /endpoint/test HTTP/1.0
10:45:09,312 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
10:45:09,312 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
10:45:09,322 INFO [SoapUITestCaseRunner] running step [verificationStep]
10:45:09,323 INFO [log] response Time in ms: ==================== 31
10:45:09,324 INFO [log] responsegetTimestamp Time in ms: ==================== 1488152709313
10:45:09,324 INFO [log] ==================================================================================
10:45:09,324 INFO [log] HTTP status code: 200
10:45:09,324 INFO [log] ==================================================================================
10:45:09,933 INFO [SoapUITestCaseRunner] running step [assignPropertyValues]
10:45:09,933 INFO [log] Assign prop about to send file name: tc2dass.xml
10:45:09,978 INFO [SoapUITestCaseRunner] running step [triggerrequest]
10:45:09,987 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
10:45:09,987 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /endpoint/test HTTP/1.0
10:45:10,008 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
10:45:10,009 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
10:45:10,017 INFO [SoapUITestCaseRunner] running step [verificationStep]
10:45:10,019 INFO [log] response Time in ms: ==================== 25
10:45:10,020 INFO [log] responsegetTimestamp Time in ms: ==================== 1488152710009
10:45:10,020 INFO [log] ==================================================================================
10:45:10,020 INFO [log] HTTP status code: 200
10:45:10,020 INFO [log] ==================================================================================
10:45:10,713 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [Projecttest], time taken: 4908ms, status: FAILED
10:45:10,723 INFO [SoapUITestCaseRunner] Project [#resposnetimeAutomation] finished with status [FAILED] in 7278ms

sonar-runner fails every time

While running sonar-runner (with debug flags, and stack trace) I'm getting an error.
My sonar server is bound to mysql which runs on the same machine. It was running ok for some time, but lately it have started ending with following error.
10:25:23.030 DEBUG - 178223 measures to dump
10:25:23.629 DEBUG - Updating semaphore batch-test:test1
10:25:33.739 DEBUG - Updating semaphore batch-test:test1
10:25:43.968 DEBUG - Updating semaphore batch-test:test1
10:25:49.551 INFO - Store results in database
10:25:49.551 DEBUG - Execute org.sonar.batch.index.ComponentDataPersister
10:25:54.151 DEBUG - Updating semaphore batch-test:test1
10:26:02.159 DEBUG - Execute org.sonar.batch.issue.IssuePersister
10:26:02.196 DEBUG - ooo Using Connection [jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8, UserName=sonar#localhost, MySQL Connector Java]
10:26:02.196 DEBUG - ==> Preparing: select * from projects p WHERE p.kee=?
10:26:02.196 DEBUG - ==> Parameters: test:test1:com.test.framework.gba.GbaInfoProvider(String)
10:26:02.198 DEBUG - Release semaphore on project : org.sonar.api.resources.Project#45de530a[id=2644,key=test:test1,qualifier=TRK], with key batch-test:test1
10:26:02.281 DEBUG - To prevent a memory leak, the JDBC Driver [com.mysql.jdbc.Driver] has been forcibly deregistered
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 27:30.454s
Final Memory: 27M/872M
Any ideas why it fails?

What is the meaning of Karma runner log times

I've got a very simple question which I've tried to find out but without satisfactory results.
Example is underneath:
INFO [karma]: Karma server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [launcher]: Starting browser Firefox
INFO [Chrome 28.0 (Linux)]: Connected on socket id MIsxYm-yXOtkIlbXrkr4
INFO [Chrome 28.0 (Linux)]: Connected on socket id Ek6biR3iiKgej2a-rkr5
INFO [Firefox 21.0 (Linux)]: Connected on socket id OcDqEq-VZ5o7tCjNrkr6
Chrome 28.0 (Linux): Executed 2 of 2 SUCCESS (1.655 secs / 1.392 secs)
Chrome 28.0 (Linux): Executed 2 of 2 SUCCESS (2.131 secs / 1.659 secs)
Firefox 21.0 (Linux): Executed 2 of 2 SUCCESS (2.351 secs / 1.414 secs)
TOTAL: 6 SUCCESS
The question is what exactly these times (1.655 secs / 1.392 secs) means?
Correct me if I created a bad main question (title) :)
The two numbers are totalTime/netTime source. The total time is wall clock time from start to end, and the net time is the sum of all the time spent in individual tests source.

Resources