Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors after recent update #214

Closed
dr4g0nsr opened this issue Jul 7, 2019 · 18 comments
Closed

Errors after recent update #214

dr4g0nsr opened this issue Jul 7, 2019 · 18 comments
Assignees

Comments

@dr4g0nsr
Copy link

dr4g0nsr commented Jul 7, 2019

I'm having problems since recent update (i see you updated git 3hrs ago):
/usr/bin/samba.sh: line 245: syntax error near unexpected token <(env | awk '/^GLOBAL/ {sub (/^[^=]*=/, "", $0); print}')' ,/usr/bin/samba.sh: line 245: done <(env | awk '/^GLOBAL/ {sub (/^[^=]*=/, "", $0); print}')'

@Robert-Arctor
Copy link

Hi, me too...

@WilliamStam
Copy link

WilliamStam commented Jul 7, 2019

The devs said he fat fingered it and fixed already but I can't get any newer image. Sick as a dog at the moment. Trying to settle in to watch stuff off my server. And now this :( can't connect to my server. Very very very very very grumpy at the moment :(

Edit: #213 I think the top closed issues are the same as this but no one looks....

@justinjxzhang
Copy link

Think it was just missing a few extra brackets and have submitted a PR in #215. Have built and run on my Pi 4 and it seems to have fixed it, although I don't use any of the new features so not 100% sure if the new functionality is working.

@dr4g0nsr
Copy link
Author

dr4g0nsr commented Jul 7, 2019

I reverted to commit ad05a2b and build new docker image, it's now working fine.
Solution from justinjxzhang also seems to work.

@dperson dperson self-assigned this Jul 7, 2019
dperson pushed a commit that referenced this issue Jul 7, 2019
@dperson
Copy link
Owner

dperson commented Jul 7, 2019

Sorry guys, what I put in worked in my shell here in testing but not in the container. It should be fixed for real now.

@dperson dperson closed this as completed Jul 7, 2019
@WilliamStam
Copy link

Well those errors went away at least. But now it has some unbound variables

root@server:/storage.config# docker-compose logs -f samba
Attaching to samba
samba              | Added user william.
samba              | Added user share.
samba              | /usr/bin/samba.sh: line 99: $2: unbound variable
samba              | usermod: no changes
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | /usr/bin/samba.sh: line 99: $2: unbound variable
samba              | usermod: no changes
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | /usr/bin/samba.sh: line 99: $2: unbound variable
samba              | usermod: no changes
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | /usr/bin/samba.sh: line 99: $2: unbound variable
samba              | usermod: no changes
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | Can't load /etc/samba/smb.conf - run testparm to debug it
samba              | /usr/bin/samba.sh: line 99: $2: unbound variable


Unless something else changed or I screwed it up trying to force refresh

version: '3'
services:
   samba:
      image: dperson/samba
      container_name: samba
      command: >
         -w "WORKGROUP"
         -s ".config;/storage.config/;yes;no;yes;all"
         -s ".storage;/storage/;yes;no;yes;all"
         -s "series;/storage/series/;yes;no;yes;all"
         -s "movies;/storage/movies/;yes;no;yes;all"
         -s "downloads;/storage/downloads/;yes;no;yes;all"
         -s "other;/storage/other/;yes;no;yes;all"
         -u "william;password"
         -u "share;share"
         -n
         -S
         -p
      environment:
         - USERID=${PUID}
         - GROUPID=${PGID}
         - TZ=${TZ}
      volumes:
         - /storage:/storage:z
         - /storage.config:/storage.config:z
      network_mode: host
      ports:
         - "137:137"
         - "139:139"
         - "445:445"
      restart: unless-stopped

@Robert-Arctor
Copy link

Same error here:
/usr/bin/samba.sh: line 99: $2: unbound variable

@WilliamStam
Copy link

This was 1 crazy bad update then. It always worries me when stuff like this happens. A simple docker and docker compose test would of caught this I'm sure (not that many configurations and I doubt ours are complicated edge cases)

@WilliamStam
Copy link

@dr4g0nsr you also have issues with the latest fix? Or holding off on the previous for now?
@dperson ticket might need to be re-opened?

@dperson
Copy link
Owner

dperson commented Jul 7, 2019

Sorry guys, I didn't really want to change how these variables were parsed, but kept getting requests for it. I hope it's really really fixed now.

@WilliamStam
Copy link

No worries. Code breaks. But you might want to set up a testing branch or something.... :p

@WilliamStam
Copy link

We have liftoff!!!

root@server:/storage.config# docker-compose logs -f samba
Attaching to samba
samba              | Added user william.
samba              | Added user share.
samba              | [2019/07/07 15:41:04.812365,  0] ../../lib/util/become_daemon.c:136(daemon_ready)
samba              |   daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections
samba              | smbd version 4.10.5 started.
samba              | Copyright Andrew Tridgell and the Samba Team 1992-2019
samba              | daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
samba              | [2019/07/07 15:41:27.652762,  0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
samba              |   *****
samba              |
samba              |   Samba name server SERVER is now a local master browser for workgroup WORKGROUP on subnet 172.17.0.1
samba              |
samba              |   *****
samba              | [2019/07/07 15:41:27.653197,  0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
samba              |   *****
samba              |
samba              |   Samba name server SERVER is now a local master browser for workgroup WORKGROUP on subnet 172.30.0.1
samba              |
samba              |   *****
samba              | [2019/07/07 15:41:27.653457,  0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
samba              |   *****
samba              |
samba              |   Samba name server SERVER is now a local master browser for workgroup WORKGROUP on subnet 192.168.128.1
samba              |
samba              |   *****

@dperson
Copy link
Owner

dperson commented Jul 7, 2019

In retrospect I really should have.

@dperson
Copy link
Owner

dperson commented Jul 7, 2019

Thanks for verifying @WilliamStam !

@WilliamStam
Copy link

Hehe now maybe I can finish watching that episode of ##redacted## that stopped working half way through cause watchtower updated the image :P

Appreciate the work. I was ready to find a voodoo doll with your name on it earlier tho. Then I just gave up and tried sleeping. Couldn't do a thing on the network here since everything is network shared :(

@dperson
Copy link
Owner

dperson commented Jul 7, 2019

Hope you feel better soon.

@Robert-Arctor
Copy link

Worked for me aswel.
Thanks a lot!!!

@GeorgeHahn
Copy link

I opened #216 in response to this - versioned tags would have given us an easy downgrade fix option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants