FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADS(linux) Error 5004 (solved)
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
ADS(linux) Error 5004 (solved)
Posted: 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.

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: ADS(linux) Error 5004
Posted: 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
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: ADS(linux) Error 5004
Posted: Tue Jan 17, 2017 01: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
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: ADS(linux) Error 5004
Posted: Tue Jan 17, 2017 02: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
Guest
Posts: 0
Joined: unknown
Re: ADS(linux) Error 5004
Posted: Tue Jan 17, 2017 05:53 PM

thanks Vilian

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: ADS(linux) Error 5004
Posted: Fri Jan 20, 2017 09: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.

Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: ADS(linux) Error 5004 (Solved)
Posted: 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

Continue the discussion