[solved]Trying to insert a blocking systemd unit into the boot process

What i'm trying to do is to start (and *wait* for it to complete) a unit before starting another.
In particular, i need to create and mount a partition on the fly before any filesystem gets mounted.
My unit file is:
# cat /etc/systemd/system/early-boot-koko.service
[Unit]
Description=Configurazione ottimale per il boot da rete
[Service]
Before=systemd-remount-fs.service
#Nice=19
#IOSchedulingClass=3
#IOSchedulingPriority=7
Type=oneshot # is forking instead of oneshot needed here?
ExecStart=/root/scripts/early-boot.sh
TimeoutSec=0
#StandardInput=tty
RemainAfterExit=yes
I created even created an override to systemd-remount-fs.service and added early-boot-koko.service to the "After" array:
]# cat /etc/systemd/system/systemd-remount-fs.service
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Remount Root and Kernel File Systems
Documentation=man:systemd-remount-fs.service(8)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-fsck-root.service early-boot-koko.service
Before=local-fs-pre.target local-fs.target shutdown.target
Wants=local-fs-pre.target
ConditionPathExists=/etc/fstab
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-remount-fs
But when i boot, i notice that early-boot-koko.service is still running while systemd-remount-fs has exited :
# systemctl |grep 'early\|remount'
early-boot-koko.service loaded active running Configurazione ottimale per il boot da rete
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
...but i need  early-boot-koko.service to complete before systemd-remount-fs is started.
What am i doing wrong?
Thanks.
Last edited by kokoko3k (2014-10-09 12:14:23)

...it was the comment on the same line:
Type=oneshot # is forking instead of oneshot needed here?
solved...

Similar Messages

  • HT5271 Where on my mac do I find library?  I am trying to fix a blocked plug in and the directions to do so say I need to go to the /library/internet plug ins (disabled) folder.  no where to be found??

    Where on my mac do I find library?  I am trying to fix a blocked plug in and the directions to do so say I need to go to the /library/internet plug ins (disabled) folder.  no where to be found??

    Thank you, found it!  However, my real issue is a blocked plug in.  Another person was having the same issue and they where told to do this:
    Additional Information
    If you need to re-enable an out-of-date version of Flash Player, you can do the following:
    Navigate to the /Library/Internet Plug-Ins (Disabled) folder.
    Drag "Flash Player.plugin" into /Library/Internet Plug-Ins.
    If the browser is running, quit and restart it.
    Which I do not have a Internet Plug-Ins (disabled) folder?  Can I just drag the Flash Player Plug In to the trash and start over?  Help!!

  • Problems inserting cd's/dvd's into the drive?

    Has any one else had problems inserting cd's/dvd's into the drive?
    Mine hasn't worked for awhile. Any suggestions before i order a replacement?

    Pls specify exactly what  your problem is and provide your unit identification. Model or Product Number would be fine.
    JT
    I work for HP but my posts and replies are my own.
    **Click the KUDOS star on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • I bought creative suite production 6 2 years ago. On 12/24 I guess an update came thru and screwed my program all up. Its trying to make we buy to go into the cloud. I'm happy with what I have, I don't went to go into the cloud. I truely feel like Im bein

    I bought creative suite production 6 2 years ago. On 12/24 I guess an update came thru and screwed my program all up. Its trying to make we buy to go into the cloud. I'm happy with what I have, I don't went to go into the cloud. I truely feel like Im being ripped off being forced to move into the cloud'

    uninstall, clean and reinstall per, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Hi guys well huge issue my Ipod 4th generation shuffle died and I tried to chrge it I plugged it into the USB port and the red light came on and after 5 seconds  turned off the whole Ipod is dead and I've tried in wall chargers as well that doesn't charge

    Hi guys well huge issue my Ipod 4th generation shuffle died and I tried to chrge it I plugged it into the USB port and the red light came on and after 5seconds turned off the whole Ipod is dead and I've tried in wall chargers as well that doesn't charge what should I do is there a solution or should I claim my warrenty and have it fixed??

    Also my Itunes and computer won'r reconize it

  • I'm trying to invoke EXCEL or POWERPOINT file into the browser IE 6.0.  The

    I'm running TOMCAT locally on my PC (running Windows NT).
    I'm trying to invoke EXCEL or POWERPOINT file into the browser IE 6.0.
    The output is coming out all scrambled (almost like ASCII code or something),
    where it seems like the applications are not firing up.
    However, an MSWord file shows up fine. So I go to the WEB.XML file in the TOMCAT\CONF
    folder and notice that a MIME type has been set up for MSWord and not the other two.
    I set one up for EXCEL and POWERPOINT but the XLS or PPT files still don't work.
    So, just for kicks, I comment out the MSWord MIME definition but the MSWord file still worked!!!
    I can't figure out what's going on here.
    I'm stopping and starting the TOMCAT service each time I make changes to the WEB.XML file,
    but it seems like none of the changes are taking affect.
    I install all the viewers for MS-Word, ppt, and excell.
    But in Netscape it works fine.

    To support various file formats in IE browser while using window.open like .doc, .docx, .ppt, .pptx, .xls, xlsx etc.,
    The following code can also be used to force any format to get launch outside IE
    For these first configure a filter in web.xml and then include the filter class in given path
    <filter>
    <filter-name>MimeFilter</filter-name>
    <filter-class>com.srk.MimeFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.xls</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.xlsx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.ppt</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.doc</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.docx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.pptx</url-pattern>
    </filter-mapping>
    and then include the filter class in the declared path
    import java.io.*;
    import java.util.logging.*;
    import javax.servlet.*;
    import javax.servlet.Filter;
    import javax.servlet.http.*;
    public class MimeFilter implements Filter {
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    HttpServletResponse httpResp = (HttpServletResponse) response;
    HttpServletRequest httpReq = (HttpServletRequest) request;
    String fileUrl = httpReq.getRequestURI();
    if(fileUrl.lastIndexOf(".xls")!=-1)
    fileUrl = fileUrl.substring(fileUrl.lastIndexOf("/")+1);
    httpResp.setContentType("application/vnd.ms-excel");
    httpResp.setHeader("Content-disposition", "attachment; filename="+fileUrl);
    if(fileUrl.lastIndexOf(".ppt")!=-1)
    fileUrl = fileUrl.substring(fileUrl.lastIndexOf("/")+1);
    httpResp.setContentType("application/powerpoint");
    httpResp.setHeader("Content-disposition", "attachment; filename="+fileUrl);
    if(fileUrl.lastIndexOf(".doc")!=-1)
    fileUrl = fileUrl.substring(fileUrl.lastIndexOf("/")+1);
    httpResp.setContentType("application/msword");
    httpResp.setHeader("Content-disposition", "attachment; filename="+fileUrl);
    chain.doFilter(request, response);
    public boolean isLoggable(LogRecord record) {
    return false;
    public void destroy() {
    public void init(FilterConfig arg0) throws ServletException {
    Please let me know your feedback.

  • How do I insert pages from one PDF into the current PDF in Acrobat X?

    I just upgraded from Acrobat 8 to Acrobat X.
    How do I insert pages from one PDF into the current PDF in Acrobat X pro?  I was able to do this from the Edit menu in Acrobat 8 pro.  Appreciate instructions.  Thanks.

    Hi chemadberk,
    In my Acrobat 8 Pro, Insert Pages is under the Document menu but anyway...
    In Acrobat X, click on the Tools pane(upper right side) then navigate to Pages- the Insert Pages commands are located there.
    Hope this helps,
    Dimitri
    [signature deleted by host]

  • Java Install,  Cannot insert a key value pair into the secure store fails,

    Dear All,
    I'm doing Java Intallaion in BI7 on CI and in the midle of installtions we encounter,
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    NWException thrown: nw.secureStore.cannotInsertIntoSecureStore:
    Cannot insert a key value pair into the secure store fails; see output of log file SecureStoreInsert.log:
    SAP Secure Store in the File System - Copyright (c) 2003 SAP AG
    A key/value pair with this key already exists in the store..
    ERROR      2008-04-23 11:36:21
               CJSlibModule::writeError_impl()
    CJS-30051  Cannot insert a key value pair into the secure store fails; see output of log file SecureStoreInsert.log:
    SAP Secure Store in the File System - Copyright (c) 2003 SAP AG
    A key/value pair with this key already exists in the store..
    TRACE      [iaxxejsbas.hpp:460]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    ERROR      2008-04-23 11:36:21 [iaxxgenimp.cpp:731]
               showDialog()
    FCO-00011  The step insertAdminDataInSecStore with step key |NW_Addin_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|8|0|NW_CI_Instance_Configure_Java|ind|ind|ind|ind|4|0|insertAdminDataInSecStore was executed with status ERROR .
    TRACE      [iaxxgenimp.cpp:719]
               showDialog()
    There's any want in here can help us Please,
    Thanks and Best Regards,
    Chrisna

    The clean way to Uninstall JAVA is through SAPINST. 
    Make user you drop only the JAVA Schema ID (SAPSR3DB)
    If you want to uninstall manually, follow as mentioned below :
    1. Stop the central services instance and all dialog instances of your SAP system:
    a) Log on to the corresponding instance host as user <sapsid>adm.
    b) Execute the following commands:
       To stop the central services instance:
                 stopsap r3 <SCSinstanceName>
       To stop a dialog instance:
                stopsap r3 <DialogInstanceName>
    2. Stop the J2EE Engine of the central instance:
    a) Log on to your SAP system.
    b) Call transaction SMICM.
    c) Choose Administration J2EE Instance (local) Send Hard Shutdown
    2. Drop the J2EE DB schema (the db schema for this one SAP SID) BE VERY CAREFUL, do not drop the DB schema for another existing system or
    the ABAP schema.
    a. Log on as user ora<dbsid>.
    b. Start sqlplus and connect to the database. Enter:
    sqlplus /nolog
    c. SQLPLUS>connect / as sysdba
    d. Enter the following command to delete the database objects of the database schema:
    SQLPLUS> drop user SAP<SCHEMA_ID>DB cascade;
    e. Enter the following command to get the file name of the corresponding data file in the file system:
    SQLPLUS> select file_name from dba_data_files where \
    tablespace_name = ’PSAP<SCHEMA_ID>DB’;
    f. Enter the following command to delete the tablespace of the database schema:
    SQLPLUS> drop tablespace PSAP<SCHEMA_ID>DB including contents;
    g. Exit sqlplus:
    SQLPLUS> exit
    3. Remove folder "data" at: /sapmnt/QO1/global/security/data
    4. Remove folder "SDM" at: /usr/sap/<sid>/<Central instance>/SDM
    5. Remove folder "j2ee" at:  /usr/sap/<sid>/<Central instance>/j2ee
    6. Revert CI instance profile to their original state (backup copies should exist) # they should be in the state before the start of the JavaAdd In
    7. If lines beginning with the following parameters appear, delete these lines from the default profile, /usr/sap/<SAPSID>/SYS/profile/DEFAULT.PFL:
    j2ee/dbname =
    j2ee/dbtype =
    j2ee/dbhost =
    j2ee/dbadminurl =
    j2ee/scs/host =
    j2ee/scs/system =
    j2ee/ms/port =
    8. If lines beginning with the following parameters appear, delete these lines from the central instance pro?le and from all dialog instance pro?les,
    /usr/sap/<SAPSID>/SYS/profile/<SAPSID>_<INSTANCE_NAME>_<host_name>:
    exe/j2ee =
    exe/jlaunch =
    rdisp/j2ee_start_control =
    rdisp/j2ee_start =
    rdisp/j2ee_timeout =
    rdisp/j2ee_libpath =
    rdisp/frfc_fallback =
    jstartup/trimming_properties =
    jstartup/instance_properties =
    jstartup/protocol =
    jstartup/vm/home =
    jstartup/max_caches =
    jstartup/release =
    j2ee/dbdriver =
    9. Delete the central services instance
    10. Restart ABAP and Install JAVA Add-in
    Edited by: Shaji Jacob on Apr 27, 2008 11:46 AM

  • Cannot insert a key value pair into the secure store fails; see output of l

    Hi,
    how can I fix this problem ?
    SAPNW2004sJavaSP9_Trial\SAP_NetWeaver_2004s_SR_1
    jdkversion 142_09 .
    ERROR 2008-07-10 13:13:31
    CJS-30051  Cannot insert a key value pair into the secure store fails; see output of log file SecureStoreInsert.log: SAP Secure Store in the File System - Copyright (c) 2003 SAP AG
    Regds
    sas

    Hi Arzu,
    thank you for your replying.
    The current OS I am using is Microsoft Windows XP
    Service Pack 2.
    The very last installation was made with JDK version 142_12.
    However it was pointless. I can try to reinstall with
    the mentioned newest JCE policy files .
    Can tell me from where I can obtain these above
    JCE policy files ?
    Regards
    Erdem Sas

  • Insert multiple rows of records into the database

    The codes below allow me to insert a row of record into the database. How would I changed these to insert multiple rows at once? Please help!
    String sql = "INSERT INTO EMPLOYEES" +
    "(First_Name, Last_Name, Title, Phone) " +
    " VALUES " +
    PreparedStatement statement = conn.prepareStatement(sql);
    statement.setObject (1, First_Name);
    statement.setObject (2, Last_Name);
    statement.setObject (3, Title);
    statement.setObject (4, Phone);
    boolean returnValue = statement.execute();

    Hi mystiqueX,
    As wmolosho has suggested in his answer to this very same question that you also posted to the JavaServer Pages forum, you can create a batch of inserts and perform them using the "executeBatch()" method. I will use Craig's sample code to demonstrate:
    (Note that this code is untested!)
    conn.setAutoCommit(false);
    PreparedStatement statement = conn.prepareStatement(sql);
    // assume you have an array of objects here
    for (int i = 0; i < data.length; i++) {
      statement.setString(1, data<i>.getFirstName());
      statement.setString(2, data<i>.getLastName());
      statement.setString(3, data<i>.getTitle());
      statement.setString(4, data<i>.getPhone());
      statement.addBatch();
    statement.executeBatch();
    conn.commit();If you are not familiar with it, allow me to suggest looking at the Making Batch Updates lesson on the Java Tutorial.
    Hope it helps.
    Good Luck,
    Avi.

  • I want to insert more than 4k data into the MySql

    hi there..
    i willing to support mysql.
    but there is one thing unsolved..
    i wanna insert more than 4k data into the mysql ..
    but i can't..
    does anyone know about this problem..
    i really appreciate for your advice in advance...
    thanz for reading...

    <PRE>
    hi there..
    first of all.. thanz 4 ur replies..
    i m using mysql 3.x
    and using mysql-connector-java-3.1.0-alpha
    source code is one of the sample apps..
    if u download jconnector3.1.0-alpha. u can see TestBlog.java file on 'testsuite/simple/'
    i changed db url, user, passwd atc..
    then, i execute TestBlob..
    can c following error message
    G:\MySql\mysql-connector-java-3.1.0-alpha\mysql-connector-java-3.1.0-alpha>java
    testsuite.simple.BlobTest
    Loading JDBC driver 'com.mysql.jdbc.Driver'
    Done.
    Establishing connection to database 'jdbc:mysql://xxx.xxx.xxx.xxx/devel'
    is else
    userid:'userid'
    passwd:'password'
    Done.
    error...
    java.sql.SQLException: Communication link failure: com.mysql.jdbc.PacketTooBigEx
    ception
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1079)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1142)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:1876)
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
    va:1590)
    at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1304)
    at testsuite.simple.BlobTest.testByteStreamInsert(BlobTest.java:114)
    at testsuite.simple.BlobTest.setUp(BlobTest.java:82)
    at junit.framework.TestCase.runBare(TestCase.java:125)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestCase.run(TestCase.java:111)
    at testsuite.simple.BlobTest.main(BlobTest.java:68)
    Loading JDBC driver 'com.mysql.jdbc.Driver'
    Done.
    Establishing connection to database 'jdbc:mysql://xxx.xxx.xxx.xxx/devel'
    is else
    userid:'userid'
    passwd:'password'
    Done.
    error...
    java.sql.SQLException: Communication link failure: com.mysql.jdbc.PacketTooBigEx
    ception
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1079)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1142)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:1876)
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
    va:1590)
    at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1304)
    at testsuite.simple.BlobTest.testByteStreamInsert(BlobTest.java:114)
    at testsuite.simple.BlobTest.setUp(BlobTest.java:82)
    at junit.framework.TestCase.runBare(TestCase.java:125)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestCase.run(TestCase.java:111)
    at testsuite.simple.BlobTest.main(BlobTest.java:69)
    at 68, 69 line of BlogTest.java
    public static void main(String[] args) {
    new BlobTest("testBytesInsert").run(); <--- 68 line
    new BlobTest("testByteStreamInsert").run(); <--- 69 line
    i need ur help..
    appreciate for your advices in advance..
    thanz
    </PRE>

  • Suddenly, my phone isn't working, no internet, no phone, no texting, no music.  Also, I tried to sync it to my mac and the syncing process won't start.  I can't turn it off.  Any suggestions?

    Suddenly, my phone isn't working, no internet, no phone, no texting, no music.  Also, I tried to sync it to my mac and the syncing process won't start.  I can't turn it off.  Any suggestions?

    Frozen or unresponsive iPhone?

  • One of my ipod apps has frozen on waiting, I've tried everything. (Restarting it, plugging it into the computer, in setting etc...)  and also I tried deleting it, but no "X" comes up. but nothing is working. Really annoyed. :( please help.  ,

    one of my ipod apps has frozen on waiting, I've tried everything. (Restarting it, plugging it into the computer, in setting etc...)  and also I tried deleting it, but no "X" comes up. but nothing is working. Really annoyed. :( please help.  ,

    See:
    Downloading apps stuck on waiting...: Apple Support Communities
    \Waiting applications: Apple Support Communities

  • [Solved]Hibernating without a swap, now systemd can't complete booting

    Tried hibernating without a swap (by mistake, I forgot that I don't use a swap nowadays!), now systemd can't complete booting.
    But, if I remove the init=whatever/systemd line from the bootloader, the old init system does its work nicely.. (though that's a poor permanent solution. )
    I have saved the 1000+ line journalctl log, but have no idea where to start looking for the problem.
    https://www.pastee.org/j3htz
    It seems to be something to do with filesystem errors, as the following line is the last shown by systemd before stopping.
    Nov 11 20:19:45 manasijd systemd-fsck[413]: Home: clean, 85694/1221600 files, 4430911/4883456 blocks
    But running fsck(after unmounting the partitions) from the 'emergency mode' systemd drops me into, the results come up clean.
    Any idea what can be wrong, or what exactly to look for in the log ?
    Last edited by manasij7479 (2012-11-12 11:54:55)

    Seems like I was correct about the filesystem problem @ /home .
    Backed up the home folder and nuked the ext4 partition and created a new btrfs in its place.
    Everything seems to be fine now, after copying back the folder (few issues with kde not cooperating, but nothing major) .
    Btw, can anyone try to replicate this on a 'torture' rig or a virtual machine, seems to be a pretty important bug ?

  • Errors when trying to INSERT Dreamweaver CS3 ASP scripts into MySql

    Greetings everyone,
    I am hoping that someone can shed some light on an issue I have not been able to solve in the last few days. I have a website that I had built using Ultradev, then MX then CS3, using the default ASP scripts in dreamweaver and an odbc connection to an Access Database. Everything had been working fine for the last couple of years until recently where more people were visiting my site which resulted in the slowness because i was using access. I decided to move to a MySql database and that is when I ran into issues. I was able to solve most everything accept for one issue I am having. I was hoping it would be an easy transition by changing the ODBC connections but it has not been that easy. Any page I have with an INSERT command using the default Dreamweaver CS3 ASP script results in an error. Now I can query and delete and search with no problem...it is just the INSERT that is giving me issues. Here is just a general insertion script that CS3 does by default....
    <%
    If (CStr(Request("MM_insert")) = "form1")Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_adsdata_STRING
    MM_editCmd.CommandText = "INSERT INTO commenthot (yeshot, userhot) VALUES (?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 2, 3, Request.Form("yeshotf")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 3, 30, Request.Form("useridf")) ' adVarWChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    End If
    End If
    %>
    When I click to submit...the error i run into is...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' mel)' at line 1
    /fr/members/sexyoupasvote.asp, line 28
    ....Line 28 is the MM_editCmd.Execute. I notice if I put a single quotes around the ? next the the VALUE like this ('?', '?')...it does go through and the ? shows up in both fields as the data.
    ....If i put a single back quote around the column names like this (`yeshot`, `userhot`) VALUES (?, ?) I get this error and nothing gets inserted into the MySql.
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' mel)' at line 1
    /fr/members/sexyoupasvote.asp, line 28
    ...by seeing 'mel)' show up, I know it is at least passing the data to that field.
    ....when I do (`yeshot`, `userhot`) VALUES ('?', '?')...
    it goes through and inserts ? ...instead of the real data I want to use...in this case ...the number 1 and Mel.
    ...if I do (yeshot, userhot) VALUES (?, '?')...
    I get this error...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
    Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    /fr/members/sexyoupasvote.asp, line 28
    ....any idea what to modify to make it insert the corect data? Has anyone experienced this? If I can get this fixed with just this page I can probablly fix the other pages that have teh same issue.  Is there a special setting on the MySql that I should know about to allow data to be inserted? Any help would GREATLY appreciated!
    Thank you!

    Thanks for your reply!
    When it was in Access...the datatype was Text. I used a 3rd party software to convert Assess directly to my hosting MySql server. When I logged in to see the table in MySql, it is set to Varchar(3) for yeshot and Varchar(30) for userhot. There is also an extra field I used for the KEY called commentID which is set to int(11) and it is autonumbered. Under the Collation i have utf8_general_ci set on the yeshot and userhot field. Null is No on both and the Default is set to None and all 3 fields.
    I have a form I am collecting that data from which is:
    <% If (langname.Fields.Item("langname").Value)="FR" Then
             response.write("OUI!")
             else
             response.write("YES!")
             End if %>
    <input name="yeshotf" type="radio" id="yeshotf" value="1" checked>                           
                                <span class="style10">
                                <input name="submit" type="submit" id="submit" value="VOTE!">
                                </span> -
    <input name="yeshotf" type="radio" id="yeshotf" value="2">
                                <% If (langname.Fields.Item("langname").Value)="FR" Then
             response.write("NON!")
             else
             response.write("NO!")
             End if %>
                                <input name="useridf" type="hidden" id="useridf" value="<%=(hotornot.Fields.Item("membername").Value)%>">
                                <input type="hidden" name="MM_insert" value="form1">
                              <input type="hidden" name="hdwfail" id="hdwfail" value="sexyoupasvote.asp?langname=<%=(langname.Fields.Item("langname").Value)%>&membernam e=<%=(hotornot.Fields.Item("membername").Value)%>&hdwmsg=invalid">
    </form>
    ....the form has 2 radio button and 1 hidden field where I collect the username. The radio value should either be a 1 or a 2 depending on the selection by the user. I also have a captha on the form but that does not seem the cause any problem since I am not collecting any data from it. Does this help? I left the yeshot field as Text but I can change that to Numeric data... again thanks for your assistance in helping me try to figure this out.
    ...The message I am getting now is:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]Unknown column 'Babe1' in 'field list'
    /fr/members/sexyoupasvote.asp, line 28
    ....with this setting:
    <%
    If (CStr(Request("MM_insert")) = "form1") Then
      If (Not MM_abortEdit) Then
        ' execute the insert
        Dim MM_editCmd
        Set MM_editCmd = Server.CreateObject ("ADODB.Command")
        MM_editCmd.ActiveConnection = MM_adsdata_STRING
        MM_editCmd.CommandText = "INSERT INTO dsnrenms.commenthot (yeshot, userhot) VALUES (?, ?)"
        MM_editCmd.Prepared = true
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 3, Request.Form("yeshotf")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 30, Request.Form("useridf")) ' adVarWChar
        MM_editCmd.Execute
        MM_editCmd.ActiveConnection.Close
      End If
    End If
    %>

Maybe you are looking for