Monit configuration on archlinux (mysql)

This config lines should work ok on an archlinux system?
    check process mysql with pidfile /var/run/mysqld/mysqld.pid
       group database
       start program = "/etc/rc.d/mysqld start"
       stop program = "/etc/rc.d/mysqld stop"
       if failed host 127.0.0.1 port 3306 protocol mysql then restart
       if 5 restarts within 5 cycles then timeout
       depends on mysql_bin
       depends on mysql_rc
Those "depends" lines are needed?
edit: at least the last one looks like not "Mar 20 23:01:20 localhost monit: monit: Error: Depend service 'mysql_rc' is not defined in the control file"... lol
any idea?
edit2: and the previous neither, lol "Mar 20 23:04:56 localhost monit: monit: Error: Depend service 'mysql_bin' is not defined in the control file"
edit3: without those depends it runs... then I tried killing mysqld... but it tried to restart it 5 times without luck (I have received the email alert "Description: service restarted 5 times within 5 cycles(s) - unmonitor")
Last edited by luuuciano (2013-03-21 03:23:05)

Just read something about monit and arch and you'll be good
First, "depends" defines... well, dependencies between monit services. So in order to run mysql as shown, you have to provide these services (probably of "check file" type) or just assume they're always OK and remove dependecy check.
Then, start|stop program in your case use sysvinit style scripts, while you probably have systemd (unless you managed to avoid this monstrosity). So, replace "/etc/rc.d/mysql..." with corresponding systemctl invocation.
I don't know if mysql under systemd creates pidfile; if not, use "matching ..." or even "check host" -- as systemd takes care of process supervision, just checking connectivity will be enough.

Similar Messages

  • OSLEC - any knowledgeable, how to configure in ArchLinux?

    OSLEC: http://www.rowetel.com/blog/?page_id=454
    - PulseAudio crash it had echo cancel module, but its useless
    - Alsa is stable but has no echo cancel
    OSLEC echo cancel how to embed with Alsa? Anyone can share some knowledge regarding this, so that any application used directly to Alsa, we can use that echo cancel

    I don't know if this helps, but oslec is in the AUR: https://aur.archlinux.org/packages/oslec/

  • Configuring mysql with J2EE

    Hi Im a newbie in J2EE. (just started learning it 2 days back that new..;-)
    I managed to set up a simple application using the J2ee tutorial. Now i want to try out a database application. I have a mysql database installed. Can anyone guide me on how to setup mysql with j2ee server? Are there any online tutorials etc that would help me in this?
    I actually managed to create a connection pool however when i try to ping it i get an error message with says "An error has occurred. Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource" .
    I hav already set classpath of mysql driver. Do i need to copy the jar file to any other directory?
    Im not too sure if the way i have created connection pool is right, but i used the defaults specified so i guess that should be ok.
    Any Help would be appreciated.
    Thanks in advance.

    Hi! I�m Brazilian and I�ve been learning the English language yet, but I�ll try to describe how to configure J2EE with MySQL.
    I am using MySQL version 4.1.7 with J2EE version 1.3 on Windows XP Professional. The driver version of MySQL is 3.0.16.
    You have to configure the following two files:
    - <J2EE_HOME>\bin\setenv.bat
    - <J2EE_HOME>\config\resource.properties
    Do the following steps:
    1) Copy the JAR file of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar) to <J2EE_HOME>\lib directory.
    2) In <J2EE_HOME>\bin directory open the setenv.bat file and analize the code. It is not hard to understand the code, it is just the classpath configuration of J2EE. After understand it, add a reference of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar), that was copied to <J2EE_HOME>\lib directory.
    3) Run the <J2EE_HOME>\bin\j2eeadmin.bat to configure the resource.properties file.There are two command lines to be executed, as below:
    - j2eeadmin.bat -addJdbcDriver <CLASS NAME OF THE DRIVER>
    - j2eeadmin.bat -addJdbcDatasource <JNDI NAME> <URL>
    For example:
    - j2eeadmin.bat -addJdbcDriver "com.mysql.jdbc.Driver"
    - j2eeadmin.bat -addJdbcDatasource "jdbc/mysql/test" "jdbc:mysql://localhost/test?user=username&password=pass"
    4) After run j2eeadmin.bat, the resource.properties file will be modified. But when I did it and when I executed the verbose command to start J2EE, some error messages was exhibited. So I decided to open the resource.properties file and I noticed hat the character "\" was added erroneously in a lot of places of the code. It did not seem correct, so I decided to remove these characters replacing them. Bingo!!! After I did it, I run verbose again and no more message error ocurred. I think it is a bug of J2EE.
    Finish! I modified the datasource JNDI to access MySQL and then I run my EAR application. No problems occurred. My application is running succesfully.
    Good luck!

  • How to configure MySQL to be used with J2EE 1.3.1 -- Very Very URGENT.

    Hi All,
    I have downloaded Sun's J2EE reference implementation 1.3.1. I want to use MySQL as my database instead of the default database Cloudscape that comes with J2EE SDK 1.3.1. Can any one help me configuring in doing the same.
    Thanks and regards,
    Venky.

    Hi! I had the same problem, too. I�m Brazilian and I�ve been learning the English language yet, but I�ll try to describe how to configure J2EE with MySQL.
    I am using MySQL version 4.1.7 with J2EE version 1.3 on Windows XP Professional. The driver version of MySQL is 3.0.16.
    You have to configure the following two files:
    - <J2EE_HOME>\bin\setenv.bat
    - <J2EE_HOME>\config\resource.properties
    Do the following steps:
    1) Copy the JAR file of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar) to <J2EE_HOME>\lib directory.
    2) In <J2EE_HOME>\bin directory open the setenv.bat file and analize the code. It is not hard to understand the code, it is just the classpath configuration of J2EE. After understand it, add a reference of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar), that was copied to <J2EE_HOME>\lib directory.
    3) Run the <J2EE_HOME>\bin\j2eeadmin.bat to configure the resource.properties file.There are two command lines to be executed, as below:
    - j2eeadmin.bat -addJdbcDriver <CLASS NAME OF THE DRIVER>
    - j2eeadmin.bat -addJdbcDatasource <JNDI NAME> <URL>
    For example:
    - j2eeadmin.bat -addJdbcDriver "com.mysql.jdbc.Driver"
    - j2eeadmin.bat -addJdbcDatasource "jdbc/mysql/test" "jdbc:mysql://localhost/test?user=username&password=pass"
    4) After run j2eeadmin.bat, the resource.properties file will be modified. But when I did it and when I executed the verbose command to start J2EE, some error messages was exhibited. So I decided to open the resource.properties file and I noticed that the character "\" was added erroneously in a lot of places of the code. It did not seem correct, so I decided to remove these characters replacing them. Bingo!!! After I did it, I run verbose again and no more message error ocurred. I think it is a bug of J2EE.
    Finish! I modified the datasource JNDI to access MySQL and then I run my EAR application. No problems occurred. My application is running succesfully.
    Good luck!

  • VDI 3.1- All in one support configuration - MySQL Question

    Hello everyone,
    I followed these steps to setup mysql for one server supported configuration of VDi 3.1 :
    http://wikis.sun.com/display/VDI3dot1/How+to+Install+and+Configure+a+Remote+MySQL+Database+%28InnoDB%29
    Does anyone know how to register this MySQL install as an auto start SMF service under Solaris ?
    Regards,
    Hardik

    Fellow Forum Members,
    Please ignore the Q here. Not a SR related Q. Moved to the VDI forum now.
    Cheers

  • How to configure Solaris 10 IPMP for Oracle VDI 3.3.2

    Hi,
    Does anyone have an indication on how to configure Solaris 10 IPMP in a manner that supports Oracle VDI?
    We have setup two servers with 2 test addresses on physical and 1 logical for the hostname of the box, but when we configure VDI the VDI database does not come up on the 2nd box. We have also tried configuring IPMP without test addresses, but it doesn't make any difference - the DB still doesn't go into the up state after configuration on the 2nd server.
    Solaris 10 u9 with patches
    Two physical NICs on management VLAN via 2 switches
    Two physical NIcs on VDI VLAN via 2 switches
    VDI 3.3.2
    All hostnames are in DNS and resolve for short name, FQDN and also reverse IP lookup
    The is a proposal pdf on Oracle website that mentions IPMP, so someone has done it. Just could do with a hint on how it was done so that it works.
    ( http://www.oracle.com/us/technologies/virtualization/vdi-design-proposal-1401195.pdf )
    Thanks
    Paul

    OK, updating this with what was causing the issue.
    Not an IPMP problem this was a DNS problem. The VDI servers have access to two DNS environments, so had a DNS search path that had the domain where the VMs where going to go and another for management of the box with two DNS servers listed in /etc/resolv.conf.
    We configured VDI using the FQDN for the management DNS, however the vda-config script takes the hostname of the box adds the first DNS domain from /etc/resolv.conf search entry and configures using (it seams to ignore what you put into the vda-config). When the config script comes to configuring MySQL because the names didn't match (FQDN it created by adding hostname to the 1st entry in DNS search path & FQDN that you put into vda-config command), it decides that it is configuring a "Client MySQL" instance rather than a "Slave MySQL" instance, which means the VDA DB never comes up in the out of vda-center status.
    So the fix is to:
    1) configure IPMP without test addresses (so traffic comes out of the correct IP and can be reverse looked up in DNS by the other host)
    2) if you have multiple DNS search entries, configure VDI using the first entry in your search path as its FQDN
    Paul

  • Php configuration issue with libmysqlclient

    Hi ,
    I am getting  below issue while configuring php 5.3.3 with below command
    ./configure --with-apxs2=/local/apps/rxapi/apache/bin/apxs --with-openssl --with-mysql=/opt/mysql/mysql --enable-dbase --with-libdir=lib/64 --prefix=/local/apps/rxapi/php5.5.3 --with-config-file-path=/local/apps/rxapi/php5.5.3 --disable-cgi --with-gd --with-zlib --with-gettext --with-gdbm
    checking for MySQL support... yes
    checking for specified location of the MySQL UNIX socket... no
    configure: error: Cannot find libmysqlclient under /opt/mysql/mysql.
    Note that the MySQL client library is not bundled anymore!

    Unless you have a specific need to use libmysqlclient, then use PHP's mysqlnd driver instead.  Configure PHP by using --with-mysql=mysqlnd.  See MySQL :: MySQL 5.6 Reference Manual :: 22.9.5 MySQL Native Driver (Mysqlnd) and PHP: Mysqlnd - Manual
    Also unless you really, really, really need the old insecure 'mysql' extension then use either mysqli or PDO_MYSQL instead. These can be configured with --with-mysqli=mysqlnd and --with-pdo-mysql=mysqlnd

  • [SOLVED PAR/LY]kde 4.2 -- akonadi configuration + kmail crash problems

    Hey guys,
    Recently i decided to give kde 4.2 a try , (been using gnome for months) and after the update i have these two distinct (i think) problems with kmail.
    When i run kmail  ,  it tries to start akonadi server, which fails due to configuration issues (see below) . After that , when i try to send an email it *always* crashes. Here is the output either of the shell or the popup error dialog:
    1)  akonadi misconfiguration(?)
    From the pop up
    Akonadi Server Self-Test Report
    ===============================
    Test 1: SUCCESS
    Database driver found.
    Details: The QtSQL driver 'QMYSQL' is required by your current Akonadi server configuration.
    The following drivers are installed: QSQLITE, QMYSQL3, QMYSQL, QODBC3, QODBC, QPSQL7, QPSQL.
    Make sure the required driver is installed.
    File '/akonadiserverrc' could not be opened
    Test 2: ERROR
    MySQL server not found.
    Details: You currently have configured Akonadi to use the MySQL server ''.
    Make sure you have the MySQL server installed, set the correct path and ensure you have the necessary read and execution rights on the server executable. The server executable is typically called 'mysqld', its locations varies depending on the distribution.
    Test 3: ERROR
    Executing the MySQL server failed.
    Details: Executing the MySQL server '' failed with the following error message: ''
    Test 4: SUCCESS
    No current MySQL error log found.
    Details: The MySQL server did not report any errors during this startup into '/mysql.err'.
    Test 5: SUCCESS
    MySQL server default configuration found.
    Details: The default configuration for the MySQL server was found and is readable at <a href='/usr/share/config/akonadi/mysql-global.conf'>/usr/share/config/akonadi/mysql-global.conf</a>.
    File content of '/usr/share/config/akonadi/mysql-global.conf':
    # Global Akonadi MySQL server settings,
    # These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
    # Based on advice by Kris Köhntopp <[email protected]>
    [mysqld]
    skip_grant_tables
    skip_networking
    # strict query parsing/interpretation
    # TODO: make Akonadi work with those settings enabled
    #sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
    #sql_mode=strict_trans_tables
    # use InnoDB for transactions and better crash recovery
    default_storage_engine=innodb
    # case-insensitive table names, avoids trouble on windows
    lower_case_table_names=1
    character_set_server=latin1
    collation_server=latin1_general_ci
    table_cache=200
    thread_cache_size=3
    log_bin=mysql-bin
    expire_logs_days=3
    #sync_bin_log=0
    # error log file name, relative to datadir
    log_error=mysql.err
    log_warnings=2
    # log all queries, useful for debugging but generates an enormous amount of data
    #log=mysql.full
    # log queries slower than n seconds, log file name relative to datadir
    log_slow_queries=mysql.slow
    long_query_time=1
    # log queries not using indices, debug only, disable for production use
    log_queries_not_using_indexes=1
    # maximum blob size
    max_allowed_packet=32M
    max_connections=256
    # makes sense when having the same query multiple times
    # makes no sense with prepared statements and/or transactions
    query_cache_type=0
    query_cache_size=0
    innodb_file_per_table=1
    innodb_log_buffer_size=1M
    innodb_additional_mem_pool_size=1M
    # messure database size and adjust
    # SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");
    innodb_buffer_pool_size=80M
    # size of average write burst, keep Innob_log_waits small, keep Innodb_buffer_pool_wait_free small (see show global status like "inno%", show global variables)
    innodb_log_file_size=64M
    innodb_flush_log_at_trx_commit=2
    Test 6: SKIP
    MySQL server custom configuration not available.
    Details: The custom configuration for the MySQL server was not found but is optional.
    Test 7: ERROR
    MySQL server configuration not found or not readable.
    Details: The MySQL server configuration was not found or is not readable.
    Test 8: SUCCESS
    akonadictl found and usable
    Details: The program '/usr/bin/akonadictl' to control the Akonadi server was found and could be executed successfully.
    Result:
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.local/share/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.local/share/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.local/share/akonadi" '
    Akonadi Control: running
    Akonadi Server: stopped
    Test 9: SUCCESS
    Akonadi control process registered at D-Bus.
    Details: The Akonadi control process is registered at D-Bus which typically indicates it is operational.
    Test 10: ERROR
    Akonadi server process not registered at D-Bus.
    Details: The Akonadi server process is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.
    Test 11: SKIP
    Protocol version check not possible.
    Details: Without a connection to the server it is not possible to check if the protocol version meets the requirements.
    Test 12: ERROR
    No resource agents found.
    Details: No resource agents have been found, Akonadi is not usable without at least one. This usually means that no resource agents are installed or that there is a setup problem. The following paths have been searched: '/usr/share/akonadi/agents'. The XDG_DATA_DIRS environment variable is set to '/usr/share:/usr/local/share:/opt/kde/share', make sure this includes all paths where Akonadi agents are installed to.
    Directory listing of '/usr/share/akonadi/agents':
    distlistresource.desktop
    icalresource.desktop
    imaplibresource.desktop
    kabcresource.desktop
    kcalresource.desktop
    knutresource.desktop
    localbookmarksresource.desktop
    maildirresource.desktop
    mailthreaderagent.desktop
    nepomukcontactfeeder.desktop
    nepomukemailfeeder.desktop
    nepomuktagresource.desktop
    nntpresource.desktop
    strigifeeder.desktop
    vcarddirresource.desktop
    vcardresource.desktop
    Environment variable XDG_DATA_DIRS is set to '/usr/share:/usr/local/share:/opt/kde/share'
    Test 13: SUCCESS
    No current Akonadi server error log found.
    Details: The Akonadi server did not report any errors during its current startup.
    Test 14: SUCCESS
    No previous Akonadi server error log found.
    Details: The Akonadi server did not report any errors during its previous startup.
    Test 15: SUCCESS
    No current Akonadi control error log found.
    Details: The Akonadi control process did not report any errors during its current startup.
    Test 16: SUCCESS
    No previous Akonadi control error log found.
    Details: The Akonadi control process did not report any errors during its previous startup.
    From the shell output:
    kmail(14979) KWallet::Wallet::openWallet: Pass a valid windows to KWallet::Wallet::openWallet().
    kres-migrator(14981)/libakonadi Akonadi::Control::Private::exec: Could not start/stop Akonadi!
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.local/share/akonadi/db_data" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.config/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.local/share/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.local/share/akonadi" '
    XdgBaseDirs::saveDir: failed to create directory ' "/root/.local/share/akonadi" '
    kmail(14979)/kresources: Akonadi migration failed!
    kmail(14979)/kresources: command was: ("kres-migrator", "--interactive-on-change", "--type", "contact", "--omit-client-bridge")
    kmail(14979)/kresources: exit code: 0
    kmail(14979)/kresources: stdout: ""
    kmail(14979)/kresources: stderr: ""
    QProcess: Destroyed while process is still running.
    kmail(14979): No language dictionaries for the language: "en_US"
    kmail(14979): No language dictionaries for the language: "en_US"
    kmail(14979): No language dictionaries for the language: "en_US"
    kmail(14979): No language dictionaries for the language: "en_US"
    and
    2) this is the output at the shell once i write a mail and i press send.
    kmail: relocation error: /usr/lib/libgpgme++-pthread.so.2: symbol gpgme_cancel_async, version GPGME_1.1 not defined in file libgpgme-pthread.so.11 with link time reference
    and a crash follows.
    Well , i tried to manually create some of the directories, with no success. To be honest,  i mostly care to fix this crashing issue since i cant send any email after the upgrade.Any pointers folks?
    Cheers,
    IMG
    Last edited by IMG (2009-02-22 12:02:50)

    Hey toxygen,
    thanks for the reply. No i am not using kdemod (actually never tried it, maybe i should try it some day) . The thing about turning akonadi off is that it is not that clear to me how to do it properly.
    Looking around at System settings --> advanced --> Akonadi server configuration  , it clearly states that akonadi server is not running (due to bad configuration). I dont see anything like "switch off Akonadi server" either.
    Trying System settings--> advanced --> Kresources , it tries a couple of times to start the Akonadi server (fails ofcourse) , and then i get to the Kresources dialog. But i cant see anything there related to Akonadi, or something like "do not use Akonadi".
    Also  removing the package ignoring the dependencies with
    pacman -Rd akonadi
    has this result on shell
    KWallet::Wallet::openWallet: Pass a valid window to KWallet::Wallet::openWallet().
    kres-migrator: error while loading shared libraries: libakonadiprotocolinternals.so.1: cannot open shared object file: No such file or directory
    kmail(23835)/kresources: Akonadi migration failed!
    kmail(23835)/kresources: command was: ("kres-migrator", "--interactive-on-change", "--type", "contact", "--omit-client-bridge")
    kmail(23835)/kresources: exit code: 127
    kmail(23835)/kresources: stdout: ""
    kmail(23835)/kresources: stderr: ""
    So the kde still looks for it(expected). Btw it doesnt seem there to be a way to remove it without the -d option at pacman , since it is required by kdepimlibs , which in turn are required by many other kde packages.So how do you go about switching it off?
    Another strange thing i noticed after googling about the issue is that usually if i get it right, the akonadi configuration files should be located at ~/.config/Akonadi  , so why is it trying to do its stuff at /root/.config/akonadi in my machine ?? Am i somehow causing it to run as root?
    IMG

  • Installing multiple MySQLs in Non-Global Zones

    Hi all,
    We have db01 and db02 physical servers with latest Solaris and Sun Cluster software installed. Each one has the following zones:
    db01z001 - db02z001
    db01z002 - db02z002
    db01z003 - db02z003
    db01z004 - db02z004
    db01zXXX - db02zXXX
    Every zone is installed on zpool zones (on local disks):
    root@db01:~$ zpool status zones
    pool: zones
    state: ONLINE
    scrub: none requested
    config:
    NAME STATE READ WRITE CKSUM
    zones ONLINE 0 0 0
    mirror ONLINE 0 0 0
    c2t0d0 ONLINE 0 0 0
    c2t1d0 ONLINE 0 0 0
    We want to install and configure a different MySQL application and data service in every pair of non-global zones.
    We want to use two SAN logical devices for mysql data:
    d3 db02:/dev/rdsk/c4t600508B4000906990001100000E70000d0
    d3 db01:/dev/rdsk/c4t600508B4000906990001100000E70000d0
    d7 db02:/dev/rdsk/c4t600508B40009069900011000008E0000d0
    d7 db01:/dev/rdsk/c4t600508B40009069900011000008E0000d0
    Is there any way to use this configuration for N pairs or we can only use 2?
    Thanks,
    George

    Hi George,
    You might get away creating global monunts, create directories below the mount pint. Now comes the trick, you create HAStoragePlus resources with filesystem_mountpoints=/global_mountmount/mysql1, you must set AffinityOn to false.
    This creates a lofs mount into the zone.
    I must admit, that I never tried this myself, but it should work. Of cause you will get a performance penalty if you create tables over the wire. Creating tables means creating small files. It is wortha a
    It would be better, if you would have more and smaller luns, so that you could restrict on lun to a pair of zones.
    Kind Regards
    Detlef

  • Error MySQL to Oracle Replication   ERROR   OGG-00146 Failed to Query Meta

    Hello Guys,
    I have a configured replication between MySQL database and Oracle Database using Golden Gate.
    Extract data from MySQL is replicated to Oracle.
    MySQL is on Linux and version is 5.5
    Oracle is 11gR2 RAC on Linux (I am using one node for replication)
    When i start extract and replicat they works fine, but as soon as record is inserted in source database i.e MySQL extract ABENDED with this error in the log file:
    *2013-04-11 16:24:40 ERROR OGG-00146 Oracle GoldenGate Capture for MySQL, smpp7.prm: VAM function VAMRead returned unexpected result: error 600 - VAM Client Report* *<CAUSE OF FAILURE : Failed to Query Metadata from Table : smpp7.sent_sms WHEN FAILED : While Sending Insert and Delete Record WHERE FAILED : MySQLBinLog Reader Module*
    CONTEXT OF FAILURE : No Information Available!>.
    *2013-04-11 16:24:40 ERROR OGG-01668 Oracle GoldenGate Capture for MySQL, smpp7.prm: PROCESS ABENDING*
    This is my extract and replicat:
    Extract
    GGSCI>ADD EXTRACT SMPP7, TRANLOG, BEGIN NOW
    GGSCI>EDIT PARAMS SMPP7
    EXTRACT smpp7
    DBOPTIONS HOST 10.168.20.253, CONNECTIONPORT 14422
    SOURCEDB [email protected]:14422, USERID "*******", PASSWORD "*******"
    RMTHOST 10.168.20.31, MGRPORT 7809
    RMTTRAIL /u01/app/oracle/oradata/GG/dirdat/D2
    TRANLOGOPTIONS ALTLOGDEST /mysql/node3/data/mysql-bin.index
    TABLE smpp7.sent_sms;
    GGSCI>ADD RMTTRAIL /u01/app/oracle/oradata/GG/dirdat/D2, EXTRACT SMPP7, MEGABYTES 5
    GGSCI>INFO RMTTRAIL *
    GGSCI>START EXTRACT SMPP7
    Replicat
    GGSCI>ADD REPLICAT smpp7, EXTTRAIL /u01/app/oracle/oradata/GG/dirdat/D2, checkpointtable ggs_owner.checkpoint
    3) edit params smpp7
    REPLICAT SMPP7
    USERID *******, PASSWORD *******
    ASSUMETARGETDEFS
    HANDLECOLLISIONS
    SOURCEDEFS /u01/app/oracle/oradata/GG/dirdef/smpp7.def
    DISCARDFILE /u01/app/oracle/oradata/GG/dirrpt/smpp7.dsc, PURGE
    MAP "smpp7.sent_sms", TARGET MYSQL_SMPP7.sent_sms, COLMAP (usedefaults,COMPRESS_=compress,SERVICE=@STRCAT(service,"_sms"));
    GGSCI>START REPLICAT smpp7
    I have given full rights to MySQL user:
    GRANT ALL PRIVILEGES ON *.* TO '**********'@'localhost' IDENTIFIED BY 'kannel' WITH GRANT OPTION;
    GRANT ALL PRIVILEGES ON *.* TO '**********'@'10.168.20.253' IDENTIFIED BY 'kannel' WITH GRANT OPTION;
    Can you please help me to get through this problem.
    Regards, Imran

    Hi,
    I have the same error between two Mysql 5.5.
    I have added this line in the extact param file :
    vam params (arliberror -14 warn)
    And on my replicate param file :
    map "aix"."etat", target "FR"."etat", REPERROR (-1403, EXCEPTION);
    It looks working better.
    But I can't modify my max_binlog_size to 4069 (4k). It make have to much file and slow my system.

  • Leopard PHP MySQL socket problems

    I'm running a default Mac OS X 10.5 Apache2 installation locally, with PHP and MySQL tacked on. I'm running into some trouble running MySQL queries from PHP, namely:
    Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
    It appears that PHP was compiled with the configuration command '--with-mysql-sock=/var/mysql' but in Terminal the mysqladmin binary reports the UNIX socket as /tmp/mysql.sock. A check reveals that there is indeed a /tmp/mysql.sock, but no /var/mysql/mysql.sock. This appears to be one of those directory differences between Darwin and the standard MySQL distribution.
    Anyhow, I really don't know the best way to attempt to patch this up even after reading suggestions in the MySQL manual. Setting up an option file for mysql to point to /var/mysql didn't improve matters, nor did explicitly setting socket settings in my PHP config file.
    I'm more of a front-end developer not well versed in back end configuration jazz, so any input would be appreciated.

    the other way to fix this is to edit /etc/php.ini and set the following:
    mysql.default_port = /tmp/mysql.sock
    mysqli.default_port = /tmp/mysql.sock
    mysql.default_sock = /tmp/mysql.sock
    mysqli.default_sock = /tmp/mysql.sock

  • MySQL 5.0 Standard distribution is not working with Xsan on my Xserve.

    Hello,
    until now we have always used on our Xservers the MySQL 5.0 Standard distribution downloadable from www.mysql.com (thus not the MySQL 4.1 that is shipped with Mac OS X 10.4 Server) with its datadir located on an internal disk of the Xserve. Since we have recently set up our Xsan we should now migrate the MySQL datadir to a directory on our 4 Tb Xsan volume, but doing so MySQL 5.0 no longer starts and even a myisamchk complains that the FYI tables are not MyIsam tables (but they are, I just copied the whole "local" datadir to the Xsan volume).
    I then tried to configure the "standard" MySQL 4.1 that Apple ships with Mac OS X Server so that it uses the datadir on the Xsan volume and it starts with no problems, but we need MySQL 5.0! The problem seems to be therefore an incompatibility between the MySQLCOM distribution and the Xsan volumes.
    Our setup is: an Xserve G5 dual 2 GHz running Mac OS X 10.4.8 and Xsan 1.4.1, MySQL 5.0.26,.
    I wish to know if anyone else has encountered similar problems and how this has been eventually fixed.
    Thank you, Fabrizio

    Well, we actually have quite a few reasons to host the MySQL data on Xsan:
    - concurrent access: among other data, the Xsan should also store some MySQL databases actually used by a single web server hosting many virtual hosts and user-managed folders that we want to "split" on two Xserves for both load balancing and failover purposes. The idea is to keep the configuration for all virtual hosts and user folders on both servers activating only one half of them per server, so that in case one server fails the other can easily take its place.
    - space: we have more than 4TB on Xsan, versus the 250 GB mirrored disks of the Xserve. Our databases actually occupy few gigabytes, but they will surely grow in the future.
    - money: our company paid more than 100.000 euros for 14 Xserve, 2 Xserve Raid units and 10 Xsan licenses, and we want to use them as much as possible.
    - database: performance is not a big concern for us while affordability is mandatory. BTW, one of the larger and most frequently used databases is composed by large blobs of data (it's used to store PDF files).
    We purchased all these Apple server products because we always loved Macs and their OS: I still think that Mac OS X is the perfect OS for desktops/notebooks and Mac OS X Server/Xsan running on the Xserve platform are a good and relatively cheap choice for video editing and HPC. But while time goes by and more and more (often inexplicable) problems occur on our Xservers under stress, I also guess that the Apple server line is not the better choice for what we need to do: web hosting, email and authentication services, DHCP, network traffic analysis, and so on, for a big university.
    We had always used Sun servers with Solaris up to few years ago and they never gave us a single problem after many years of use (and misuse), then Mac OS X 10.0.4 was relased...

  • Mysql datasource and WebDynpro

    Hello all!
    I'm new at WD and NW features and I'm trying to figure out the best way to access an external Mysql database with webdynpro.
    I already configured an external mysql datasource at NW CE and it's working fine.
    My doubt is about how I'm going to access this datasource in NWDS? Do I need to create a new Dictionary? How does it work? How do I link this datasource with my WebDynpro project?
    And about the persistence? Must I use JPA, EJB? How do I do it?
    Is there any article about this?

    Hi,
    there are already a lot of examples in the forum of how to connect MySql db with the portal.
    Here is a simple solution:
    If you have already created a datasource:
    try {
                   InitialContext initialContext = new InitialContext();
                   DataSource dataSource = (DataSource)initialContext.lookup("jdbc/YOUR_DB_ALIAS");
                   connection= dataSource.getConnection();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    And you must change YOUR_DB_ALIAS with the real alias name. That is all if you have already created a datasource.
    About what to use: you can use whatever you want. This is just a simple example of how to get your db connection. After that you can do whatever you want with it.
    You can write your one db engine if you want:
                            PreparedStatement stmt = connection.prepareStatement("insert into simple_table simple_values(?)");
                   stmt.setString(1, "Hello world");
                   stmt.execute();
    Or you can use JPA, JDO, EJB, etc... It depends only on your decision. All of them will work.

  • Configure Joomla on Leopard Server

    I just recently found out about Joomla and I really like what I see and what I can do for my website. I know my way around Leopard Server very well, except the command line (FYI). I want to configure Joomla 1.5.8 on Leopard Server 10.5.5. I currently have AFP, DNS, MySQL, Open Directory, and Web configured up and running. My site and the Wiki server is functional and works fine.
    I already downloaded Joomla and placed it in Macintosh HD/Shared Items/Sites/joomla_1
    It would be great if someone could guide me to configure this with my server. I have read some articles and it says I need to configure this with MySQL and PHP, and I don't have the slightest clue on how to do this. I would also like my server to be able to host multiple Joomla sites if possible (multiple MySQL databases). Sorry for being such a newb at this, but I am learning. Any help would be more than appreciated.

    Just follow the joomla install guide that they provide, and follow the step by step web installer and point it at your mysql installation. Joomla 1.5 rund beautifully on Mac OS X Server. My joomla 1.5 site www dot 928 dot org dot uk is on an Xserve on 10.5.6

  • JBoss error when EJB try to access a MySql database

    Hi folk,
    I deployed my EAR in Jboss 3.2.8 that access a MySql db. On my local Windows machine everything works perfect.
    On the production environment (Linux Fedora) when the bean starts to access the database this hell of an error is triggered.
    Never seen something like that. Any idea? Shall I configure something in MySql db?
    11:26:58,208 ERROR [LogInterceptor] Unexpected Error:
    java.lang.NoSuchMethodError: org.jboss.util.timeout.Timeout.cancel()V
    at org.jboss.tm.TransactionImpl.cancelTimeout(TransactionImpl.java:1070)
    at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:420)
    at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:456)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:324)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128)
    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
    at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:478)
    at org.jboss.ejb.Container.invoke(Container.java:743)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:294)
    at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
    at $Proxy37.getForumsData(Unknown Source)
    at uk.co.backrack.ejb.session.beans.ForumHandlerBean.listForums(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:144)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
    at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
    at org.jboss.ejb.Container.invoke(Container.java:723)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
    at $Proxy48.listForums(Unknown Source)
    at uk.co.backrack.web.ListForumsServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
    at uk.co.backrack.web.EnterSiteServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)

    Found out! I was running a personalised server configuration (a myconfig folder in the server folder) that I built for jboss 3.2.4, on jboss3.2.8, the version I put on the Linux environment.
    So even this slight difference of versions created a problem.
    Thanks for the reply and I hope this can help somebody else.

Maybe you are looking for

  • How to rollback a MQ transaction in distributed transactions..

    Hi frnds, i am doing distributed txn from a java code in which i am writing the msg strign on MQ and doing some DB updates... the code works fine in case user transaction get committed successfully. also when exception is caused the DB updates gets r

  • Can't Drag and Drop in Home Sharing

    I just enabled home sharing between my desktop mac and my macbook pro. Can see all music (from the desktop) and playlists, but cannot drag and drop individual songs or playlists between the two. Any advice on this? Also, if I import music library wil

  • Urgent: How to append Item text

    HI Friends, I am using SAVE_TEXT Fm to Update the Item text in ME22n. Currently i need to append few text to the already existing text using SAVE_TEXT is it possible . If it is possible please give some text. Is there any FM which can both append and

  • On-Prem to Office 365 - Hybrid

    can I in some way publish selected content from the On-prem SP to the SP online instans with powesrshell or any other way? Where's there a "how-to" ?     

  • Upload FI document

    hi friends, i want to upload the FI transaction data into ECC, right now it is in excel sheet. i want to use LSMW, and browsing through this sdn , i found out that RFBIBL00 is the best way, via direct method, but my problem is when i chose direct inp