ADS(linux) Error 5004 (solved)

ADS(linux) Error 5004 (solved)

Postby MGA » Tue Jan 17, 2017 11:39 am

We recently acquired the license for the Advanced Database Server and I am having problems regarding the connection on the linux server
Using the function:

AdsConnect60( //192.168.1.27:6262/home/sg/bases/sguario/ser.ads.chico/sgsdatabase.add, 7, "ADSSYS" ,"" , 0, @hConnection )


Error 5004: Either ACE could not find the specified file, or you do not have sufficient rights to access the file. The data dictionary file (//192.168.1.27:6262/home\sg\bases\sguario\ser.ads.chico\sgsdatabase.add) is not found on the server.
Last edited by MGA on Mon Jan 23, 2017 12:46 pm, edited 1 time in total.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: ADS(linux) Error 5004

Postby vilian » Tue Jan 17, 2017 12:16 pm

Sgs,

ADS for linux is case sensitive. Pay attention for the name of the files. In Linux, customer is different of CUSTOMER.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: ADS(linux) Error 5004

Postby MGA » Tue Jan 17, 2017 1:46 pm

Vilian,

Thanks for replying, I'm theoretically aware of what you're mentioning, but even then the problem occurs.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: ADS(linux) Error 5004

Postby vilian » Tue Jan 17, 2017 2:18 pm

Sgs,

I have solved this problem here changing the name of all files to lowercase.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: ADS(linux) Error 5004

Postby MGA » Tue Jan 17, 2017 5:53 pm

thanks Vilian
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: ADS(linux) Error 5004

Postby reinaldocrespo » Fri Jan 20, 2017 9:49 pm

I also like to use server aliases to avoid all those long path names.

On adsserver.ini have this line:

[ServerAliases]
Mp10=/long path name

Now change your long path name to Mp10. That's all. BTW, you don't need to share the directory. I like to keep it owned by the "advantage" user/group and set to 660 which means that only the owner can read/write. In this manner no other user but the server service has access to the data. Workstations can only access data when rightfully connected to the data dictionary.

Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: ADS(linux) Error 5004 (Solved)

Postby MGA » Mon Jan 23, 2017 12:45 pm

Thank you all for your help. We have identified that the problem has to do with the LINUX network configuration: resolv.conf, we had to reconfigure.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 107 guests