Using afp problem

Hi, I have a problem connecting to my volume from the server. This just happened today after upgrading from Panther to Tiger. I have a applescript with this lines.
mount volume "afp://username:[email protected]/volume1"
mount volume "afp://username:[email protected]/volume2"
mount volume "afp://username:[email protected]/volume3"
mount volume "afp://username:[email protected]/volume4"
And this script I have it under the system preferences>accounts>Login items. When I start my computer it goes just to first line and gives me an error. "Disk some object wasn't found." So I close this error box then I manually double click on the script and NOW all my volumes get loaded. Does anybody out there now how I can fix this issue?
Thanks in advanced.
  Mac OS X (10.4.4)  

Hello jcc31
I don't know how to fix your applescript however you don't need to use a script to mount network volumes at login.
In Tiger you just mount your volumes then add them to your login items, drag and drop works. Then if you add your password to the keychain the first time these volumes are mounted the next time you login to your mac all the volumes are automatically mounted.

Similar Messages

  • AFP Problem take 2

    Ok, in a small network we have a xserver hosting all our network services including some AFP shares.
    The problem is that, when i log into my superuser and/or any normal network users to administrate the server - it also mounts my primary network share. Should i happen to click that share, the server will hang infdefinitly.
    After it hangs:
    -All the network users crash, naturally.
    -Looks like finder hangs too
    -Server responds to PING
    -It`s possible to SSH my way into the server when it hangs.
    But, i can`t use ARD or physical access because of the spinning beachball of doom caused by the AFP problem.
    How do i solve this?

    I am having a similar problem. There seems to be a correlation with the amount of users connected and/or network traffic, and when a user/users is/are attempting a search. My guess is one or more users tries to search, it slows the connection, a few users try to access the server... and then it locks up. I haven't found a solution to the problem yet, but it may be due to my network switches. They are old and cranky and may not be able to handle all the traffic.
    Intel Mac   Mac OS X (10.4.8)  

  • Mount AirPort Disk using AFP

    I am having some trouble mounting my AirPort Disk using AFP. I can navigate to "Network" using the Finder and select my AirPort and then mount the desired volume. However, if I attempt to use "Connect to Server" in the Finder's "Go" menu, I run into a problem. By my (possibly flawed) reasoning, I should be able to enter in afp://airportName/volumeName in the server address field and it should connect. If I enter in smb://airportName/volumeName, it works. But trying the same thing with AFP doesn't work. However, if I try afp://10.0.1.1/volumeName it does work. I find this a little perplexing. Any suggestions? Have I just got the AFP URL syntax wrong?
    Thanks in advance for any help!

    I am building a script that uses rsync to syncronize some files between my laptop and my external drive. If I mount the drive manually through Network, I can syncronize files properly. My understanding is that the mechanism behind the mounting process in this case is AFP. If I mount the drive manually through "Connect to Server" in the "Go" menu of the Finder using "smb://airportName/volumeName", then the drive mounts but when I syncronize, the modification dates for the files all get set to today's date and time. This doesn't happen when I mount through Network in the Finder because AFP "understands" HFS+ while smb "doesn't understand" HFS+.
    It turns out that I can mount the drive using AFP by using "afp://airportName.local/volumeName" according to another user. I will try that tonight. I still need to understand why the Applescript mentioned in my post above doesn't mount the drive to the Finder, yet renders it accessible from Terminal.

  • After updating to 10.7.4 can no longer connect to a NAS using afp. Any ideas?

    Just upgraded to 10.7.4 from 10.6.8.
    We use a NAS to store and back-up work but am now unable to connect using afp.
    I can connect using SMB but this means I loose all the resource forks on my fonts etc.
    Any ideas?

    Hi Linc
    Thanks for that. Had absolutely no idea what most of that meant but it seems to have worked.
    Many thanks again.
    2Night

  • Mount TC using AFP on Linux

    Hi there,
    Can anyone tell me if it's possible to [auto]mount my newly purchased TC on Linux (any RedHat based system) using AFP? I can mount the using samba like this:
    +mount.cifs //10.0.11.10/Data /your-mount-point -o password=YourPassWord+
    but I rather like it using AFP. I'm running NetaTalk on the Linux box and afpd is already configured.Any comment/direction from any one? Thanks in advance though. Cheers!!!

    Isn't any one using Linux at all? Cheers!!!

  • Access time machine backup using AFP

    i have lion installed on my macpro and have been using an extrernal NAS by Thecus for my Time Machine backups (which has worked without issues).  My OS drive got corrupted due to a poweroutage, eventhough i had a battery backup i was not around to properly shut down my mac, so now i can no longer boot to os x, its stuck on the apple logo screen.  I decided to restore from my Time Machine backup but ran into some trouble since the backup is on a network storage drive folder.  I found this article here: http://gigaom.com/apple/how-to-use-time-machine-over-a-network/ , where i found instructions on how to mount this external drive folder using terminal.  I followed the instructions and i can view in terminal that i successfully mounted the drive/folder, however on the "select a backup source" screen for Time Machine in the mac recovery utility the mounted drive does not appear for me to select.  Does the recovery utility not allow to restore from a network backup source using AFP?  please help!  thank you in advance!

    I have done as you suggested and clicked on the show original but I get this message " The volume cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again." I have the external disk already connected as that is what I am trying to recover the file from i.e. where I find the aliases. Any further suggestions. Thanks

  • Upgraded to Yosemite - can't connect to windows Server using afp

    I have upgraded to Yosemite from 10.6.8 Snow Leopard and now cannot connect to a windows merit used to connect to before. I previously used the afp protocol.
    I get the message "The version server you are trying to connect to is not supported".
    Is afp still supported with yosemite?
    Do i need them to upgrade the server software?
    It connects using smb, but does not display the same folders.
    Thanks in advance, am a bit lost here

    I am providing mac support for a group of mac users who make up the art department in a larger multinational company. As is often usual in these situations the larger PC IT department are incredibly unhelpful.
    But I have just come online and had no part in the set up. The servers are overseas and managed by them. I have no idea why the used afp as the protocol. I just know it has worked this way for years.
    The macs need to upgrade to go on to creative cloud.
    I think he way forward is for them to change the access on the server to allow access using smb.
    It is just difficult to deal with them because they aren't here tend to say "we dont support macs" when I contact them.

  • [svn] 1313: Fix for the use namespace problems we've been having with ASC ( I hope).

    Revision: 1313
    Author: [email protected]
    Date: 2008-04-20 09:41:41 -0700 (Sun, 20 Apr 2008)
    Log Message:
    Fix for the use namespace problems we've been having with ASC (I hope). The problem was that the use directive was being defined after we had called finish package. The UseDirectiveNode has a pkgdef ptr, and does different things depending if that ptr is null or not. It should not be null when the UseDirective is inside the package - but since we were generating the UseDirectiveNode after we had called finishPackage the UseDirectiveNode didn't have it's pkgdef ptr set, and so things went awry as the package didn't get set up with all the correct open namespaces. I haven't tested this in authoring/flex but I am pretty sure that this will fix all the problems we're seeing.
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Clients cannot connect using afp running lion 10.7.1, worked ok before upgrade from 10.7 to 10.7.1

    I am running a macminiserver on ahome newtwork.  Original running snow leopard and then upgraded to 10.7 lion on all machine and everything was working fine.  Clients coul connected to shared drives on the server using afp.  However, after upgrading to 10.7.1 on the server and client machines, they can no lnger connect to the drives using afp, however you can connect using smb.
    I ahve tried stopping and starting the afp server, rebuilding permissions on the server - still cannot connect using afp.
    Any ideas?

    Be sure the correct Lion afp port is open on your router, even if you are using an Airport (port 548 tcp). Just do a search on "Mac OS X Lion ports".
    Also, if this is outside of the network, use the full server name in the Finder's Connect to Server, afp://server.com; when it prompts for a username, enter your first name and last name (not your short name) and then you also need to enter your password. If you don't have a fqdn, then you can use the static ip for "server.com"
    It should work, working for me inside and outside of the network. Admittedly, I don't think you need the port on the router for internal use, but you can test both ways.
    When working outside of the network a vpn is not required.

  • Last update to ios6 - worst ever, facetime does not work as it used to, problems with skype

    last update to ios6 - worst ever, facetime does not work as it used to, problems with skype, losing connection or no9t connecting facetime to face time. Do something with it.

    I'm not sure yet, but It may be as simple as "settings", "FaceTime" "Off"

  • Wifi 5ghz and NAS using AFP not working in lion but no problem in snow leopard.

    After I upgrade to lion the first thing I discover is my wifi fail to connect to the N 5ghz from my time capsule. It use to be no issue when I'm on snow leopard. Even my iPad connect 5ghz with no problem.
    The next problem I found is, I can't connect to my NAS even I using AFN. Same no issue in snow leopard.
    Wonder is it due to upgrade rather then fresh installation? Will do a fresh installation in my another Mac this weekend and see if facing the same problem or not.

    I know this is an old thread but the problem is 802.11d which disables certain channels based on the first beacon the Wi-Fi sees when you wake up your Mac.
    You need to set the 5GHz channel on your Time Capsule to a channel that is supported in all domains like 36 or 40. More info here: http://jeff-with-a-g.blogspot.com.au/2012/04/5ghz-wifi-on-your-mac-got-you-down. html

  • Deleting from AFP problems

    Hi -
    We import our photos leaving them in the current location, which happens to be on AFP volumes. Everything works well except deleting (not removing) images. It errors out & says the file can't be moved to the trash. I tried it accross different servers, including a Windows server running AFP, and always get the same result.
    This is on a Mac.
    This does not happen on SMB or NFS volumes.
    Any help/Suggestions appreciated.

    Okay..
    The tables are set up the same.. I had some original relationships what I thought may have been the problem. I removed the relationships to no avail.. Unfortunately, I am using MS-Access and don't know much about it, but I don't know what else to check for. I removed the relationships and the table should not have any problems that my java code couldn't handle.. Any ideas on what i should do next?
    Takizzle

  • Went 10.3.9 to 10.4.8 & now MacOS won't connect to Servers using afp! HELP!

    I did an upgrade installation of Mac OS 10.4.3 ontop of Mac OS 10.3.9 on a G4 AlBook. I then did the downloadable combo updater to take it 10.4.8.
    However now when I try to connect to any servers using Go - > Connect to Server I get no response.
    When I try to navigate to the Servers using the Finder and click connect I am told that the alias is broken.
    I thought his might have had to do with an installation of Netware for Mac OSX so I used the Netware install file to step through and remove all Netware files & I stil can't connect to Servers.
    Any help with this problem would be greatly appreciated.
    I have yet to run any of the software updates on top of 10.4.8 perhaps one of these improves 10.4.8 afp compatibility?
    Thanks in advance,
    Neil.

    James,
    thanks very much for this. I'd hoped not to have to go to 10.4.9 but it sounds as though your solution may well work with 10.4.8 as well? I.e. it sounds as though a component of the old system left behind by the incremental upgrade has broken the servers.
    I should have also mentioned that it is Netware boxes that I am trying to access. so it appears as though all manner of server is broken in this situation.
    This is so inconvenient (esp with regard to software authorised to hardrives, how does that behave with an archival install?).
    But once again many thanks for your help,
    Neil.

  • Viewing Excel Files using Tomcat - Problem with caching

    Hi all,
    A small part of an application I'm writing has links to Excel files for users to view/download. I'm currently using Tomcat v5 as the web/app server and have some very simple code (an example is shown below) which calls the excel file.
    <%@ page contentType = "application/vnd.ms-excel" %>
    <%
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
    response.sendRedirect("file1.xls");
    %>
    This all works except but I'm having one big problem.
    The xls file (file1.xls) is updated via a share on the server so each month, the xls file is overwritten with the same name but with different contents. I'm finding that when an update is made to the xls file and the user then attempts to view the new file in the browser they recieve only the old xls file. It's caching the xls file and I don't want it to. How can I fix this so that it automatically gives the user the new updated file.
    The only way I've managed to get Tomcat to do this is to delete the work directory and delete the file from my IE temp folder and then restart Tomcat - this is a bit much!
    Any help would be greatly appreciated.
    Thanks.

    I'd a problem with caching a few years back, for a servlet request which returned an SVG file.
    As a workaround, I ended up putting appending "#" and a timestamp / random number after it. The browser assuming each request was new, and didn't use the cache.
    Eg.
    http://myserver/returnSVG.do#1234567
    where 1234567 is a timestamp / random.
    Not sure whether you can do this on a file based URL... but maybe worth a shot...
    regards,
    Owen

  • Mildet connect to oracle DB using servlet problem ,help please

    hi guys i have a problem am tring to connect my midlet to databse through midlet but i don`t know what is the problem so far the midlet already connect to my servlet url but the servlet cant read the parameters to open the connection for database
    my servlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.text.*;
    * @author freddy
    public class getconnection extends HttpServlet {
        Statement statement;
    ResultSet rs=null;
    String bstr=null;
    String bstr1=null;
    String bstr2=null;
    public void init()
        * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try {
                /* TODO output your page here
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Servlet getConnection</title>"); 
                out.println("</head>");
                out.println("<body>");
                out.println("<h1>Servlet getConnection at " + request.getContextPath () + "</h1>");
                out.println("</body>");
                out.println("</html>");
            } finally {
                out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        * Handles the HTTP <code>GET</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
      doPost(request,response);
        * Handles the HTTP <code>POST</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
            DataInputStream in = new DataInputStream(
                    (InputStream)request.getInputStream());
            String sid = in.readUTF();
            String user = in.readUTF();
            String pwd = in.readUTF();
          //  "jdbc:oracle:thin:@localhost:1521"+": "+sid
            String message = message = "Name:"+bstr+" telephone:"+bstr1+" burthday:"+bstr2;
             try {
                connect(sid,user, pwd);
                message += "100 ok connected";
            } catch (Throwable t) {
                message += "200 " + t.toString();
            response.setContentType("text/plain");
            response.setContentLength(message.length());
            PrintWriter out = response.getWriter();
            out.println(message);
            in.close();
            out.close();
            out.flush();
        private void connect(String sid, String user,String pwd)
        throws Exception {
            // Establish a JDBC connection to the MYSQL database server.
            //Class.forName("org.gjt.mm.mysql.Driver");
            Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
            Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:"+sid,user,pwd);
            System.out.print("connected");
            try{
               statement =conn.createStatement();
                rs=statement.executeQuery(" Select*from WOH.P_DEMGRAPHICS where P_ID='P1000 '");
            catch(SQLException e)
            System.err.print(e);
           try{
    while (rs.next()) {
    bstr=rs.getString(2);
    bstr1=rs.getString(3);
    bstr2=rs.getString(4);
    statement.close();
       catch (SQLException e) {
    //bstr += e.toString();
    System.err.println(e);
    System.exit(1);
            // Establish a JDBC connection to the Oracle database server.
            //DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:oracle:thin:@localhost:1521:"+db,user,pwd);
            // Establish a JDBC connection to the SQL database server.
            //Class.forName("net.sourceforge.jtds.jdbc.Driver");
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:jtds:sqlserver://localhost:1433/"+db,user,pwd);
        * Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }Midlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    * @author freddy
    public class testOrcl extends MIDlet  implements CommandListener {
       protected String url;
        private String username;
        private Display display;
        private Command exit = new Command("EXIT", Command.EXIT, 1);;
        private Command connect = new Command("Connect", Command.SCREEN, 1);
        private TextField tb;
        private Form menu;
        private TextField tb1;
        private TextField tb2;
        DB db;
        public testOrcl() throws Exception
            display=Display.getDisplay(this);
            url="http://localhost:8084/getConnection/getconnection";
        public void startApp() {
            displayMenu();
        public void displayMenu()
        menu= new Form("connect");
         tb = new TextField("Please input database: ","",30,
                    TextField.ANY );
            tb1 = new TextField("Please input username: ","",30,
                    TextField.ANY);
            tb2 = new TextField("Please input password: ","",30,
                    TextField.PASSWORD);
            menu.append(tb);
            menu.append(tb1);
            menu.append(tb2);
            menu.addCommand(exit);
            menu.addCommand(connect);
            menu.setCommandListener(this);
            display.setCurrent(menu);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) { }
        public void commandAction(Command command, Displayable screen) {
            if (command == exit) {
                destroyApp(false);
                notifyDestroyed();
            } else if (command == connect) {
                db  = new DB(this);
                db.start();
                db.connectDb(tb.getString(),tb1.getString(),tb2.getString());
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.lang.*;
    * @author freddy
    public class DB implements Runnable  {
        testOrcl midlet;
         private Display display;
            String sid;
            String user;
            String pwd;
            public DB( testOrcl midlet)
            this.midlet=midlet;
            display=Display.getDisplay(midlet);
        public void start()
        Thread t = new Thread(this);
                t.start();
        public void run()
         StringBuffer sb = new StringBuffer();
                try {
                    HttpConnection c = (HttpConnection) Connector.open(midlet.url);
                   c.setRequestProperty(
                       "User-Agent","Profile/MIDP-2.1, Configuration/CLDC-1.1");
                    c.setRequestProperty("Content-Language","en-US");
                    c.setRequestMethod(HttpConnection.POST);
                    DataOutputStream os =
                            (DataOutputStream)c.openDataOutputStream();
                    os.writeUTF(sid.trim());
                    os.writeUTF(user.trim());
                    os.writeUTF(pwd.trim());
                    os.flush();
                    os.close();
                    // Get the response from the servlet page.
                    DataInputStream is =(DataInputStream)c.openDataInputStream();
                    //is = c.openInputStream();
                    int ch;
                    sb = new StringBuffer();
                    while ((ch = is.read()) != -1) {
                        sb.append((char)ch);
               showAlert(sb.toString());
                    is.close();
                    c.close();
                } catch (Exception e) {
                    showAlert(e.getMessage());
         /* This method takes input from user like db,user and pwd and pass
                to servlet */
            public void connectDb(String sid,String user,String pwd) {
                this.sid = sid;
                this.user = user;
                this.pwd = pwd;
            /* Display Error On screen*/
            private void showAlert(String err) {
                Alert a = new Alert("");
                a.setString(err);
                a.setTimeout(Alert.FOREVER);
                display.setCurrent(a);
       

    Comment out process request or rewrite & move it to a position after you read the parameters and connect to the db. Decide where you want to write to the output stream. Also, you have some superfluous casting.
    I take it that you are using netbeans? If you debug and step through the code you will get an idea of the flow. The steps should be, midlet connects with POST, doPost is called, server reads parameters, server opens connection, executes query, releases/closes connection, and writes a response to the midlet.
    Some notes about the connect method; The scope of rs may cause problems. It is unlike you will have a valid result set if you have a problem with create statement or execute. Take a look at connection pooling and be mindful how the connections are opened, used, and closed; put all the important cleanup operations in a finally. Remove system.exit from your servlet. Actually I would suggest limiting the scope of all your vars;
    If you store the username, password, and sid on the midlet, you may have trouble updating the installation base if you need to change the values for any reason. Also, you have clients which contain your database u/p, susceptible to snooping and decompilation. Use the servlet to abstract the db from the client. And use a datasource (with connection pooling) for obtaining connections to db.

Maybe you are looking for