Brad Clements | 30 Jan 22:02 2015

2.1 to 2.2 upgrade, xupdate isn't updating anymore but no error returned

After upgrading from 2.1 to 2.2 I see at least one xupdate is not working, but an error is not returned.

Below is a tcpflow of what's sent and received.

the shiprequest.xml file looks like this after executing the xupdate

<?xml version="1.0" encoding="UTF-8"?>
<shiprequest key="QTRI0879103" upload_date="2015-01-28T13:50:19.035132" warehouse="default">


This worked under 2.1, doesn't appear to be working now. Was there a change in xupdate processing?

the user request is done as user 'zope', permissions on shiprequest.xml are


permissions on the container folder are


any ideas how to test/debug this? seems like it doesn't like the xupdate anymore..

thanks



    010.000.000.030.35458-010.000.000.116.08680: POST /exist/servlet/db/orgs/tri/customs/pending_shipments/QTRI0879103/shiprequest.xml HTTP/1.1
    Host: exist.strader-ferris.com:8680
    Accept-Encoding: identity
    Content-Length: 470
    content-type: text/xml
    Authorization: Basic private


    010.000.000.030.35458-010.000.000.116.08680: <?xml version="1.0" ?>
                <xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
                    <xupdate:remove select="/shiprequest[ <at> key='QTRI0879103']/ <at> commit_batch" />
                    <xupdate:append select="/shiprequest[ <at> key='QTRI0879103']">
                        <xupdate:attribute name="commit_batch">879761</xupdate:attribute>
                    </xupdate:append>

                </xupdate:modifications>

    010.000.000.116.08680-010.000.000.030.35458: HTTP/1.1 200 OK
    Date: Fri, 30 Jan 2015 20:47:03 GMT
    Set-Cookie: JSESSIONID=evihaaedgm6o110z76bdi0eqf;Path=/exist
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Content-Type: application/xml; charset=UTF-8
    Transfer-Encoding: chunked
    Server: Jetty(8.1.9.v20130131)

    99
    <?xml version="1.0" ?><exist:modifications xmlns:exist="http://exist.sourceforge.net/NS/exist" count="0">0 modifications processed.</exist:modifications>


-- Brad Clements, bkc <at> murkworks.com (315)268-1000 Jabber/XMPP: bkclements <at> gmail.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Hendricks Trevor | 30 Jan 19:00 2015

Insert new element into instance

I’m trying to insert a new element (not a copy) into an existing instance via xforms. I’ve seen reference to using xf:element(‘’,’’) as a basis but that tends to throw errors. Anyone do this before? I’ve provided a simplified version of what I’ve attempted below.

 

<xf:instance id="main">

                    <root/>

</xf:instance>

 

<xf:insert ref="instance('main')//root" content="xf:element(‘newElement’, ‘’)"/>

 

 

 

Trevor Hendricks
Project Analyst -- Publication Systems
Technical Communications, MS: 078

m: 920-226-2116
p: 920-457-4441; ext. 73571
f: 920-803-3939
e: trevor.hendricks <at> kohler.com
Experience gracious living with
Kohler.
Genuine Kohler Service Parts

Ask Nature

Save Water America

 

(A)bort (R)etry (I)nfluence with large hammer.

 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Alasdair Dougall | 30 Jan 12:21 2015
Picon

Large corporates using eXist DB

Hi All,

Can you let me know where you are using eXist in a corporate environment?

I know how good and solid the product is, but my client is only now understanding the benefits, and a list of corporates using eXist will give them more confidence.

Thanks in advance,

Alasdair
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Alasdair Dougall | 30 Jan 12:18 2015
Picon

Security Best Practices

Hi All,

Working to introduce eXist DB into a new client, and they are slightly nervous about the security risks.  Do any of you have a practical set up advice around a production server that I can share with my client?  Just make it brief, but outline the appropriate steps taken.

Thanks in advance,

Alasdair
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Brad Clements | 29 Jan 23:01 2015

migrating from 2.1 to 2.2 having issues with dashboard/collections

Hi,

I am trying to restore backups from 2.1 to a new installation running eXist 2.2

Since I did not want to restore everything, I unzip'd a full and increments, deleted from the file system those collections I didn't want to restore

1. first problem is that I was unable to restore /db/__contents__.xml due to repeated 'unauthorized' issues no matter what combination of -p  and -P I used with backup.sh

Some of the security files must have been restored because my user/group 'zope/user'  had been created

I worked around this by moving on and restoring a sub collection and that went fine

2. now I am having trouble with permissions, after logging in to the dashboard as user zope, I click on 'collections'. I see this:

(says Sorry, an error occurred)  There's nothing in exist.log to help me



I have restarted the server several times, also tried client.sh as admin to grant read and execute permissions to other on /db

that hasn't helped

I am able to use webdev to access /db as user zope

I am able to use client.sh as well


Does anyone have any suggestions? I am using eXist headless on openjdk  7 jre, so would like the browser interface to work.

thanks!



-- Brad Clements, bkc <at> murkworks.com (315)268-1000 Jabber/XMPP: bkclements <at> gmail.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
John Preimonas | 29 Jan 11:33 2015
Picon

Pseudorandom number generator in Xquery

Hi, 
Is there a utility/function available that generates repeatable random numbers in Xquery, e.g. let $my-no := xxx:random($seed)?
Or, how do I get access to (say) a Java (or some other code) module that produces pseudorandom numbers from specified seeds?
Or, how can I embed Java code into Xquery: e.g. 

import java.util.Random;
public class RandomTest {;   public static void main(String[] args) {     Random rand = new Random(20071969);     for (int j = 0; j<10; j++)     {       int pick = rand.nextInt(10);       System.out.println(pick);     }   } }

Thanks,
John
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
W.S. Hager | 28 Jan 15:01 2015
Picon

Chrome XHR requests pending

Hi,

Not saying this has anything to do with eXist, but perhaps someone has experienced anything related to my issue:

When requesting quite a bit of small resources with XMLHttpRequest in Chrome the requests will at some point hang and say "pending" in the developer tools Network tab. In FF there isn't any problem.

This seems to be related:
http://stackoverflow.com/questions/10763754/chrome-xmlhttprequest-hanging

I'm happy with any input.

Thanks.
Wouter


--

W.S. Hager
Lagua Web Solutions
http://lagua.nl

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Casey Jordan | 26 Jan 18:49 2015

Feature request: Indexing progress

When re-indexing large amounts of data it would be very useful to have some way to determine the overall progress, even if this was simply just the current document/collection being processed.

If something like this does not already exist, we would be happy to create and contribute it with a bit of guidance. 

Cheers

--
--
Casey Jordan
easyDITA a product of Jorsek LLC
"CaseyDJordan" on LinkedIn, Twitter & Facebook
(585) 348 7399
easydita.com


This message is intended only for the use of the Addressee(s) and may
contain information that is privileged, confidential, and/or exempt from
disclosure under applicable law.  If you are not the intended recipient,
please be advised that any disclosure  copying, distribution, or use of
the information contained herein is prohibited.  If you have received
this communication in error, please destroy all copies of the message,
whether in electronic or hard copy format, as well as attachments, and
immediately contact the sender by replying to this e-mail or by phone.
Thank you.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Andreas Jung | 26 Jan 14:19 2015

Setting admin user after installation/Docker installation


Hi there,

I am trying to put existdb 2.2 into production using Docker.

I am using Docker variant of

https://github.com/joewiz/exist-docker

where the admin password is injected into the setup using 'expect'

This is working so far.

The problem arises when you run the Docker container with an external
data directory mounted as a volume. existdb will startup and initialize
the empty data directory with the 'admin' account and an empty password.
So the initialization of the password using 'except' during the
container build is completely irrelevant.

So the question is where I can change the default password from empty
string to something else? It is possible to inject a related
configuration XML as part of the build process in order to let existdb
use the custom configuration with a set admin password instead of using
the default configuration with unset password.

Andreas
Misztur, Chris | 25 Jan 16:51 2015

Unable to delete backup file from previous days.

I have a backup script that deletes old backups, backs up the db and ftps the new backup.

The script is unable to delete the old backup files.
Even when I go into windows explorer and I try to delete the backup files I get an error saying that the files are in use.  I have to bounce the wrapper to release the lock.

Why is the java process keeping the files open?

/c

Sent from my iPhone

Begin forwarded message:

From: "Haptix Games [mandrill]" <info <at> haptixgames.com>
Date: January 25, 2015 at 9:45:30 AM CST
To: <cmisztur <at> maclean-fogg.com>
Subject: eXist Backup [us09xdb50] SUCCESS

Backup Status

status: complete
host: us09xdb50.maclean-fogg.com
backup (s): 7.55
ftp (s): 326.851
ftp file count: 28
ftp size (MB): 185

Transfer Detail

file-name transferred local-size local-modified-time remote-size remote-modified-time
full20150123-0940.zip true 12MB 2015-01-23T09:40:12.935-06:00 12 MB 2015-01-25T09:41:00-06:00
full20150124-0940.zip true 12MB 2015-01-24T09:40:11.444-06:00 12 MB 2015-01-25T09:43:00-06:00
full20150125-0940.zip true 12MB 2015-01-25T09:40:10.554-06:00 12 MB 2015-01-25T09:45:00-06:00
report-20150123094003669.log true 8KB 2015-01-23T09:40:04.184-06:00 8 KB 2015-01-25T09:45:00-06:00
report-20150125094003159.log true 8KB 2015-01-25T09:40:04.142-06:00 8 KB 2015-01-25T09:45:00-06:00

<report-20150123094003669.log>


The contents of this message may be privileged and confidential. Therefore, if this message has been received in error, please delete it without reading it. Your receipt of this message is not intended to waive any applicable privilege. Please do not disseminate this message without the permission of the author.

Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
W.S. Hager | 25 Jan 15:21 2015
Picon

trouble with latest build or java

Hi,

Today I'm having trouble getting eXist to work. I've updated java today and yesterday I built eXist from the lastest develop branch, but the db doesn't respond well. There's nothing useful in the logs. It won't respond to SIGTERM.

Java runtime is 1.7.0_76 on 12.04.5 LTS 64bit.

Thanks.
Wouter


--

W.S. Hager
Lagua Web Solutions
http://lagua.nl

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane