You are not logged in.

Announcement

[2017.09.08] DeployStudio build v1.7.8 (checksum, release note).
[2016.08.26] DeployStudio build v1.6.19 (release note).
[2013.02.23] DeployStudio last universal build v1.5.17 (release note).

#1 2016-12-09 22:10:15

bgwilkes
Member
Registered: 2012-08-08

DS Admin not showing contents of repository folders

On a newly configured server, assets in the repository don't show up in DS Admin. In particular, .hfs.dmg images dropped in the Masters/HFS folder don't appear (ever) in the list of masters, and the default scripts don't appear in the Scripts folder. I have tried unsharing the repository and creating a new one, then walking through the Assistant again, but no luck. Likewise, changes such as duplicating a script in DS Admin or adding a workflow are not reflected in the repository folders. Image create tasks succeed as far as creating the image in /tmp, but don't seem to finish processing the file nor move it to /HFS.

My other server, which runs the same OS (10.11.6) and DS version (1.7.5), but has been upgraded over the years from older versions, works fine, with the same dmg images. The only difference I can see is that that one has a fixed IP address, while the new server is running on DHCP for the time being. (both have .local domain names from the OS).

I have looked at the repository permissions, but don't see anything unusual or different.

Can someone suggest what to filter the system log for to determine if DS Server is misconfigured with respect to its repository? I'm sure I'm overlooking something here, but have used DS for years without seeing this before.

Offline

#2 2016-12-09 23:18:02

mjsanders
Member
From: Schiedam, Netherlands
Registered: 2008-09-02
Website

Re: DS Admin not showing contents of repository folders

Normally the deploystudio deamon report into the system.log file as DeployStudioServer so filter for that.

Have you tried restarting the deamon in system preferences - DeployStudio?
keep an eye on the system log, it should check for files in the /tmp folder.

A second tip: chekc the hidden files .dss.compress.imagename.hfs.dmg and .dss.processing.imagename .....  ( i am not sure of the correct names, b, check in the log of a successfull image creation to see the file names). If missing the deamon will not pick the image up.

and on 10.12.1/1.7.5 i see a lot of errors in the system log. These errors look like this and seem harmless (?)

---- DeployStudioServer[761]: objc[761]: __weak variable at 0x7f7f4f6054b0 holds 0x7f7f4f500002 instead of 0x7f7f4f5068a0. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug.--
and
---com.apple.xpc.launchd[1] (com.deploystudio.server): Please switch away from OnDemand to KeepAlive. -----

Last edited by mjsanders (2016-12-09 23:18:34)

Offline

#3 2016-12-10 01:04:51

bgwilkes
Member
Registered: 2012-08-08

Re: DS Admin not showing contents of repository folders

For clarification: yes, I've restarted the server daemon many times, and have reinstalled it twice, including going back to 1.7.4. The problem is not merely that files are not moved over from the /tmp folder during image creation, but that completed, valid images simply don't show up when placed in /HFS, and neither do the standard scripts. It's as if the repository path has been broken/lost after configuration.

Offline

#4 2016-12-10 10:14:55

mjsanders
Member
From: Schiedam, Netherlands
Registered: 2008-09-02
Website

Re: DS Admin not showing contents of repository folders

Weird issue. I have seen some cases where the dmg's were not moved from /tmp to /HFS/ , but usually the image was fine (compressed, converted and asr scanned). Not sure what is the cause of this, since it is intermittant in my cases.
Since I use AutoDMG to create most of my images I do not care to troubleshoot that.
The other issue: not recognizing the images: In all cases I know restarting the deamon did the trick to recognize the images, so what goes wrong in your case I don't know.
What does the system.log tell you when you stop and start the deamon? There should be some mention of checking the tmp folder.

You mention you have more deploystudio servers: I recommend to take a look at hidden files in the repository, you checked permissions, etc

good luck, this looks like a frustrating issue.

Offline

#5 2016-12-10 10:41:44

mjsanders
Member
From: Schiedam, Netherlands
Registered: 2008-09-02
Website

Re: DS Admin not showing contents of repository folders

Now I investigate my own test server (10.12.1/server5.2/DS1.7.5) and I see some unexpected results.

In sierra the logging system is different than before, and Console.app is rewritten completely,
(see these pages for more info:  https://developer.apple.com/reference/os/1891852-logging and more practical:
http://www.macworld.com/article/3102847/macs/hands-on-with-macos-sierras-console-now-its-easier-to-get-the-mac-information-you-need.html)


but this is what I see in console:

When I start the DeployStudioServer deamon, in the /var/log/system.log is only one line:

Dec 10 10:25:34 macmini com.apple.xpc.launchd[1] (com.deploystudio.server): Please switch away from OnDemand to KeepAlive.

The unified logging system (click on the left column on the name of your mac) shows this (when filtered for process:deploystudioserver)

----------
default    10:27:05.207713 +0100    DeployStudioServer    ====================================================================================================
default    10:27:05.207850 +0100    DeployStudioServer    DeployStudioServer
default    10:27:05.296114 +0100    DeployStudioServer    DSCore.framework version 1.7.5 (b160915), Copyright 2016 The DeployStudio Team.
default    10:27:05.296585 +0100    DeployStudioServer    MAC address: ac:87:a3:0d:71:62
default    10:27:05.370339 +0100    DeployStudioServer    Network address: 10.0.0.13 (macmini.xs4all.nl)
default    10:27:05.418769 +0100    DeployStudioServer    Network interface speed: AUTOSELECT (1000BASET <FULL-DUPLEX,FLOW-CONTROL>)
default    10:27:05.458998 +0100    DeployStudioServer    Operating System: Mac OS X Version 10.12.1 (Build 16B2657)
default    10:27:05.459499 +0100    DeployStudioServer    Date: 16/12/10 10:27:05
default    10:27:05.459585 +0100    DeployStudioServer    ====================================================================================================
default    10:27:05.556419 +0100    DeployStudioServer    Default hostname: macmini.xs4all.nl
default    10:27:05.633371 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: storagemgr, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.633523 +0100    DeployStudioServer    using system preferences
default    10:27:05.633673 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: secpref, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.634188 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: integrity, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.634215 +0100    DeployStudioServer    not switching as we're not in ~/Library/Keychains/: /Library/Keychains/System.keychain (0)
default    10:27:05.634265 +0100    DeployStudioServer    not switching as we're not in ~/Library/Keychains/: /Library/Keychains/System.keychain (0)
default    10:27:05.634587 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: cssm, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.634721 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: callback, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.634899 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: handleobj, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.635028 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: MDS_Scan, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.635218 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: MDS_API, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.635361 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: SSclnt, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.636036 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: MDS_IO, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.636205 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: mdslock, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.636337 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: DBOpen, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.636447 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: dbsession, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.636515 +0100    DeployStudioServer    DbOpen of /private/var/db/mds/system/mdsObject.db
default    10:27:05.636778 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: atomicfile, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.636805 +0100    DeployStudioServer    0x7fee92f033d0 opened /private/var/db/mds/system/mdsObject.db: 4636 bytes
default    10:27:05.636871 +0100    DeployStudioServer    0x7fee92f033d0 allocated /private/var/db/mds/system/mdsObject.db buffer 0x7fee93802800 size 4636
default    10:27:05.636910 +0100    DeployStudioServer    0x7fee92f033d0 closed /private/var/db/mds/system/mdsObject.db
default    10:27:05.649922 +0100    DeployStudioServer    DbOpen of /private/var/db/mds/system/mdsDirectory.db
default    10:27:05.650055 +0100    DeployStudioServer    0x7fee92d07a50 opened /private/var/db/mds/system/mdsDirectory.db: 50744 bytes
default    10:27:05.650158 +0100    DeployStudioServer    0x7fee92d07a50 allocated /private/var/db/mds/system/mdsDirectory.db buffer 0x7fee94804a00 size 50744
default    10:27:05.650205 +0100    DeployStudioServer    0x7fee92d07a50 closed /private/var/db/mds/system/mdsDirectory.db
default    10:27:05.660356 +0100    DeployStudioServer    0x7fee92f033d0 free /private/var/db/mds/system/mdsObject.db buffer 0x7fee93802800
default    10:27:05.660539 +0100    DeployStudioServer    0x7fee92d07a50 free /private/var/db/mds/system/mdsDirectory.db buffer 0x7fee94804a00
default    10:27:05.660603 +0100    DeployStudioServer    DbOpen of /private/var/db/mds/system/mdsDirectory.db
default    10:27:05.660740 +0100    DeployStudioServer    0x7fee92d28230 opened /private/var/db/mds/system/mdsDirectory.db: 50744 bytes
default    10:27:05.660891 +0100    DeployStudioServer    0x7fee92d28230 allocated /private/var/db/mds/system/mdsDirectory.db buffer 0x7fee9400da00 size 50744
default    10:27:05.660949 +0100    DeployStudioServer    0x7fee92d28230 closed /private/var/db/mds/system/mdsDirectory.db
default    10:27:05.662405 +0100    DeployStudioServer    DbOpen of /Library/Keychains/System.keychain
default    10:27:05.662465 +0100    DeployStudioServer    0x7fee92d1bde0 opened /Library/Keychains/System.keychain: 147628 bytes
default    10:27:05.662652 +0100    DeployStudioServer    0x7fee92d1bde0 allocated /Library/Keychains/System.keychain buffer 0x10aeb6000 size 147628
default    10:27:05.662705 +0100    DeployStudioServer    0x7fee92d1bde0 closed /Library/Keychains/System.keychain
default    10:27:05.664021 +0100    DeployStudioServer    loading /Library/Keychains/System.keychain
default    10:27:05.666041 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: kcreferral, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:05.666191 +0100    DeployStudioServer    not attempting migration for /Library/Keychains/System.keychain version 256 (0 0 1)
default    10:27:05.669029 +0100    DeployStudioServer    not switching as we're not in ~/Library/Keychains/: /Library/Keychains/System.keychain (0)
default    10:27:05.669054 +0100    DeployStudioServer    not switching as we're not in ~/Library/Keychains/: /Library/Keychains/System.keychain (0)
default    10:27:05.671464 +0100    DeployStudioServer    /bin/rm /tmp/DeployStudioServer.multicast.* 2>&1
default    10:27:05.678102 +0100    DeployStudioServer    Started HTTPS server on port 60443
default    10:27:05.875177 +0100    DeployStudioServer    mountCommandForHostWithAddresses:(
    "10.0.0.13"
) (repository server=macmini.local/10.0.0.13)
default    10:27:05.936371 +0100    DeployStudioServer    shareRecordName=(DS_Repo)
default    10:27:05.978500 +0100    DeployStudioServer    localPath[/Search/SharePoints/DS_Repo]=(<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>dsAttrTypeNative:directory_path</key>
    <array>
        <string>/Shares/DS_Repo</string>
    </array>
</dict>
</plist>)
default    10:27:06.092381 +0100    DeployStudioServer    not switching as we're not in ~/Library/Keychains/: /Library/Keychains/System.keychain (0)
default    10:27:06.092426 +0100    DeployStudioServer    not switching as we're not in ~/Library/Keychains/: /Library/Keychains/System.keychain (0)
default    10:27:06.094483 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: dateparse, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:06.094808 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: SecAccessReference, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:06.095185 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: freeKey, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:06.096156 +0100    DeployStudioServer    subsystem: com.apple.network, category: , enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:06.096307 +0100    DeployStudioServer    TCP Conn 0x7fee92f05030 started
default    10:27:06.096939 +0100    DeployStudioServer    TCP Conn 0x7fee92f05030 starting SSL negotiation
default    10:27:06.098955 +0100    DeployStudioServer    keychain blob version does not support integrity
default    10:27:06.098985 +0100    DeployStudioServer    skipping integrity check due to keychain version
default    10:27:06.101962 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: ssCrypt, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:06.105250 +0100    DeployStudioServer    TCP Conn 0x7fee92f05030 SSL Handshake DONE
default    10:27:06.118670 +0100    DeployStudioServer    Mounting repository...
default    10:27:06.118795 +0100    DeployStudioServer    -> mountCommand: undefined
default    10:27:06.118902 +0100    DeployStudioServer    -> pathToMountPoint: undefined
default    10:27:06.119093 +0100    DeployStudioServer    -> pathToRepository: /Shares/DS_Repo
default    10:27:06.119240 +0100    DeployStudioServer    Checking repository path existence (/Shares/DS_Repo)...
default    10:27:06.134033 +0100    DeployStudioServer    subsystem: com.apple.SystemConfiguration, category: SCPreferences, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default    10:27:06.177474 +0100    DeployStudioServer    Status=0
default    10:27:06.177674 +0100    DeployStudioServer    Checking if new disk image files are waiting to be processed (/Shares/DS_Repo/Masters/tmp)
default    10:27:06.481409 +0100    DeployStudioServer    Bonjour Service Published: domain(local.) type(_deploystudio._tcp.) name(macmini)
default    10:32:06.112409 +0100    DeployStudioServer    not switching as we're not in ~/Library/Keychains/: /Library/Keychains/System.keychain (0)
default    10:32:06.112716 +0100    DeployStudioServer    subsystem: com.apple.securityd, category: kcnotify, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0

--------

Strangely enough, if I put a fake file into the tmp folder with a touch tmp/MacImage.hfs.dmg
the following happends when I try to start the DeployStudioServer deamon (from System preferences)

In system preferences it shows that it cannot start, and for a few seconds there is a message visible ;check your system.log.

but in the system.log is only this from deployStudioServer:

Dec 10 10:38:06 macmini com.apple.xpc.launchd[1] (com.deploystudio.server): Please switch away from OnDemand to KeepAlive.

and in the Unified Logging (see above) is very little info:
----------
default    10:38:06.208270 +0100    DeployStudioServer    Waiting for network services to be initialized...
default    10:38:06.209067 +0100    DeployStudioServer    /usr/sbin/ipconfig waitall 2>&1
------
removing the fake dmg file and restarting makes the system work and start again.

So much for helpfull logs!! (:-()

Please @admin: make Deploystudio sierra logging compatible

Last edited by mjsanders (2016-12-10 10:45:15)

Offline

Board footer

Powered by FluxBB