I want to convert a ListBuffer[Case Class] to JSON, I tried using scalatra-json and followed the documentation guideline. I added the following lines to my buid.sbt
libraryDependencies ++= Seq( "org.scalatra" %% "scalatra-json" % ScalatraVersion,
"org.json4s" %% "json4s-jackson" % "3.5.2",)
but while doing jetty:start I am getting the following error:
[error] stack trace is suppressed; run last update for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.scalatra:scalatra-json_2.12:2.2.0
[error] Not found
[error] Not found
[error] not found: /home/wintersoldier/.ivy2/local/org.scalatra/scalatra-json_2.12/2.2.0/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/scalatra/scalatra-json_2.12/2.2.0/scalatra-json_2.12-2.2.0.pom
[error] not found: https://repo.typesafe.com/typesafe/ivy-releases/org.scalatra/scalatra-json_2.12/2.2.0/ivys/ivy.xml
[error] Error downloading org.json4s:json4s-jackson_2.12:3.7.0
[error] Not found
[error] Not found
[error] not found: /home/wintersoldier/.ivy2/local/org.json4s/json4s-jackson_2.12/3.7.0/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/json4s/json4s-jackson_2.12/3.7.0/json4s-jackson_2.12-3.7.0.pom
[error] not found: https://repo.typesafe.com/typesafe/ivy-releases/org.json4s/json4s-jackson_2.12/3.7.0/ivys/ivy.xml
[error] Total time: 7 s, completed 09-Nov-2020, 8:53:38 PM
Related
I have a galera cluster with 3 nodes in QA environement.. There was a abrupt shut down of the nodes and I restarted and bootstrapped the first nodewhich is working fine. The second node when I try to start gives the error , "rsyncd[30958]: unknown module 'rsync_sst-undo_dir' tried from XXX" .
In mysql log :
[Warning] WSREP: 0.0 : State transfer to 1.0 (x) failed: -255 (Unknown error 255) [ERROR] WSREP: /home/buildbot/buildbot/build/gcs/src/gcs_group.cpp:gcs_group_handle_join_msg():1207: Will never receive state. Need to abort.
Not sure what causes this error,
rsyncd[30958]: unknown module 'rsync_sst-undo_dir' tried from XXX systemd[1]: mariadb.service: main process exited, code=killed, status=6/ABRT unknown module 'rsync_sst-undo_dir' "
Any pointers would be very helpful .
Thanks
Any pointers would be very helpful .
I create a repository to create a laravel app quickly: https://github.com/salvatore-esposito/laravel-dockerized
The problem is that when I use within Ubuntu everything is ok, whereas within win10 with Vagrant i have this issue with the db service:
mysqld: [Warning] World-writable config file '/etc/mysql/my.cnf' is ignored.
db | mysqld: Error on realpath() on '/var/lib/mysql-files' (Error 2 - No such file or directory)
db | 2019-08-20T19:37:09.823482Z 0 [ERROR] [MY-010095] [Server] Failed to access directory for --secure-file-priv. Please make sure that directory exists and is accessible by MySQL Server. Supplied value : /var/lib/mysql-files
db | 2019-08-20T19:37:09.831212Z 0 [ERROR] [MY-010119] [Server] Aborting
db exited with code 1
What's the matter with Vagrant?
I'm trying to change the data directory of my MySQL database from the default location /var/lib/mysql to a new path which in my case is /home/dev/Desktop/iiab/db/mysql.
I have tried following the answer provided by Victor in the following post:
How to change MySQL data directory?
(I have also edited the alias file as per the instruction from mak in the comments on Victor's answer).
BUT, I am getting the following terminal error when trying to start MySQL again:
mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
When inspecting the log file using below command
tail -f /var/log/mysql/error.log
It shows the following:
2016-05-23T13:43:11.608141Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2016-05-23T13:43:11.608234Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-05-23T13:43:11.608252Z 0 [ERROR] Failed to initialize plugins.
2016-05-23T13:43:11.608260Z 0 [ERROR] Aborting
2016-05-23T13:43:11.608297Z 0 [Note] Binlog end
2016-05-23T13:43:11.608416Z 0 [Note] Shutting down plugin 'MyISAM'
2016-05-23T13:43:11.608469Z 0 [Note] Shutting down plugin 'CSV'
2016-05-23T13:43:11.609124Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
My my.cnf file looks as follows (I omitted the initial comments ##):
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
[mysqld]
datadir=/home/dev/Desktop/iiab/db/mysql
socket=/home/dev/Desktop/iiab/db//mysql.sock
My /etc/apparmor.d/usr.sbin.mysqld file looks as follows (I only included the parts which were affected by the instructions i.e. replace var/lib/mysql with the new path).
# Allow data dir access
/home/dev/Desktop/iiab/db/mysql/ r,
/home/dev/Desktop/iiab/db/mysql/** rwk,
# Allow data files dir access
/home/dev/Desktop/iiab/db-files/ r,
/home/dev/Desktop/iiab/db-files/** rwk,
# Allow keyring dir access
/home/dev/Desktop/iiab/db-keyring/ r,
/home/dev/Desktop/iiab/db-keyring/** rwk,
My /etc/apparmor.d/tunables/alias file looks as follows (I omitted initial comments ##):
# Or if mysql databases are stored in /home:
alias /var/lib/mysql/ -> /home/dev/Desktop/iiab/db/mysql/,
I am able to restart and reload apparmor successfully.
I'm using Ubuntu 16.04.
Anyone know what I am doing wrong?
I've a problem in joining new node to percona xtradbcluster.
here is my log :
I tested the test_sstuser working on honor without any problem .
but in new nodes I get these errors :
2014-05-31 04:01:40 2391 [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-0000-0000-0000-000000000000) does not match group state UUID (02dc9b38-e825-11e3-a67b-4bfddfde0c98): 1 (Operation not permitted)
at galera/src/replicator_str.cpp:prepare_for_IST():447. IST will be unavailable.
WSREP_SST: [ERROR] Error while getting data from donor node: exit codes: 1 0 (20140531 04:01:40.934)
WSREP_SST: [ERROR] Cleanup after exit with status:32 (20140531 04:01:40.936)
2014-05-31 04:01:40 2391 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.0.2' --auth 'test_sstuser:123456' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf' --parent '2391' '' : 32 (Broken pipe)
2014-05-31 04:01:40 2391 [ERROR] WSREP: Failed to read uuid:seqno from joiner script.
2014-05-31 04:01:40 2391 [ERROR] WSREP: SST failed: 32 (Broken pipe)
2014-05-31 04:01:40 2391 [ERROR] Aborting
2014-05-31 04:01:41 2391 [Warning] WSREP: 1.0 (test.host.com): State transfer to 0.0 (master-2.test.net) failed: -32 (Broken pipe)
2014-05-31 04:01:41 2391 [ERROR] WSREP: gcs/src/gcs_group.c:gcs_group_handle_join_msg():723: Will never receive state. Need to abort.
how can I solve this problem ?
Best regards
Ali
I had the same issue, with another more message:
WSREP_SST: [ERROR] xtrabackup process ended without creating '/path/to/mysql/xtrabackup_galera_info' (20150108 13:09:23.012)
The issue was that I was using xtrabackup and not xtrabackup-v2 in my /etc/mysql/my.cnf:
wsrep_sst_method = xtrabackup
Setting it to:
wsrep_sst_method = xtrabackup-v2
fixed the issue.
Some recommend not to set this variable.
I had the same issue. The fix is simple, just add the following to my.cnf in the [mysqld] section innodb_log_file_size=48M
(Use whatever size log file you need, 48M is OK for small Dbs)
Then follow the instructions to restart mysql with a new log file size. The basics are (but READ the Manual!) stop mysql remove the ib_logfile* files from /var/lib/mysql restart mysql
Be sure not to be using innodb fast shutdown (read the manual!)
We just experienced this error on 1 node out of a 3-node cluster. Manually rsyncing the /var/lib/mysql from a healthy node (we stopped that node during the rsync to not change files while syncing) to the broken node was what we needed to make it go again.
I have mysql running on linux environment under centos distributed and cPanel/WHM control panel
i track the mysql log and i got
130914 6:49:08 [Note] Plugin 'FEDERATED' is disabled.
130914 6:49:08 [ERROR] No paths allowed for shared library
130914 6:49:08 [Warning] Couldn't load plugin named '68' with soname 'افص�حات افإضا�ٍة فكلتدٍات اف�ٍ بٍ'.
130914 6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/Cybernetec's Hacks Template Group' (errno: 0 cannot open shared object file: No such file or directory)
130914 6:49:08 [Warning] Couldn't load plugin named '487' with soname 'Cybernetec's Hacks Template Group'.
130914 6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/Cyb - ChatBox - CT' (errno: 0 cannot open shared object file: No such file or directory)
130914 6:49:08 [Warning] Couldn't load plugin named '488' with soname 'Cyb - ChatBox - CT'.
130914 6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/Cyb - ChatBox - IL' (errno: 0 cannot open shared object file: No such file or directory)
130914 6:49:08 [Warning] Couldn't load plugin named '489' with soname 'Cyb - ChatBox - IL'.
130914 6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/[you]' (errno: 0 cannot open shared object file: No such file or directory)
130914 6:49:08 [Warning] Couldn't load plugin named '93' with soname '[you]'.
130914 6:49:08 [ERROR] No paths allowed for shared library
130914 6:49:08 [Warning] Couldn't load plugin named '117' with soname 'افإستبداف افآفٍ'.
i can start mysql with skip grant table option
/etc/init.d/mysql start --skip-grant-tables
the problem is the mysql database was overwritten with other tables
i deleted the mysql folder in the path /var/lib/mysql/
i deleted the rpm mysql files by running commands
# rpm -qa | grep -i mysql > /mysql.txt
# for i in `cat /mysql.txt`;do rpm -e $i;done
then i run
/scripts/upcp
to build mysql again
and i mysql is up and running again
Your Mysql configuration seems to be in bad shape.
1- Check if there are strange lines in your my.cnf configuration file starting with 'plugin-load'. Such lines should look like: (should only contain references to .so files)
plugin-load=myplugin=somepluglib.so
2- Or maybe you have a corrupted 'mysql.plugin' table (or maybe a filesystem corruption... hope you have backups...)